Skip to content
Snippets Groups Projects
save-calculator.component.html 1.99 KiB
Newer Older
<div mdbModal #saveDialog="mdb-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" [config]="{backdrop: false, ignoreBackdropClick: true,show:true}">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
mathias.chouet's avatar
mathias.chouet committed
                <h4 class="modal-title w-100" id="myModalLabel">{{ uitextDialogTitle }}</h4>
                <!-- liste de calculettes avec check -->
                <div *ngFor="let c of calculators">
mathias.chouet's avatar
mathias.chouet committed
                    <input type="checkbox" value={{c.uid}} checked={{isSelected(c)}} (change)="onCheckCalc($event)">{{ c.title }}
mathias.chouet's avatar
mathias.chouet committed
                <button type="button" class="btn btn-mdb-color waves-light" (click)="selectAll()" mdbRippleRadius>{{ uitextSelectAll }}</button>

                <!-- bouton "tout désélectionnner" -->
mathias.chouet's avatar
mathias.chouet committed
                <button type="button" class="btn btn-mdb-color waves-light py-10" (click)="deselectAll()" mdbRippleRadius>{{ uitextDeselectAll }}</button>

                <!-- nom du fichier -->
                <div class="md-form form-sm mt-4">
                    <input mdbInputDirective [mdbValidate]="false" type="text" id="form1" class="form-control" [(ngModel)]="filename">
                    <!-- on utilise [innerHTML] pour que les codes HTML comme &nbsp; soient interprétés correctement -->
                    <label for="form1" [innerHTML]="filenameTitle"></label>
mathias.chouet's avatar
mathias.chouet committed
                <button type="button" class="btn btn-danger relative waves-light" (click)="saveDialog.hide();cancelSave()" mdbRippleRadius>{{ uitextCloseDialogNo }}</button>
                <button type="button" class="btn btn-success waves-light" aria-label="Close " (click)="saveDialog.hide();confirmSave()" mdbRippleRadius>{{ uitextCloseDialogYes }}</button>