2021-01-15 17:31:40 +03:00
|
|
|
<section class="gh-canvas">
|
|
|
|
<GhCanvasHeader class="gh-canvas-header">
|
|
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
2021-01-28 18:25:21 +03:00
|
|
|
<LinkTo @route="integrations" data-test-link="integrations-back">Integrations</LinkTo>
|
2021-01-15 17:31:40 +03:00
|
|
|
<span>{{svg-jar "arrow-right"}}</span>
|
|
|
|
FirstPromoter
|
|
|
|
</h2>
|
|
|
|
<section class="view-actions">
|
2021-02-08 21:54:16 +03:00
|
|
|
<GhTaskButton @task={{this.save}} @class="gh-btn gh-btn-primary gh-btn-icon" data-test-save-button={{true}} />
|
2021-01-15 17:31:40 +03:00
|
|
|
</section>
|
|
|
|
</GhCanvasHeader>
|
|
|
|
|
|
|
|
{{#if this.showLeaveSettingsModal}}
|
|
|
|
<GhFullscreenModal @modal="leave-settings"
|
|
|
|
@confirm={{action "leaveSettings"}}
|
|
|
|
@close={{action "toggleLeaveSettingsModal"}}
|
|
|
|
@modifier="action wide" />
|
|
|
|
{{/if}}
|
|
|
|
|
2021-02-08 23:16:41 +03:00
|
|
|
<section class="view-container">
|
2021-02-08 21:54:16 +03:00
|
|
|
<section class="gh-main-section bt app-grid">
|
|
|
|
<div class="gh-main-section-block app-detail-heading app-grid">
|
|
|
|
<div class="app-cell">
|
2021-01-15 17:31:40 +03:00
|
|
|
<img class="app-icon" src="assets/img/firstpromoter.png" />
|
|
|
|
</div>
|
2021-02-08 21:54:16 +03:00
|
|
|
<div class="app-cell">
|
|
|
|
<h3>FirstPromoter</h3>
|
|
|
|
<p>Launch your own member referral program</p>
|
|
|
|
</div>
|
2021-01-15 17:31:40 +03:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2021-02-10 20:48:27 +03:00
|
|
|
<div class="gh-main-section">
|
|
|
|
<h4 class="gh-main-section-header small bn">FirstPromoter configuration</h4>
|
|
|
|
<section class="gh-main-section-block">
|
2021-02-23 00:44:55 +03:00
|
|
|
<div class="gh-main-section-content grey">
|
2021-02-10 20:48:27 +03:00
|
|
|
<div>
|
2021-02-12 16:58:56 +03:00
|
|
|
<div class="gh-setting-first {{unless this.settings.firstpromoter "gh-setting-last"}}">
|
2021-02-10 20:48:27 +03:00
|
|
|
<div class="gh-setting-content">
|
|
|
|
<div class="gh-setting-title">Enable FirstPromoter</div>
|
2021-02-23 00:44:55 +03:00
|
|
|
<div class="gh-setting-desc mb0">Enable <a href="https://firstpromoter.com/?fpr=ghost&fp_sid=admin" target="_blank">FirstPromoter</a> for tracking referrals</div>
|
2021-02-10 20:48:27 +03:00
|
|
|
</div>
|
|
|
|
<div class="gh-setting-action">
|
|
|
|
<div class="for-checkbox">
|
|
|
|
<label for="firstpromoter" class="checkbox">
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
checked={{this.settings.firstpromoter}}
|
|
|
|
id="firstpromoter"
|
|
|
|
name="firstpromoter"
|
|
|
|
onclick={{action "update" value="target.checked"}}
|
|
|
|
data-test-firstpromoter-checkbox
|
|
|
|
>
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
2021-02-08 21:54:16 +03:00
|
|
|
</div>
|
2021-01-15 17:31:40 +03:00
|
|
|
</div>
|
2021-02-10 20:48:27 +03:00
|
|
|
{{#liquid-if this.settings.firstpromoter class=""}}
|
2021-02-12 16:58:56 +03:00
|
|
|
<div class="gh-setting-last gh-setting-firstpromoter-liquid">
|
2021-02-10 20:48:27 +03:00
|
|
|
<div class="gh-setting-content gh-setting-content--no-action">
|
|
|
|
<div class="gh-setting-title">FirstPromoter Account ID</div>
|
2021-04-23 16:29:26 +03:00
|
|
|
<div class="gh-setting-desc"> Affiliate and referral tracking, find your ID <a href="https://ghost.org/help/firstpromoter-id/">here</a></div>
|
2021-02-10 20:48:27 +03:00
|
|
|
<div class="gh-setting-content-extended">
|
2021-02-12 16:58:56 +03:00
|
|
|
<GhFormGroup @class="no-margin" @errors={{this.settings.errors}} @hasValidated={{this.settings.hasValidated}} @property="firstpromoterId">
|
2021-02-10 20:48:27 +03:00
|
|
|
<GhTextInput
|
|
|
|
@placeholder="XXXXXXXX"
|
|
|
|
@name="firstpromoter_id"
|
|
|
|
@value={{this.settings.firstpromoterId}}
|
|
|
|
@keyEvents={{hash
|
|
|
|
Enter=(action "save")
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
<GhErrorMessage @errors={{this.settings.errors}} @property="firstpromoterId"/>
|
|
|
|
</GhFormGroup>
|
|
|
|
</div>
|
2021-02-08 21:54:16 +03:00
|
|
|
</div>
|
2021-01-15 17:31:40 +03:00
|
|
|
</div>
|
2021-02-10 20:48:27 +03:00
|
|
|
{{/liquid-if}}
|
2021-01-15 17:31:40 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-08 21:54:16 +03:00
|
|
|
</section>
|
2021-02-09 19:22:58 +03:00
|
|
|
</div>
|
2021-01-15 17:31:40 +03:00
|
|
|
</section>
|
|
|
|
</section>
|