add some env var form error styles
This commit is contained in:
parent
68ea7071e0
commit
a7ad2c0a63
|
@ -3,6 +3,7 @@
|
|||
AddEnvVarComponent = Ember.Component.extend
|
||||
|
||||
classNames: ['form--envvar']
|
||||
classNameBindings: ['nameIsBlank:form-error']
|
||||
|
||||
store: Ember.inject.service()
|
||||
|
||||
|
|
|
@ -172,3 +172,14 @@
|
|||
height: 1.3em
|
||||
margin: .2em auto 0
|
||||
|
||||
.form-error
|
||||
.env-name
|
||||
border: $fail-color 2px solid
|
||||
.form-error
|
||||
color: $fail-color
|
||||
font-size: 14px
|
||||
margin: 0
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ textarea
|
|||
.form--envvar
|
||||
.form-elem
|
||||
display: inline-block
|
||||
vertical-align: middle
|
||||
vertical-align: top
|
||||
width: 100%
|
||||
margin-bottom: 1em
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<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"}}
|
||||
{{#if nameIsBlank }}
|
||||
<p class="form-error">Name cannot be blank</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="form-elem">
|
||||
{{input value=value class="env-value" placeholder="Value"}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user