@@ -3,25 +3,37 @@ ul.tbody(
33 ng-init = "vars = [\
44 {key: 'hello', value: '●●●', duplicate: true},\
55 {key: 'hi', value: '●●●●●●', duplicate: false},\
6- {key: '‘ sup', value: '●●●●●●●●●', duplicate: false},\
6+ {key: 'sup', value: '●●●●●●●●●', duplicate: false},\
77 {key: 'hey', value: '●●●', duplicate: false},\
88 {key: 'hello', value: '●●●●●●', duplicate: true}\
99 ]"
1010)
1111 li.tr
1212 label.grid-block.align-center.cell
13+ //- this pattern should also (but does not currently) validate that the first character is not a number
1314 //- [disable] when loading
14- input.input.monospace (
15+ input.input.input-validate.monospace (
16+ name = "key"
17+ ng-model = "key"
18+ ng-required = "true"
19+ ng-pattern = "/^([A-Za-z]|[0-9]|_)+$/"
1520 placeholder = "Key"
21+ spellcheck = "false"
1622 )
1723 label.grid-block.align-center.cell
1824 //- [disable] when loading
19- input.input.monospace (
25+ input.input.input-validate.monospace (
26+ name = "value"
27+ ng-model = "value"
28+ ng-required = "true"
29+ ng-pattern = "/^([A-Za-z]|[0-9]|_)+$/"
2030 placeholder = "Value"
31+ spellcheck = "false"
2132 )
2233 .grid-block.align-center.justify-right.cell.cell-action
2334 //- [disable] when loading
2435 button.grid-block.align-center.justify-center.btn.btn-xs.white (
36+ ng-disabled = "envVarForm.$invalid"
2537 ng-init = "saving = null"
2638 )
2739 //- show when loading
0 commit comments