vnDialogConfirm css
This commit is contained in:
parent
c4afb057aa
commit
eb4f6f91c1
|
@ -6,14 +6,14 @@ import * as run from './run';
|
|||
import * as configNgTranslate from './translate';
|
||||
import * as components from './components';
|
||||
|
||||
import title from './styles/title.css'
|
||||
import padding from './styles/layout.css'
|
||||
import margin from './styles/margin.scss'
|
||||
import layout from './styles/padding.scss'
|
||||
import background from './styles/background.scss'
|
||||
import border from './styles/border.scss'
|
||||
import fontStyle from './styles/font-style.scss'
|
||||
import misc from './styles/misc.scss'
|
||||
import display from './styles/display.css'
|
||||
import title from './styles/title.css';
|
||||
import padding from './styles/layout.css';
|
||||
import margin from './styles/margin.scss';
|
||||
import layout from './styles/padding.scss';
|
||||
import background from './styles/background.scss';
|
||||
import border from './styles/border.scss';
|
||||
import fontStyle from './styles/font-style.scss';
|
||||
import misc from './styles/misc.scss';
|
||||
import display from './styles/display.css';
|
||||
|
||||
bootstrap();
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
/* TODO: No utilizar !important */
|
||||
.mdl-button {
|
||||
font-weight: bolder;
|
||||
color: #ffa410;
|
||||
|
||||
}
|
||||
.mdl-button--colored {
|
||||
color: white !important;
|
||||
|
@ -26,3 +28,14 @@
|
|||
color: white !important;
|
||||
background-color: #ff9400 !important;
|
||||
}
|
||||
|
||||
.mdl-dialog__actions--full-width>*{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mdl-dialog{
|
||||
width: 400px;
|
||||
font-family: raleway-regular;
|
||||
line-height:60px;
|
||||
text-align: center;
|
||||
}
|
|
@ -13,7 +13,7 @@ export const COMPONENT = {
|
|||
this.copyAddress();
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
$http.get('/client/api/Agencies').then(
|
||||
json => {
|
||||
this.agencies = json.data;
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
<dialog class="mdl-dialog">
|
||||
<div class="mdl-dialog__content">
|
||||
<p>
|
||||
¿Desea salir sin guardar los cambios?
|
||||
</p>
|
||||
</div>
|
||||
<div class="mdl-dialog__actions mdl-dialog__actions--full-width">
|
||||
<button type="button" class="mdl-button" ng-click="dialogConfirm.accept()">Aceptar</button>
|
||||
<button type="button" class="mdl-button close" ng-click="dialogConfirm.cancel()">Cancelar</button>
|
||||
</div>
|
||||
<dialog class="mdl-dialog ">
|
||||
<vn-vertical class="mdl-dialog__content">
|
||||
<h6 class="dialog-title">
|
||||
¿Seguro que quieres salir sin guardar?
|
||||
</h6>
|
||||
<h6>
|
||||
Los cambios que no hayas guardado se perderán
|
||||
</h6>
|
||||
</vn-vertical>
|
||||
<vn-horizontal class="mdl-dialog__actions mdl-dialog__actions--full-width">
|
||||
<button vn-one type="button" class="mdl-button close" ng-click="dialogConfirm.cancel()">Cancelar</button>
|
||||
<button vn-one type="button" class="mdl-button" ng-click="dialogConfirm.accept()">Aceptar</button>
|
||||
</vn-horizontal>
|
||||
</dialog>
|
|
@ -1,6 +1,8 @@
|
|||
import template from './index.html';
|
||||
import {module} from '../../module';
|
||||
|
||||
require('./style.css');
|
||||
|
||||
export const NAME = 'vnDialogConfirm';
|
||||
export const COMPONENT = {
|
||||
template: template,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
.dialog-title{
|
||||
color:#424242;
|
||||
font-family: raleway-bold;
|
||||
}
|
|
@ -6,14 +6,13 @@ export const COMPONENT = {
|
|||
template: template,
|
||||
controllerAs: 'newNote',
|
||||
controller: function($http, $state, copyObject, equalsObject, $transitions, $element) {
|
||||
|
||||
this.client = $state.params.id;
|
||||
this.note = {text: null};
|
||||
var self = this;
|
||||
|
||||
|
||||
var deregister = $transitions.onStart({ }, callback);
|
||||
copyNote();
|
||||
|
||||
|
||||
this.submit = function() {
|
||||
if (this.note) {
|
||||
let observation = this.createNote();
|
||||
|
@ -21,7 +20,7 @@ export const COMPONENT = {
|
|||
json => {
|
||||
this.note = json.data;
|
||||
copyNote();
|
||||
$state.go('clientCard.notes');
|
||||
$state.go('clientCard.notes');
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue