Ghost/ghost/admin/app/templates/settings/membership.hbs
Rishabh 4c736d1c80 Added basic portal settings in new membership area
no refs

Members related settings are being consolidated into a single screen.

- Adds basic portal settings UI
2021-05-17 13:28:15 +05:30

61 lines
2.2 KiB
Handlebars

<section class="gh-canvas">
<GhCanvasHeader class="gh-canvas-header">
<h2 class="gh-canvas-title" data-test-screen-title>
<LinkTo @route="settings">Settings</LinkTo>
<span>{{svg-jar "arrow-right"}}</span>
Membership
</h2>
<section class="view-actions">
<GhTaskButton
@buttonText="Save settings"
@task={{this.saveSettingsTask}}
@successText="Saved"
@runningText="Saving"
@class="gh-btn gh-btn-primary gh-btn-icon"
data-test-button="save-settings"
/>
</section>
</GhCanvasHeader>
<section class="view-container settings-debug">
<div class="gh-main-section">
<h4 class="gh-main-section-header small">Portal settings</h4>
</div>
<div class="flex flex-row pa2">
<div class="flex-grow-1">
<h4>Portal Settings</h4>
<span>Customize members modal signup flow</span>
</div>
<div>
<button type="button" class="gh-btn gh-btn-green gh-btn-outline" {{action (toggle "showPortalSettings" this)}} data-test-toggle-membersFrom>
<span> Customise Portal </span>
</button>
</div>
</div>
</section>
<section class="view-container settings-debug">
<div class="gh-main-section">
<h4 class="gh-main-section-header small">Access and payments</h4>
</div>
<Settings::MembersSubscriptionAccess />
<Settings::MembersDefaultPostAccess />
</section>
{{#if this.showLeaveSettingsModal}}
<GhFullscreenModal
@modal="leave-settings"
@confirm={{this.confirmLeave}}
@close={{this.cancelLeave}}
@modifier="action wide"
/>
{{/if}}
{{#if this.showPortalSettings}}
<GhFullscreenModal @modal="portal-settings"
@model={{hash
openStripeSettings=(action "openStripeSettings")
}}
@close={{action "closePortalSettings"}}
@modifier="full-overlay portal-settings" />
{{/if}}
</section>