From bf700c5d98b96e7ba800797fed384372d1d05c5c Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Thu, 3 Jun 2021 18:02:32 +0200 Subject: [PATCH] Added product selector modal for complimentary sub Developer experiment for multiple products. - Added modal to choose a product for complimentary subscriptions. --- .../components/gh-member-settings-form-cp.hbs | 14 ++- .../app/components/modal-member-product.hbs | 85 +++++++++++-------- ghost/admin/app/styles/patterns/forms.css | 56 ++++++++++++ 3 files changed, 117 insertions(+), 38 deletions(-) diff --git a/ghost/admin/app/components/gh-member-settings-form-cp.hbs b/ghost/admin/app/components/gh-member-settings-form-cp.hbs index bf8a341069..2927e0a715 100644 --- a/ghost/admin/app/components/gh-member-settings-form-cp.hbs +++ b/ghost/admin/app/components/gh-member-settings-form-cp.hbs @@ -116,9 +116,17 @@ {{#if this.isCreatingComplimentary}} {{else}} - + {{#if (enable-developer-experiments)}} + {{!-- {{if has multiple products!}} --}} + + {{!-- {{/if}} --}} + {{else}} + + {{/if}} {{/if}} {{/if}} {{/unless}} diff --git a/ghost/admin/app/components/modal-member-product.hbs b/ghost/admin/app/components/modal-member-product.hbs index 699e46df6b..7f0c4c8b3d 100644 --- a/ghost/admin/app/components/modal-member-product.hbs +++ b/ghost/admin/app/components/modal-member-product.hbs @@ -1,38 +1,44 @@ - + +{{svg-jar "close"}}