ui/lib/shared/addon/components/save-cancel/template.hbs

17 lines
477 B
Handlebars

{{#if saving}}
<button class="btn btn-disabled {{savingColor}}" {{action "doNothing"}}>
<i class="icon icon-spinner icon-spin"></i>
{{t savingLabel}}
</button>
{{else}}
<button type="submit" {{action "save"}} disabled={{saveDisabled}} class="btn {{if saved savedColor saveColor}}">
{{t btnLabel}}
</button>
{{/if}}
{{yield}}
{{#unless cancelDisabled}}
<button {{action "cancel"}} class="btn {{cancelColor}}">
{{t cancelLabel}}
</button>
{{/unless}}