2015-11-23 16:45:05 -05:00
|
|
|
<div class="edit-site-text">
|
|
|
|
<div class="title">
|
2022-07-05 13:41:31 -04:00
|
|
|
<h3>{{this.siteText.id}}</h3>
|
2015-11-23 16:45:05 -05:00
|
|
|
</div>
|
2015-08-07 14:05:08 -04:00
|
|
|
|
2021-01-18 12:53:45 -05:00
|
|
|
<div class="title">
|
2022-07-05 13:41:31 -04:00
|
|
|
<h4>{{i18n "admin.site_text.locale"}} {{this.localeFullName}}</h4>
|
2021-01-18 12:53:45 -05:00
|
|
|
</div>
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<ExpandingTextArea
|
|
|
|
@value={{this.buffered.value}}
|
|
|
|
@rows="1"
|
|
|
|
@class="site-text-value"
|
|
|
|
/>
|
2015-11-23 16:45:05 -05:00
|
|
|
|
2023-06-28 07:03:04 -04:00
|
|
|
{{#if this.siteText.has_interpolation_keys}}
|
|
|
|
<div class="desc">{{i18n "admin.site_text.interpolation_keys"}}
|
|
|
|
{{this.interpolationKeys}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<SaveControls
|
|
|
|
@model={{this.siteText}}
|
|
|
|
@action={{action "saveChanges"}}
|
|
|
|
@saved={{this.saved}}
|
|
|
|
@saveDisabled={{this.saveDisabled}}
|
|
|
|
>
|
|
|
|
{{#if this.siteText.can_revert}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton
|
|
|
|
@action={{action "revertChanges"}}
|
|
|
|
@label="admin.site_text.revert"
|
|
|
|
@class="revert-site-text"
|
|
|
|
/>
|
2015-11-23 16:45:05 -05:00
|
|
|
{{/if}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</SaveControls>
|
2015-11-23 16:45:05 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<LinkTo
|
|
|
|
@route="adminSiteText.index"
|
|
|
|
@query={{hash locale=this.locale}}
|
|
|
|
class="go-back"
|
|
|
|
>
|
2017-07-26 16:25:09 -04:00
|
|
|
{{d-icon "arrow-left"}}
|
2015-11-23 16:45:05 -05:00
|
|
|
{{i18n "admin.site_text.go_back"}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</LinkTo>
|
2015-11-23 16:45:05 -05:00
|
|
|
|
|
|
|
</div>
|