zet-lib 1.2.105 → 1.2.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Form.js +2 -2
- package/lib/zRoute.js +1 -1
- package/package.json +1 -1
package/lib/Form.js
CHANGED
|
@@ -179,7 +179,7 @@ Form.field = (obj) => {
|
|
|
179
179
|
break
|
|
180
180
|
|
|
181
181
|
case 'integer':
|
|
182
|
-
displayForm = `${prepend}${inputGroupLeft}<input autocomplete="off" autofocus="" ${disabled} ${readonly} ${tabindex} ${style} type="
|
|
182
|
+
displayForm = `${prepend}${inputGroupLeft}<input autocomplete="off" autofocus="" ${disabled} ${readonly} ${tabindex} ${style} type="number" class="form-control ${obj.class}" ${id} ${name} ${placeholder} ${required} value="${value}" ${htmlOptions}>${inputGroupRight}${information}${append}`
|
|
183
183
|
break
|
|
184
184
|
|
|
185
185
|
case 'datepicker':
|
|
@@ -378,7 +378,7 @@ Form.field = (obj) => {
|
|
|
378
378
|
}
|
|
379
379
|
let btnAdd = ''
|
|
380
380
|
if (!obj.isAddButton && !obj.viewOnly) {
|
|
381
|
-
btnAdd = `<th><img id="add${obj.id}" src="/assets/icons/plus.svg" class="icons-bg-
|
|
381
|
+
btnAdd = `<th><img id="add${obj.id}" src="/assets/icons/plus.svg" class="icons-bg-white boxy-small btn-plus" ></th>`
|
|
382
382
|
}
|
|
383
383
|
obj.btnAdd = btnAdd
|
|
384
384
|
obj.html = html
|
package/lib/zRoute.js
CHANGED
|
@@ -2428,7 +2428,7 @@ zRoute.forms = (req, res, MYMODEL, relations, data = {}) => {
|
|
|
2428
2428
|
obj.class = 'form-control number'
|
|
2429
2429
|
break
|
|
2430
2430
|
case 'integer':
|
|
2431
|
-
obj.type = '
|
|
2431
|
+
obj.type = 'integer'
|
|
2432
2432
|
obj.class = 'form-control number'
|
|
2433
2433
|
break
|
|
2434
2434
|
case 'email':
|