2022-07-05 13:41:31 -04:00
|
|
|
<div class="current-style {{if this.maximized "maximized"}}">
|
2017-04-12 10:52:52 -04:00
|
|
|
<div class="wrapper">
|
2020-12-07 18:54:44 -05:00
|
|
|
<div class="editor-information">
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton @title="go_back" @action={{action "goBack"}} @icon="chevron-left" @class="btn-small editor-back-button" />
|
2020-12-07 18:54:44 -05:00
|
|
|
|
|
|
|
<span class="editor-theme-name-wrapper">
|
|
|
|
{{i18n "admin.customize.theme.edit_css_html"}}
|
2022-07-05 13:41:31 -04:00
|
|
|
<LinkTo @route={{this.showRouteName}} @model={{this.model.id}} @replace={{true}} class="editor-theme-name">
|
|
|
|
{{this.model.name}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</LinkTo>
|
2020-12-07 18:54:44 -05:00
|
|
|
</span>
|
|
|
|
</div>
|
2017-04-12 10:52:52 -04:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<AdminThemeEditor @theme={{this.model}} @editRouteName={{this.editRouteName}} @currentTargetName={{this.currentTargetName}} @fieldName={{this.fieldName}} @fieldAdded={{action "fieldAdded"}} @maximized={{this.maximized}} @onlyOverriddenChanged={{action "onlyOverriddenChanged"}} @save={{action "save"}} />
|
2020-03-06 11:35:18 -05:00
|
|
|
|
2017-04-12 10:52:52 -04:00
|
|
|
<div class="admin-footer">
|
|
|
|
<div class="status-actions">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#unless this.model.changed}}
|
2020-12-07 18:54:44 -05:00
|
|
|
<a
|
2022-07-05 13:41:31 -04:00
|
|
|
href={{this.previewUrl}}
|
2020-12-07 18:54:44 -05:00
|
|
|
rel="noopener noreferrer"
|
|
|
|
title={{i18n "admin.customize.explain_preview"}}
|
|
|
|
class="preview-link"
|
|
|
|
target="_blank"
|
|
|
|
>
|
2020-03-06 11:35:18 -05:00
|
|
|
{{i18n "admin.customize.preview"}}
|
|
|
|
</a>
|
2017-04-12 10:52:52 -04:00
|
|
|
{{/unless}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="buttons">
|
2022-07-05 13:41:31 -04:00
|
|
|
<DButton @action={{action "save"}} @disabled={{this.saveDisabled}} @class="btn-primary" @translatedLabel={{this.saveButtonText}} />
|
2017-04-12 10:52:52 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|