2017-04-12 22:52:52 +08:00
|
|
|
<div class="current-style {{if maximized "maximized"}}">
|
|
|
|
<div class="wrapper">
|
2020-12-08 07:54:44 +08:00
|
|
|
<div class="editor-information">
|
|
|
|
{{d-button
|
|
|
|
title="go_back"
|
|
|
|
action=(action "goBack")
|
|
|
|
icon="chevron-left"
|
|
|
|
class="btn-small editor-back-button"
|
|
|
|
}}
|
|
|
|
|
|
|
|
<span class="editor-theme-name-wrapper">
|
|
|
|
{{i18n "admin.customize.theme.edit_css_html"}}
|
|
|
|
{{#link-to showRouteName model.id replace=true class="editor-theme-name"
|
|
|
|
}}
|
|
|
|
{{model.name}}
|
|
|
|
{{/link-to}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2017-04-12 22:52:52 +08:00
|
|
|
|
2020-03-07 00:35:18 +08:00
|
|
|
{{admin-theme-editor
|
|
|
|
theme=model
|
|
|
|
editRouteName=editRouteName
|
2019-02-19 20:56:01 +08:00
|
|
|
currentTargetName=currentTargetName
|
|
|
|
fieldName=fieldName
|
|
|
|
fieldAdded=(action "fieldAdded")
|
|
|
|
maximized=maximized
|
|
|
|
onlyOverriddenChanged=(action "onlyOverriddenChanged")
|
2021-05-04 19:56:10 +08:00
|
|
|
save=(action "save")
|
2019-02-19 20:56:01 +08:00
|
|
|
}}
|
2020-03-07 00:35:18 +08:00
|
|
|
|
2017-04-12 22:52:52 +08:00
|
|
|
<div class="admin-footer">
|
|
|
|
<div class="status-actions">
|
|
|
|
{{#unless model.changed}}
|
2020-12-08 07:54:44 +08:00
|
|
|
<a
|
|
|
|
href={{previewUrl}}
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
title={{i18n "admin.customize.explain_preview"}}
|
|
|
|
class="preview-link"
|
|
|
|
target="_blank"
|
|
|
|
>
|
2020-03-07 00:35:18 +08:00
|
|
|
{{i18n "admin.customize.preview"}}
|
|
|
|
</a>
|
2017-04-12 22:52:52 +08:00
|
|
|
{{/unless}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="buttons">
|
2021-02-05 03:35:23 +08:00
|
|
|
{{d-button
|
2020-12-08 07:54:44 +08:00
|
|
|
action=(action "save")
|
|
|
|
disabled=saveDisabled
|
|
|
|
class="btn-primary"
|
2021-02-05 03:35:23 +08:00
|
|
|
translatedLabel=saveButtonText
|
2020-12-08 07:54:44 +08:00
|
|
|
}}
|
2017-04-12 22:52:52 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|