Commit 78c9ddf0e745d01df1a96c574580521169f856c5
1 parent
346613805a
Exists in
master
teclado virtual funcionando
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
package.json
| 1 | { | 1 | { |
| 2 | "name": "foca-modal-tarifa-flete", | 2 | "name": "foca-modal-tarifa-flete", |
| 3 | "version": "0.0.1", | 3 | "version": "0.0.1", |
| 4 | "description": "Modal de tarifa flete", | 4 | "description": "Modal de tarifa flete", |
| 5 | "main": "index.js", | 5 | "main": "index.js", |
| 6 | "scripts": { | 6 | "scripts": { |
| 7 | "test": "echo \"Error: no test specified\" && exit 1", | 7 | "test": "echo \"Error: no test specified\" && exit 1", |
| 8 | "gulp-pre-commit": "gulp pre-commit", | 8 | "gulp-pre-commit": "gulp pre-commit", |
| 9 | "compile": "gulp uglify", | 9 | "compile": "gulp uglify", |
| 10 | "postinstall": "npm run compile && gulp clean-post-install", | 10 | "postinstall": "npm run compile && gulp clean-post-install", |
| 11 | "install-dev": "npm install -D angular font-awesome pump jquery bootstrap ui-bootstrap4 jshint gulp gulp-uglify gulp-concat gulp-htmlmin gulp-rename gulp-uglify gulp-jshint gulp-replace gulp-connect gulp-clean gulp-angular-templatecache git+https://debo.suite.repo/modulos-npm/foca-directivas.git" | 11 | "install-dev": "npm install -D angular font-awesome pump jquery bootstrap ui-bootstrap4 jshint gulp gulp-uglify gulp-concat gulp-htmlmin gulp-rename gulp-uglify gulp-jshint gulp-replace gulp-connect gulp-clean gulp-angular-templatecache git+http://git.focasoftware.com/npm/foca-directivas.git" |
| 12 | }, | 12 | }, |
| 13 | "pre-commit": [ | 13 | "pre-commit": [ |
| 14 | "gulp-pre-commit" | 14 | "gulp-pre-commit" |
| 15 | ], | 15 | ], |
| 16 | "repository": { | 16 | "repository": { |
| 17 | "type": "git", | 17 | "type": "git", |
| 18 | "url": "https://debo.suite.repo/modulos-npm/foca-modal-tarifa-flete.git" | 18 | "url": "http://git.focasoftware.com/npm/foca-modal-tarifa-flete.git" |
| 19 | }, | 19 | }, |
| 20 | "author": "Foca Software", | 20 | "author": "Foca Software", |
| 21 | "license": "ISC", | 21 | "license": "ISC", |
| 22 | "devDependencies": { | 22 | "devDependencies": { |
| 23 | "angular": "^1.7.5", | 23 | "angular": "^1.7.5", |
| 24 | "bootstrap": "^4.1.3", | 24 | "bootstrap": "^4.1.3", |
| 25 | "foca-directivas": "git+https://debo.suite.repo/modulos-npm/foca-directivas.git", | 25 | "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git", |
| 26 | "font-awesome": "^4.7.0", | 26 | "font-awesome": "^4.7.0", |
| 27 | "gulp": "^3.9.1", | 27 | "gulp": "^3.9.1", |
| 28 | "gulp-angular-templatecache": "^2.2.2", | 28 | "gulp-angular-templatecache": "^2.2.2", |
| 29 | "gulp-clean": "^0.4.0", | 29 | "gulp-clean": "^0.4.0", |
| 30 | "gulp-concat": "^2.6.1", | 30 | "gulp-concat": "^2.6.1", |
| 31 | "gulp-connect": "^5.6.1", | 31 | "gulp-connect": "^5.6.1", |
| 32 | "gulp-htmlmin": "^5.0.1", | 32 | "gulp-htmlmin": "^5.0.1", |
| 33 | "gulp-jshint": "^2.1.0", | 33 | "gulp-jshint": "^2.1.0", |
| 34 | "gulp-rename": "^1.4.0", | 34 | "gulp-rename": "^1.4.0", |
| 35 | "gulp-replace": "^1.0.0", | 35 | "gulp-replace": "^1.0.0", |
| 36 | "gulp-uglify": "^3.0.1", | 36 | "gulp-uglify": "^3.0.1", |
| 37 | "jquery": "^3.3.1", | 37 | "jquery": "^3.3.1", |
| 38 | "jshint": "^2.9.6", | 38 | "jshint": "^2.9.6", |
| 39 | "pump": "^3.0.0", | 39 | "pump": "^3.0.0", |
| 40 | "ui-bootstrap4": "^3.0.5" | 40 | "ui-bootstrap4": "^3.0.5" |
| 41 | } | 41 | } |
| 42 | } | 42 | } |
| 43 | 43 |
src/views/modal-tarifa-flete.html
| 1 | <div class="modal-header py-1"> | 1 | <div class="modal-header py-1"> |
| 2 | <h5 class="modal-title">Tarifa Flete</h5> | 2 | <h5 class="modal-title">Tarifa Flete</h5> |
| 3 | </div> | 3 | </div> |
| 4 | <div class="modal-body" id="modal-body"> | 4 | <div class="modal-body" id="modal-body"> |
| 5 | <form name="formTarifaFlete"> | 5 | <form name="formTarifaFlete"> |
| 6 | <div class="form-group row"> | 6 | <div class="form-group row"> |
| 7 | <div class="offset-2 col-8"> | 7 | <div class="offset-2 col-8"> |
| 8 | <div class="form-group row"> | 8 | <div class="form-group row"> |
| 9 | <label for="costo" class="col-sm-4 col-form-label col-form-label-sm">Costo</label> | 9 | <label for="costo" class="col-sm-4 col-form-label col-form-label-sm">Costo</label> |
| 10 | <div class="col-sm-8"> | 10 | <div class="col-sm-8"> |
| 11 | <input | 11 | <input |
| 12 | type="number" | 12 | type="number" |
| 13 | min="0" | 13 | min="0" |
| 14 | step="0.01" | 14 | step="0.01" |
| 15 | class="form-control form-control-sm" | 15 | class="form-control form-control-sm" |
| 16 | id="costo" | 16 | id="costo" |
| 17 | name="costo" | 17 | name="costo" |
| 18 | placeholder="Costo" | 18 | placeholder="Costo" |
| 19 | ng-model="parametrosTarifaFlete.costo" | 19 | ng-model="parametrosTarifaFlete.costo" |
| 20 | foca-focus="true" | 20 | foca-focus="true" |
| 21 | ng-keypress="$event.keyCode == 13 && !validar() && aceptar()" | 21 | ng-keypress="$event.keyCode == 13 && !validar() && aceptar()" |
| 22 | teclado-virtual | ||
| 22 | /> | 23 | /> |
| 23 | </div> | 24 | </div> |
| 24 | </div> | 25 | </div> |
| 25 | </div> | 26 | </div> |
| 26 | </div> | 27 | </div> |
| 27 | </form> | 28 | </form> |
| 28 | </div> | 29 | </div> |
| 29 | <div class="modal-footer py-2"> | 30 | <div class="modal-footer py-2"> |
| 30 | <button | 31 | <button |
| 31 | class="btn btn-secondary btn-sm" | 32 | class="btn btn-secondary btn-sm" |
| 32 | type="button" | 33 | type="button" |
| 33 | ng-click="aceptar()" | 34 | ng-click="aceptar()" |
| 34 | ng-disabled="validar()" | 35 | ng-disabled="validar()" |
| 35 | >Aceptar</button> | 36 | >Aceptar</button> |
| 36 | <button class="btn btn-secondary btn-sm" type="button" ng-click="cancel()">Cancelar</button> | 37 | <button class="btn btn-secondary btn-sm" type="button" ng-click="cancel()">Cancelar</button> |
| 37 | </div> | 38 | </div> |
| 38 | 39 |