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

View File

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

View File

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

View File

@ -1,9 +1,9 @@
<label for={{name}}>{{title}}</label> <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"> <div class="setting-controls">
{{#if changed}} {{#if changed}}
{{d-button class="ok" action=(action "save") icon="check"}} <DButton class="ok" @action={{action "save"}} @icon="check" />
{{d-button class="cancel" action=(action "cancel") icon="times"}} <DButton class="cancel" @action={{action "cancel"}} @icon="times" />
{{/if}} {{/if}}
</div> </div>
<p class="help">{{help}}</p> <p class="help">{{help}}</p>