Use label helper on ssh key form
This commit is contained in:
parent
5cfc3d44a6
commit
e95e679e80
|
@ -48,6 +48,7 @@ Ember.Handlebars.registerHelper('label', (options) ->
|
||||||
options.hash.for = id
|
options.hash.for = id
|
||||||
options.hashTypes.for = 'STRING'
|
options.hashTypes.for = 'STRING'
|
||||||
options.hashContexts.for = this
|
options.hashContexts.for = this
|
||||||
|
options.fn = Ember.Handlebars.compile("{{view.content}}")
|
||||||
|
|
||||||
Ember.Handlebars.helpers.view.call(this, view, options)
|
Ember.Handlebars.helpers.view.call(this, view, options)
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<form class="ssh-key" {{action "save" on="submit"}}>
|
<form class="ssh-key" {{action "save" on="submit"}}>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>Description:</label>
|
{{label for="description" content="Description:"}}
|
||||||
{{input value=description}}
|
{{input value=description}}
|
||||||
</div>
|
</div>
|
||||||
{{#travis-field "value"}}
|
{{#travis-field "value"}}
|
||||||
<label class="value">Private Key:</label>
|
{{label for="value" class="value" content="Private key:"}}
|
||||||
{{textarea value=value}} {{travis-errors "value"}}
|
{{textarea value=value}} {{travis-errors "value"}}
|
||||||
{{/travis-field}}
|
{{/travis-field}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user