50 lines
1.5 KiB
Handlebars
50 lines
1.5 KiB
Handlebars
<form {{action "save" on="submit"}}>
|
|
{{#if nameIsBlank }}
|
|
<p class="form-error">Name cannot be blank</p>
|
|
{{/if}}
|
|
<div class="form-elem">
|
|
{{input value=name class="env-name" on="key-press" action="nameChanged" placeholder="Name"}}
|
|
</div>
|
|
<div class="form-elem">
|
|
{{input value=value class="env-value" placeholder="Value"}}
|
|
</div>
|
|
<div class="form-elem">
|
|
{{travis-switch active=public}}
|
|
</div>
|
|
<div class="form-elem">
|
|
<input type="submit" value="Add" class="form-submit {{if isSaving "saving"}}" disabled={{isSaving}} />
|
|
</div>
|
|
</form>
|
|
|
|
{{!--
|
|
|
|
|
|
<form class="env-var" {{action "save" on="submit"}}>
|
|
{{#travis-field "name"}}
|
|
|
|
{{input value=name class="env-name" placeholder="Name"}} {{travis-errors "name"}}
|
|
{{/travis-field}}
|
|
<span class="equals">=</span>
|
|
{{#if showValueField}}
|
|
<div class="field value value--extra">
|
|
{{#label for="value" class="value"}}Value:{{/label}}
|
|
{{input value=value class="env-value" placeholder="Value"}}
|
|
</div>
|
|
{{else}}
|
|
<div class="field name">
|
|
<span class="value value-display secure">{{value}}</span>
|
|
</div>
|
|
{{/if}}
|
|
<div class="field field--switch">
|
|
{{travis-switch active=public}}
|
|
{{#label for="secure" class="public"}}Display value in build logs{{/label}}
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<input type="submit" {{bind-attr value=actionType class=":submit-env-var isSaving:saving" disabled=isSaving}} />
|
|
<span class="or">or</span>
|
|
<a href="#" class="cancel-env-var" {{action "cancel"}}>Cancel</a>
|
|
</div>
|
|
</form>
|
|
|
|
--}} |