UX: modifies admin email template to have more space for the form (#7993)

This commit is contained in:
Joffrey JAFFEUX 2019-08-12 10:27:25 +02:00 committed by GitHub
parent 4cd0cd2f8e
commit 731f61a818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 14 deletions

View File

@ -6,5 +6,11 @@ export default Ember.Controller.extend({
this._super(...arguments);
this.titleSorting = ["title"];
},
actions: {
selectTemplate(template) {
this.transitionToRoute("adminCustomizeEmailTemplates.edit", template);
}
}
});

View File

@ -1,15 +1,8 @@
<div class='row'>
<div class='content-list'>
<ul>
{{#each sortedTemplates as |et|}}
<li>
{{#link-to 'adminCustomizeEmailTemplates.edit' et}}{{et.title}}{{/link-to}}
</li>
{{/each}}
</ul>
</div>
{{combo-box
content=sortedTemplates
valueAttribute="id"
nameProperty="title"
onSelect=(action "selectTemplate")
}}
<div class='content-editor'>
{{outlet}}
</div>
</div>
{{outlet}}

View File

@ -791,6 +791,17 @@
}
}
.admin-customize-email-templates {
.email-template,
.controls {
margin-top: 1em;
}
.d-editor {
height: 50vh;
}
}
.admin-customize-email-style {
.ace-wrapper {
position: relative;