WIP on env var settings
This commit is contained in:
parent
745a39eae5
commit
f45573a7c9
|
@ -2,19 +2,17 @@
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
</div>
|
</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"}}
|
{{#each controller itemController="envVar"}}
|
||||||
{{#if isEditing}}
|
{{#if isEditing}}
|
||||||
{{! TODO: reuse it with "new", it's almost identical }}
|
{{! TODO: reuse it with "new", it's almost identical }}
|
||||||
<form {{action "save" on="submit"}}>
|
<form {{action "save" on="submit"}}>
|
||||||
<p>Name: {{input value=name}}</p>
|
{{label value=name}}: {{input value=name}}
|
||||||
{{#if public}}<p>Value: {{input value=value}}</p>{{/if}}
|
{{#if public}}{{label value=value}}: {{input value=value}}{{/if}}
|
||||||
<p>Public: {{input type="checkbox" checked=public}}</p>
|
{{label value=public}}: {{input type="checkbox" checked=public}}
|
||||||
|
|
||||||
<p>
|
{{input type="submit" value="Wat"}} or <a href="#" {{action "cancel"}}>Cancel</a>
|
||||||
{{input type="submit" value="Save"}} or <a href="#" {{action "cancel"}}>Cancel</a>
|
|
||||||
</p>
|
|
||||||
</form>
|
</form>
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -30,4 +30,23 @@
|
||||||
border-color: #ffb6c1
|
border-color: #ffb6c1
|
||||||
background: rgb(252, 227, 230)
|
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
|
Loading…
Reference in New Issue
Block a user