Переглянути джерело

Update forma.html

Corrige error con el botón de submit
Carlos J Corrada Bravo 4 роки тому
джерело
коміт
721376d29c
1 змінених файлів з 70 додано та 71 видалено
  1. 70
    71
      templates/forma.html

+ 70
- 71
templates/forma.html Переглянути файл

@@ -45,78 +45,77 @@
45 45
 <!-- <form class="form" action="/procesaUser" method="POST"> -->
46 46
 <form class="form-inline" action="/{{user_type}}/procesaUser" method="POST">
47 47
       {% raw %}
48
-<div class="modal-body row">
49
-  <div class="col-md-6">
50
-<span ng-repeat="entrada in entradas.col1">
51
-  <div class="form-group">
52
-	<label for="{{entrada.name}}" class="boton labelForma">
53
-		{{entrada.label}}
54
-	</label>
55
-	<span ng-if="entrada.type=='select'">
56
-		<select ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" name="{{entrada.name}}" id="{{entrada.name}}" class="form-control-inline"  style="width: 250px;height: 48px;"
57
-      ng-options="opcion.label for opcion in entrada.options track by opcion.id"
58
-      ng-model="entrada.value"
59
-      ng-required="true" required
60
-      ></select>
61
-	</span>
62
-	<span ng-if="entrada.type=='checkbox'">
63
-		<input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" class="form-control-inline" type="{{entrada.type}}" name="{{entrada.name}}" id="{{entrada.name}}" value="1" ng-checked="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
64
-	</span>
65
-	<span ng-if="entrada.type=='tel'">
66
-		<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" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
67
-	</span>
68
-	<span ng-if="entrada.type=='date'">
69
-		<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" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
70
-	</span>
71
-	<span ng-if="entrada.type!='select' && entrada.type!='checkbox' && entrada.type!='tel' && entrada.type!='date'">
72
-		<input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" ng-required="entrada.require" class="form-control-inline" type="{{entrada.type}}" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
73
-	</span>
74
-  </div>
75
-</div>
76
-  <div class="col-md-6">
77
-<span ng-repeat="entrada in entradas.col2">
78
-  <div class="form-group">
79
-	<label for="{{entrada.name}}" class="boton labelForma">
80
-		{{entrada.label}}
81
-	</label>
82
-	<span ng-if="entrada.type=='select'">
83
-		<select ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" name="{{entrada.name}}" id="{{entrada.name}}" class="form-control-inline"  style="width: 250px;height: 48px;"
84
-      ng-options="opcion.label for opcion in entrada.options track by opcion.id"
85
-      ng-model="entrada.value"
86
-      ng-required="true" required
87
-      ></select>
88
-	</span>
89
-	<span ng-if="entrada.type=='checkbox'">
90
-		<input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" class="form-control-inline" type="{{entrada.type}}" name="{{entrada.name}}" id="{{entrada.name}}" value="1" ng-checked="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
91
-	</span>
92
-	<span ng-if="entrada.type=='tel'">
93
-		<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" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
94
-	</span>
95
-	<span ng-if="entrada.type=='date'">
96
-		<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" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
97
-	</span>
98
-	<span ng-if="entrada.type!='select' && entrada.type!='checkbox' && entrada.type!='tel' && entrada.type!='date'">
99
-		<input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" ng-required="entrada.require" class="form-control-inline" type="{{entrada.type}}" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
100
-	</span>
101
-  </div>
102
-</div>
103
-</div>
48
+	<div class="row">
49
+		<div class="col-md-6">
50
+			<span ng-repeat="entrada in entradas.col1">
51
+				<div class="form-group">
52
+					<label for="{{entrada.name}}" class="boton labelForma">
53
+					{{entrada.label}}
54
+					</label>
55
+					<span ng-if="entrada.type=='select'">
56
+						<select ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" name="{{entrada.name}}" id="{{entrada.name}}" class="form-control-inline"  style="width: 250px;height: 48px;"
57
+					  ng-options="opcion.label for opcion in entrada.options track by opcion.id"
58
+					  ng-model="entrada.value"
59
+					  ng-required="true" required
60
+					  ></select>
61
+					</span>
62
+					<span ng-if="entrada.type=='checkbox'">
63
+						<input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" class="form-control-inline" type="{{entrada.type}}" name="{{entrada.name}}" id="{{entrada.name}}" value="1" ng-checked="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
64
+					</span>
65
+					<span ng-if="entrada.type=='tel'">
66
+						<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" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
67
+					</span>
68
+					<span ng-if="entrada.type=='date'">
69
+						<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" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
70
+					</span>
71
+					<span ng-if="entrada.type!='select' && entrada.type!='checkbox' && entrada.type!='tel' && entrada.type!='date'">
72
+						<input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" ng-required="entrada.require" class="form-control-inline" type="{{entrada.type}}" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
73
+					</span>
74
+				</div>
75
+			 </span>
76
+		</div>
77
+		<div class="col-md-6">
78
+			<span ng-repeat="entrada in entradas.col2">
79
+				<div class="form-group">
80
+					<label for="{{entrada.name}}" class="boton labelForma">
81
+						{{entrada.label}}
82
+					</label>
83
+					<span ng-if="entrada.type=='select'">
84
+						<select ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" name="{{entrada.name}}" id="{{entrada.name}}" class="form-control-inline"  style="width: 250px;height: 48px;"
85
+					  ng-options="opcion.label for opcion in entrada.options track by opcion.id"
86
+					  ng-model="entrada.value"
87
+					  ng-required="true" required
88
+					  ></select>
89
+					</span>
90
+					<span ng-if="entrada.type=='checkbox'">
91
+						<input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" class="form-control-inline" type="{{entrada.type}}" name="{{entrada.name}}" id="{{entrada.name}}" value="1" ng-checked="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
92
+					</span>
93
+					<span ng-if="entrada.type=='tel'">
94
+						<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" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
95
+					</span>
96
+					<span ng-if="entrada.type=='date'">
97
+						<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" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
98
+					</span>
99
+					<span ng-if="entrada.type!='select' && entrada.type!='checkbox' && entrada.type!='tel' && entrada.type!='date'">
100
+						<input ng-disabled="entrada.disabled" tabindex="{{entrada.tabindex}}" ng-required="entrada.require" class="form-control-inline" type="{{entrada.type}}" id="{{entrada.name}}" name="{{entrada.name}}" value="{{entrada.value}}" style="width: 250px;height: 48px;align:left;">
101
+					</span>
102
+				</div>
103
+			</span>
104
+		</div>
105
+	</div>
104 106
 
105
-</div>
106
-</span>
107
-</div>
108
-      {% endraw %}
109
-<input type="hidden" name="id" value="{{id}}">
110
-<input type="hidden" name="accion" value="{{accion}}">
111
-<input type="hidden" name="tipo" value="{{tipo}}">
112
-      {% raw %}
113
-<div class="modal-body row">
114
-  <div class="col-md-12" align="center">
115
-<span ng-if="abled">
116
- <input class="boton labelForma" type="submit">
117
-</span>
118
-</div>
119
-</div>
107
+	  {% endraw %}
108
+	<input type="hidden" name="id" value="{{id}}">
109
+	<input type="hidden" name="accion" value="{{accion}}">
110
+	<input type="hidden" name="tipo" value="{{tipo}}">
111
+	  {% raw %}
112
+	<div class="modal-body row">
113
+		<div class="col-md-12" align="center">
114
+			<span ng-if="abled">
115
+				<input class="boton labelForma" type="submit">
116
+			</span>
117
+		</div>
118
+	</div>
120 119
       {% endraw %}
121 120
 </form>
122 121
 </div>