Skip to content

Commit

Permalink
validaciones
Browse files Browse the repository at this point in the history
  • Loading branch information
[Mario Nuñez] committed Jul 24, 2020
1 parent be9a5f2 commit deb8b7f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/app/components/informes/informes.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@
alt="">
</button> &nbsp;





</div>
<div class="col-sm-12 mt-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="defaultCheck1" (click)="cambiaValor()">
<input class="form-check-input" type="checkbox" value="" id="defaultCheck1" (click)="cambiaValor()" data-toggle="tooltip" data-html="true" title="<ul>
<li class='m-0 p-0 text-left small'>Factorado > Incurrido.</li>
<li class='m-0 p-0 text-left small'>Sin Actividades Realizadas.</li>
<li class='m-0 p-0 text-left small'>Sin Proximas Actividades.</li>
<li class='m-0 p-0 text-left small'>Si Estapa es QA o Produccion: Por Incurrir(QA+PROD) <> Por Incurrir ARS.</li>
</ul>">
<label class="form-check-label" for="defaultCheck1">Ocultar Validaciones</label>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions src/app/components/informes/informes.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { Exportador } from '../../common/exportador/Exportador';
import html2canvas from 'html2canvas';
import * as moment from 'moment'; // add this 1 of 4
import Swal from 'sweetalert2';
declare function init_customJS();


@Component({
selector: 'app-informes',
Expand Down Expand Up @@ -51,6 +53,7 @@ export class InformesComponent {
mostrarVal = true;

constructor(public jsonDataService: JsonDataService, private route: ActivatedRoute, private sweetAlerService: SweetAlertService) {
init_customJS();

// tslint:disable-next-line: deprecation
moment.lang('es');
Expand Down
14 changes: 14 additions & 0 deletions src/assets/js/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function init_customJS() {

$(document).ready(function() {
$('[data-toggle="tooltip"]').tooltip();

});
$(document).ready(function() {
$('[data-toggle="tooltip"]').click(function() {
$('[data-toggle="tooltip"]').tooltip("hide");


});
});
}
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<script src="assets/js/jquery-3.4.1.slim.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/custom.js"></script>
</head>

<body>
Expand Down

0 comments on commit deb8b7f

Please sign in to comment.