Ghost/ghost/admin/app/templates/components/gh-member-settings-form.hbs

101 lines
4.5 KiB
Handlebars
Raw Normal View History

<h4 class="midlightgrey f-small fw5 ttu">Basic info</h4>
<div class="pa5 pb0 pt4 br4 shadow-1 bg-grouped-table mt2 flex flex-column flex-row-ns items-start justify-between gh-tag-basic-settings-form">
<div class="flex flex-column items-start mr8 w-100 w-50-ns">
2019-10-02 07:00:03 +03:00
{{#gh-form-group errors=member.errors hasValidated=member.hasValidated property="name"}}
<label for="member-name">Name</label>
{{gh-text-input
disabled=true
2019-10-02 07:00:03 +03:00
id="member-name"
name="name"
value=(readonly scratchName)
tabindex="1"
input=(action (mut scratchName) value="target.value")
focus-out=(action 'setProperty' 'name' scratchName)}}
{{gh-error-message errors=member.errors property="name"}}
2019-10-02 07:00:03 +03:00
{{/gh-form-group}}
{{#gh-form-group errors=member.errors hasValidated=member.hasValidated property="email"}}
<label for="member-email">Email</label>
{{gh-text-input
disabled=true
value=(readonly scratchEmail)
id="member-email"
name="email"
tabindex="2"
focus-out=(action 'setProperty' 'email' scratchEmail)
input=(action (mut scratchEmail) value="target.value")}}
2019-10-02 07:00:03 +03:00
{{/gh-form-group}}
</div>
<div class="mb6 mb0-ns w-100 w-50-ns">
{{#gh-form-group errors=member.errors hasValidated=member.hasValidated property="note"}}
<label for="member-description">Note</label>
{{gh-textarea
disabled=true
id="member-description"
name="description"
class="gh-member-details-textarea"
tabindex="3"
value=(readonly scratchDescription)
input=(action (mut scratchDescription) value="target.value")
focus-out=(action 'setProperty' 'description' scratchDescription)
}}
{{gh-error-message errors=member.errors property="description"}}
<p>Maximum: <b>500</b> characters. Youve used {{gh-count-down-characters scratchDescription 500}}</p>
2019-10-02 07:00:03 +03:00
{{/gh-form-group}}
</div>
</div>
<h4 class="midlightgrey f-small fw5 ttu mt15">Stripe info</h4>
<div class="pa5 pb0 pt4 br4 shadow-1 bg-grouped-table mt2 flex flex-column flex-row-ns items-start justify-between gh-tag-basic-settings-form">
{{#if subscription}}
<div class="flex flex-column items-start mr8 w-100 w-50-ns">
{{#gh-form-group errors=member.errors hasValidated=member.hasValidated}}
<label for="member-customer-id">Stripe Customer Id</label>
{{gh-text-input
disabled=true
id="member-customer-id"
name="member-customer-id"
value=(readonly subscription.customer)
tabindex="1"}}
{{/gh-form-group}}
{{#gh-form-group errors=member.errors hasValidated=member.hasValidated}}
<label for="member-customer-status">Subscription Status</label>
{{gh-text-input
disabled=true
value=(readonly subscription.status)
id="member-customer-status"
name="member-customer-status"
tabindex="2"}}
{{/gh-form-group}}
</div>
<div class="mb6 mb0-ns w-100 w-50-ns">
{{#gh-form-group errors=member.errors hasValidated=member.hasValidated}}
<label for="member-plan-name">Subscription plan</label>
{{gh-text-input
disabled=true
value=(readonly subscription.name)
id="member-plan-name"
name="member-plan-name"
tabindex="1"}}
{{/gh-form-group}}
{{#gh-form-group errors=member.errors hasValidated=member.hasValidated}}
<label for="member-plan-renewal">Renewal date</label>
{{gh-text-input
disabled=true
value=(readonly subscription.validUntil)
id="member-plan-renewal"
name="member-plan-renewal"
tabindex="1"}}
{{/gh-form-group}}
</div>
{{else}}
<div class="flex flex-column items-start mr8 w-100 w-50-ns">
Non Paid member
</div>
{{/if}}
2019-10-02 07:00:03 +03:00
</div>