2017-04-12 22:52:52 +08:00
|
|
|
<div class="current-style {{if maximized "maximized"}}">
|
|
|
|
<div class="wrapper">
|
2019-02-19 20:56:01 +08:00
|
|
|
<h2>{{i18n "admin.customize.theme.edit_css_html"}} {{#link-to showRouteName model.id replace=true}}{{model.name}}{{/link-to}}</h2>
|
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")
|
|
|
|
}}
|
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-04-17 04:38:10 +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">
|
2019-01-10 18:06:01 +08:00
|
|
|
{{#d-button action=(action "save") disabled=saveDisabled class="btn-primary"}}
|
2017-04-12 22:52:52 +08:00
|
|
|
{{saveButtonText}}
|
|
|
|
{{/d-button}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|