Ghost/ghost/admin/app/components/dashboard/dashboard-v5.hbs

90 lines
3.2 KiB
Handlebars
Raw Normal View History

<section>
{{#if this.areMembersEnabled}}
<Dashboard::MembersGraphs />
{{#if this.hasPaidTiers}}
<article class="gh-dashboard-box">
These are some paid members related graphs
</article>
{{/if}}
{{/if}}
{{#if this.areNewslettersEnabled}}
<article class="gh-dashboard-box">
These are newsletter related graphs
</article>
{{/if}}
</section>
<div class="gh-main-section prototype-panel">
<h4 class="gh-main-section-header small bn">Prototype control panel</h4>
<div class="gh-expandable">
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Has paid tiers</h4>
<p class="gh-expandable-description">
Paid memberships
</p>
</div>
<div class="for-switch">
<label class="switch">
<Input @type="checkbox" @checked={{this.mockPaidTiers}} />
<span class="input-toggle-component"></span>
</label>
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Stripe connected</h4>
<p class="gh-expandable-description">
Mock that Stripe is enabled
</p>
</div>
<div class="for-switch">
<label class="switch">
<Input @type="checkbox" @checked={{this.mockStripeEnabled}} />
<span class="input-toggle-component"></span>
</label>
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Newsletters enabled</h4>
<p class="gh-expandable-description">
All email related charts shown
</p>
</div>
<div class="for-switch">
<label class="switch">
<Input @type="checkbox" @checked={{this.mockNewslettersEnabled}} />
<span class="input-toggle-component"></span>
</label>
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Members enabled</h4>
<p class="gh-expandable-description">
Setting subscription access to other value than 'Nobody'
</p>
</div>
<div class="for-switch">
<label class="switch">
<Input @type="checkbox" @checked={{this.mockMembersEnabled}} />
<span class="input-toggle-component"></span>
</label>
</div>
</div>
</div>
</div>
</div>