WIP on env var settings

This commit is contained in:
Justine Arreche 2014-07-29 12:38:45 +02:00
parent 745a39eae5
commit f45573a7c9
2 changed files with 24 additions and 7 deletions

View File

@ -2,19 +2,17 @@
{{outlet}}
</div>
{{#link-to "env_vars.new"}}Add a new variable{{/link-to}}
{{#link-to "env_vars.new" class="env_var_add"}}Add a new variable{{/link-to}}
{{#each controller itemController="envVar"}}
{{#if isEditing}}
{{! TODO: reuse it with "new", it's almost identical }}
<form {{action "save" on="submit"}}>
<p>Name: {{input value=name}}</p>
{{#if public}}<p>Value: {{input value=value}}</p>{{/if}}
<p>Public: {{input type="checkbox" checked=public}}</p>
{{label value=name}}: {{input value=name}}
{{#if public}}{{label value=value}}: {{input value=value}}{{/if}}
{{label value=public}}: {{input type="checkbox" checked=public}}
<p>
{{input type="submit" value="Save"}} or <a href="#" {{action "cancel"}}>Cancel</a>
</p>
{{input type="submit" value="Wat"}} or <a href="#" {{action "cancel"}}>Cancel</a>
</form>
{{else}}
<p>

View File

@ -30,4 +30,23 @@
border-color: #ffb6c1
background: rgb(252, 227, 230)
a.env_var_add
color: #ffffff
background-color: #97a3aa
border: 1px solid #818e91
border-radius: 4px
padding: 8px 12px 8px 12px
font-size: 13px
line-height: 70px
input
display: inline-block
width: 260px
height: 20px
padding: 5px
background-color: #fff
border: 1px solid #ddd
line-height: 17px
font-size: 13px
color: #999999
text-align: left