No more bind-attr
This commit is contained in:
parent
eb233ddca1
commit
519bef823d
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
<div class="span-1">
|
<div class="span-1">
|
||||||
<fieldset {{bind-attr class=":flakes-information-box isEditing"}}>
|
<fieldset class="flakes-information-box {{if isEditing 'is-editing'}}">
|
||||||
<legend>
|
<legend>
|
||||||
Species
|
Species
|
||||||
{{#if isEditing}}
|
{{#if isEditing}}
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
{{#if canEdit}}
|
{{#if canEdit}}
|
||||||
<div class="grid-4">
|
<div class="grid-4">
|
||||||
<div class="span-1">
|
<div class="span-1">
|
||||||
<a {{bind-attr class=":smaller isEditing:button-red:button-gray"}} {{action 'cancel'}}>
|
<a class="smaller {{if isEditing 'button-red' 'button-gray'}}" {{action 'cancel'}}>
|
||||||
{{#if isEditing}}Cancel{{else}}Edit{{/if}}
|
{{#if isEditing}}Cancel{{else}}Edit{{/if}}
|
||||||
</a>
|
</a>
|
||||||
{{#if isEditing}}
|
{{#if isEditing}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="span-1">
|
<div class="span-1">
|
||||||
<fieldset {{bind-attr class=":flakes-information-box isEditing"}}>
|
<fieldset class="flakes-information-box {{if isEditing 'is-editing'}}">
|
||||||
<legend>
|
<legend>
|
||||||
Strain
|
Strain
|
||||||
{{#if isEditing}}
|
{{#if isEditing}}
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
<div class="grid-4">
|
<div class="grid-4">
|
||||||
<div class="span-1">
|
<div class="span-1">
|
||||||
{{! Does nothing ATM }}
|
{{! Does nothing ATM }}
|
||||||
<a {{bind-attr class=":smaller isEditing:button-red:button-gray"}} {{action 'cancel'}}>
|
<a class="smaller {{if isEditing 'button-red' 'button-gray'}}" {{action 'cancel'}}>
|
||||||
{{#if isEditing}}Cancel{{else}}Edit{{/if}}
|
{{#if isEditing}}Cancel{{else}}Edit{{/if}}
|
||||||
</a>
|
</a>
|
||||||
{{#if isEditing}}
|
{{#if isEditing}}
|
||||||
|
|
Reference in a new issue