|
@@ -12,6 +12,10 @@
|
12
|
12
|
<script>
|
13
|
13
|
forma.value("accion", "{{accion}}").value("tipo", "{{tipo}}").value("id", "{{id}}").value("user_type", "{{user_type}}");
|
14
|
14
|
</script>
|
|
15
|
+ <script>
|
|
16
|
+
|
|
17
|
+ </script>
|
|
18
|
+
|
15
|
19
|
</head>
|
16
|
20
|
<body ng-app="forma" ng-controller="FormController">
|
17
|
21
|
<div class="container-fluid">
|
|
@@ -47,23 +51,23 @@
|
47
|
51
|
{{entrada.label}}
|
48
|
52
|
</span>
|
49
|
53
|
<span ng-if="entrada.type=='select'">
|
50
|
|
- <select tabindex="{{entrada.tabindex}}" name="{{entrada.name}}" id="{{entrada.name}}" class="form-control-inline" style="width: 250px;height: 48px;"
|
|
54
|
+ <select ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" name="{{entrada.name}}" id="{{entrada.name}}" class="form-control-inline" style="width: 250px;height: 48px;"
|
51
|
55
|
ng-options="opcion.label for opcion in entrada.options track by opcion.id"
|
52
|
56
|
ng-model="entrada.value"
|
53
|
57
|
ng-required="true" required
|
54
|
58
|
></select>
|
55
|
59
|
</span>
|
56
|
60
|
<span ng-if="entrada.type=='checkbox'">
|
57
|
|
- <input tabindex="{{entrada.tabindex}}" class="form-control-inline" type="{{entrada.type}}" name="{{entrada.name}}" value="1" ng-checked="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
|
|
61
|
+ <input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" class="form-control-inline" type="{{entrada.type}}" name="{{entrada.name}}" value="1" ng-checked="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
|
58
|
62
|
</span>
|
59
|
63
|
<span ng-if="entrada.type=='tel'">
|
60
|
|
- <input tabindex="{{entrada.tabindex}}" class="form-control-inline" type="tel" placeholder="787-123-4567" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" ng-required="entrada.require" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
|
|
64
|
+ <input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" class="form-control-inline" type="tel" placeholder="787-123-4567" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" ng-required="entrada.require" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
|
61
|
65
|
</span>
|
62
|
66
|
<span ng-if="entrada.type=='date'">
|
63
|
|
- <input tabindex="{{entrada.tabindex}}" class="form-control-inline" type="date" placeholder="yyyy-MM-dd" pattern="\d{4}-\d{1,2}-\d{1,2}" ng-required="entrada.require" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
|
|
67
|
+ <input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" class="form-control-inline" type="date" placeholder="yyyy-MM-dd" pattern="\d{4}-\d{1,2}-\d{1,2}" ng-required="entrada.require" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
|
64
|
68
|
</span>
|
65
|
69
|
<span ng-if="entrada.type!='select' && entrada.type!='checkbox' && entrada.type!='tel' && entrada.type!='date'">
|
66
|
|
- <input tabindex="{{entrada.tabindex}}" ng-required="entrada.require" class="form-control-inline" type="{{entrada.type}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
|
|
70
|
+ <input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" ng-required="entrada.require" class="form-control-inline" type="{{entrada.type}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
|
67
|
71
|
</span>
|
68
|
72
|
|
69
|
73
|
<span ng-if="entradas.col2[$index].name">
|
|
@@ -71,23 +75,23 @@
|
71
|
75
|
{{entradas.col2[$index].label}}
|
72
|
76
|
</span>
|
73
|
77
|
<span ng-if="entradas.col2[$index].type=='select'">
|
74
|
|
- <select name="{{entradas.col2[$index].name}}" id="{{entradas.col2[$index].name}}" class="form-control-inline" style="width: 250px;height: 48px;"
|
|
78
|
+ <select ng-disabled="entradas.col2[$index].disabled" name="{{entradas.col2[$index].name}}" id="{{entradas.col2[$index].name}}" class="form-control-inline" style="width: 250px;height: 48px;"
|
75
|
79
|
ng-options="opcion.label for opcion in entradas.col2[$index].options track by opcion.id"
|
76
|
80
|
ng-model="entradas.col2[$index].value"
|
77
|
81
|
ng-required="entradas.col2[$index].require"
|
78
|
82
|
></select>
|
79
|
83
|
</span>
|
80
|
84
|
<span ng-if="entradas.col2[$index].type=='checkbox'">
|
81
|
|
- <input class="form-control-inline" type="checkbox" name="{{entradas.col2[$index].name}}" value="1" ng-checked="{{entradas.col2[$index].value}}" style="width: 250px;height: 48px;align:left;">
|
|
85
|
+ <input ng-disabled="entradas.col2[$index].disabled" class="form-control-inline" type="checkbox" name="{{entradas.col2[$index].name}}" value="1" ng-checked="{{entradas.col2[$index].value}}" style="width: 250px;height: 48px;align:left;">
|
82
|
86
|
</span>
|
83
|
87
|
<span ng-if="entradas.col2[$index].type=='tel'">
|
84
|
|
- <input class="form-control-inline" type="tel" placeholder="787-123-4567" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" ng-required="entradas.col2[$index].require" name="{{entradas.col2[$index].name}}" value="{{entradas.col2[$index].value}}" style="width: 250px;height: 48px;align:left;">
|
|
88
|
+ <input ng-disabled="entradas.col2[$index].disabled" class="form-control-inline" type="tel" placeholder="787-123-4567" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" ng-required="entradas.col2[$index].require" name="{{entradas.col2[$index].name}}" value="{{entradas.col2[$index].value}}" style="width: 250px;height: 48px;align:left;">
|
85
|
89
|
</span>
|
86
|
90
|
<span ng-if="entradas.col2[$index].type=='date'">
|
87
|
|
- <input class="form-control-inline" type="date" placeholder="yyyy-MM-dd" pattern="\d{4}-\d{1,2}-\d{1,2}" ng-required="entradas.col2[$index].require" name="{{entradas.col2[$index].name}}" value="{{entradas.col2[$index].value}}" style="width: 250px;height: 48px;align:left;">
|
|
91
|
+ <input ng-disabled="entradas.col2[$index].disabled" class="form-control-inline" type="date" placeholder="yyyy-MM-dd" pattern="\d{4}-\d{1,2}-\d{1,2}" ng-required="entradas.col2[$index].require" name="{{entradas.col2[$index].name}}" value="{{entradas.col2[$index].value}}" style="width: 250px;height: 48px;align:left;">
|
88
|
92
|
</span>
|
89
|
93
|
<span ng-if="entradas.col2[$index].type!='select' && entradas.col2[$index].type!='checkbox' && entradas.col2[$index].type!='tel' && entradas.col2[$index].type!='date'">
|
90
|
|
- <input class="form-control-inline" type="{{entradas.col2[$index].type}}" ng-required="entradas.col2[$index].require" name="{{entradas.col2[$index].name}}" value="{{entradas.col2[$index].value}}" style="width: 250px;height: 48px;align:left;">
|
|
94
|
+ <input ng-disabled="entradas.col2[$index].disabled" class="form-control-inline" type="{{entradas.col2[$index].type}}" ng-required="entradas.col2[$index].require" name="{{entradas.col2[$index].name}}" value="{{entradas.col2[$index].value}}" style="width: 250px;height: 48px;align:left;">
|
91
|
95
|
</span>
|
92
|
96
|
</span>
|
93
|
97
|
</div>
|
|
@@ -96,7 +100,11 @@
|
96
|
100
|
<input type="hidden" name="id" value="{{id}}">
|
97
|
101
|
<input type="hidden" name="accion" value="{{accion}}">
|
98
|
102
|
<input type="hidden" name="tipo" value="{{tipo}}">
|
99
|
|
-<input class="boton labelForma" type="submit">
|
|
103
|
+ {% raw %}
|
|
104
|
+<span ng-if="abled">
|
|
105
|
+ <input class="boton labelForma" type="submit">
|
|
106
|
+</span>
|
|
107
|
+ {% endraw %}
|
100
|
108
|
</form>
|
101
|
109
|
</div>
|
102
|
110
|
</div>
|