Replace Ember.Text* insertions with helpers.
This commit is contained in:
parent
1097d51b33
commit
c7aebbf4d6
|
@ -24,7 +24,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#with content.selectedItem}}
|
{{#with content.selectedItem}}
|
||||||
{{view Ember.TextField class="style-name" valueBinding="name"}}
|
{{textField class="style-name" value=name}}
|
||||||
{{#if view.headerActive}}
|
{{#if view.headerActive}}
|
||||||
{{view Discourse.AceEditorView contentBinding="header" mode="html"}}
|
{{view Discourse.AceEditorView contentBinding="header" mode="html"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if plainText}}
|
{{#if plainText}}
|
||||||
{{view Ember.TextArea valueBinding="content.content" class="plain"}}
|
{{textarea value=content.content class="plain"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if html}}
|
{{#if html}}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<h3>{{unbound setting}}</h3>
|
<h3>{{unbound setting}}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="span11">
|
<div class="span11">
|
||||||
{{view Ember.TextField valueBinding="value" classNames="input-xxlarge"}}
|
{{textField value=value classNames="input-xxlarge"}}
|
||||||
<div class='desc'>{{unbound description}}</div>
|
<div class='desc'>{{unbound description}}</div>
|
||||||
</div>
|
</div>
|
||||||
{{#if dirty}}
|
{{#if dirty}}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</label>
|
</label>
|
||||||
{{#if is_custom_flag}}
|
{{#if is_custom_flag}}
|
||||||
{{#if selected}}
|
{{#if selected}}
|
||||||
{{view Ember.TextArea name="message" class="flag-message" placeholderBinding="customPlaceholder" valueBinding="message"}}
|
{{textarea name="message" class="flag-message" placeholder=customPlaceholder value=message}}
|
||||||
<div {{bindAttr class="customMessageLengthClasses"}}>{{customMessageLength}}</div>
|
<div {{bindAttr class="customMessageLengthClasses"}}>{{customMessageLength}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<label for='login-account-password'>{{i18n login.password}} </label>
|
<label for='login-account-password'>{{i18n login.password}} </label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{view Ember.TextField valueBinding="view.loginPassword" type="password" id="login-account-password"}}
|
{{textField value=view.loginPassword type="password" id="login-account-password"}}
|
||||||
<a id="forgot-password-link" {{action forgotPassword target="view"}}>{{i18n forgot_password.action}}</a>
|
<a id="forgot-password-link" {{action forgotPassword target="view"}}>{{i18n forgot_password.action}}</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{view Ember.TextField valueBinding="view.term" placeholderBinding="view.searchPlaceholder"}}
|
{{textField value=view.term placeholderBinding="view.searchPlaceholder"}}
|
||||||
{{#with view}}
|
{{#with view}}
|
||||||
{{#unless loading}}
|
{{#unless loading}}
|
||||||
{{#unless noResults}}
|
{{#unless noResults}}
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label">{{i18n user.email.title}}</label>
|
<label class="control-label">{{i18n user.email.title}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{view Ember.TextField valueBinding="controller.newEmail" elementId="change_email" classNames="input-xxlarge"}}
|
{{textField value=newEmail elementId="change_email" classNames="input-xxlarge"}}
|
||||||
</div>
|
</div>
|
||||||
<div class='instructions'>
|
<div class='instructions'>
|
||||||
{{#if controller.taken}}
|
{{#if controller.taken}}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label">{{i18n user.name.title}}</label>
|
<label class="control-label">{{i18n user.name.title}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{view Ember.TextField valueBinding="content.name" classNames="input-xxlarge"}}
|
{{textField value=name classNames="input-xxlarge"}}
|
||||||
</div>
|
</div>
|
||||||
<div class='instructions'>
|
<div class='instructions'>
|
||||||
{{i18n user.name.instructions}}
|
{{i18n user.name.instructions}}
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label">{{i18n user.website}}</label>
|
<label class="control-label">{{i18n user.website}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{view Ember.TextField valueBinding="content.website" classNames="input-xxlarge"}}
|
{{textField value=website classNames="input-xxlarge"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label">{{i18n user.username.title}}</label>
|
<label class="control-label">{{i18n user.username.title}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{view Ember.TextField valueBinding="controller.newUsername" elementId="change_username" classNames="input-xxlarge" maxlength="15"}}
|
{{textField value=newUsername id="change_username" classNames="input-xxlarge" maxlength="15"}}
|
||||||
</div>
|
</div>
|
||||||
<div class='instructions'>
|
<div class='instructions'>
|
||||||
{{#if controller.taken}}
|
{{#if taken}}
|
||||||
{{i18n user.change_username.taken}}
|
{{i18n user.change_username.taken}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span>{{ errorMessage }}</span>
|
<span>{{ errorMessage }}</span>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<button {{action changeUsername target="controller"}} {{bindAttr disabled="controller.saveDisabled"}} class="btn btn-primary">{{controller.saveButtonText}}</button>
|
<button {{action changeUsername}} {{bindAttr disabled="saveDisabled"}} class="btn btn-primary">{{saveButtonText}}</button>
|
||||||
{{#if saved}}{{i18n saved}}{{/if}}
|
{{#if saved}}{{i18n saved}}{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue