DEV: Use angle bracket syntax (#172)

This commit is contained in:
Isaac Janzen 2023-05-26 09:20:47 -05:00 committed by GitHub
parent 58205cc9ac
commit 743478d593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 25 deletions

View File

@ -1,4 +1,4 @@
{{#d-section class="house-ads-settings content-body"}}
<DSection @class="house-ads-settings content-body">
<div>{{i18n "admin.adplugin.house_ads.description"}}</div>
{{#if houseAds.length}}
@ -34,12 +34,12 @@
adSettings=adSettings
}}
{{d-button
label="admin.adplugin.house_ads.more_settings"
icon="cog"
<DButton
@label="admin.adplugin.house_ads.more_settings"
@icon="cog"
class="btn-default"
action=(route-action "moreSettings")
}}
@action={{route-action "moreSettings"}}
/>
</form>
{{else}}
<p>
@ -48,4 +48,4 @@
{{/link-to}}
</p>
{{/if}}
{{/d-section}}
</DSection>

View File

@ -1,7 +1,7 @@
{{#d-section class="edit-house-ad content-body"}}
<h1>{{text-field class="house-ad-name" value=buffered.name}}</h1>
<DSection @class="edit-house-ad content-body">
<h1><TextField @class="house-ad-name" @value={{buffered.name}} /></h1>
<div class="controls">
{{ace-editor content=buffered.html mode="html"}}
<AceEditor @content={{buffered.html}} @mode="html" />
</div>
<div class="controls">
<div class="visibility-settings">
@ -24,12 +24,12 @@
</div>
</div>
{{d-button
action=(action "save")
disabled=disableSave
<DButton
@action={{action "save"}}
@disabled={{disableSave}}
class="btn-primary save-button"
label="admin.adplugin.house_ads.save"
}}
@label="admin.adplugin.house_ads.save"
/>
{{#if saving}}
{{savingStatus}}
@ -39,10 +39,10 @@
{{/if}}
{{/if}}
{{d-button
action=(action "destroy")
<DButton
@action={{action "destroy"}}
class="btn-danger delete-button"
label="admin.adplugin.house_ads.delete"
}}
@label="admin.adplugin.house_ads.delete"
/>
</div>
{{/d-section}}
</DSection>

View File

@ -6,8 +6,8 @@
}}
<div class="setting-controls">
{{#if changed}}
{{d-button class="ok" action=(action "save") icon="check"}}
{{d-button class="cancel" action=(action "cancel") icon="times"}}
<DButton class="ok" @action={{action "save"}} @icon="check" />
<DButton class="cancel" @action={{action "cancel"}} @icon="times" />
{{/if}}
</div>
<p class="help">{{help}}</p>

View File

@ -1,9 +1,9 @@
<label for={{name}}>{{title}}</label>
{{text-field value=adValue classNames="house-ads-text-input"}}
<TextField @value={{adValue}} @classNames="house-ads-text-input" />
<div class="setting-controls">
{{#if changed}}
{{d-button class="ok" action=(action "save") icon="check"}}
{{d-button class="cancel" action=(action "cancel") icon="times"}}
<DButton class="ok" @action={{action "save"}} @icon="check" />
<DButton class="cancel" @action={{action "cancel"}} @icon="times" />
{{/if}}
</div>
<p class="help">{{help}}</p>