Compare commits
31 Commits
57270a4cb3
...
30d8e05313
Author | SHA1 | Date |
---|---|---|
David Domenech | 30d8e05313 | |
Sergio De la torre | 85baac5c8e | |
Sergio De la torre | f6bf36d46a | |
Jorge Penadés | 16f22c4d39 | |
Javi Gallego | 0081c55b9e | |
Sergio De la torre | 1a7f7b6a00 | |
Sergio De la torre | 35c0ec0d04 | |
Sergio De la torre | 0028dd150a | |
Jorge Penadés | abd087a3e3 | |
Jorge Penadés | 0d39471970 | |
Jorge Penadés | 7431e884fc | |
Jorge Penadés | 31220b8005 | |
Jorge Penadés | 0489bdfdb8 | |
Jorge Penadés | 2eb9a97ece | |
Sergio De la torre | 3ba349b74a | |
Jorge Penadés | 1cb2bec650 | |
Jorge Penadés | d112fd0e5b | |
Jorge Penadés | 9536fdba58 | |
Jorge Penadés | f1dc809147 | |
Jorge Penadés | 2ae05ef929 | |
Jorge Penadés | 168eee764f | |
Jorge Penadés | 32a0aedf11 | |
Jorge Penadés | 48a6bf2969 | |
Jorge Penadés | 4f0d61f2e7 | |
Jorge Penadés | 427425a750 | |
Jorge Penadés | 86ecaedb0e | |
Jorge Penadés | f46d6355dd | |
Jorge Penadés | 52d698b0eb | |
Jorge Penadés | 9eff7c509f | |
Jorge Penadés | c2a54b8c65 | |
Jorge Penadés | 05f0f72c73 |
|
@ -0,0 +1,3 @@
|
|||
|
||||
INSERT INTO `salix`.`ACL` ( model, property, accessType, permission, principalType, principalId)
|
||||
VALUES('TicketCollection', '*', 'WRITE', 'ALLOW', 'ROLE', 'production');
|
|
@ -39,6 +39,7 @@ import './range';
|
|||
import './input-time';
|
||||
import './input-file';
|
||||
import './label';
|
||||
import './link-phone';
|
||||
import './list';
|
||||
import './popover';
|
||||
import './popup';
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<span ng-if="$ctrl.phoneNumber">
|
||||
{{$ctrl.phoneNumber}}
|
||||
<a href="tel:{{$ctrl.phoneNumber}}">
|
||||
<vn-icon
|
||||
flat
|
||||
round
|
||||
icon="phone"
|
||||
title="MicroSIP"
|
||||
ng-click="$event.stopPropagation();"
|
||||
>
|
||||
</vn-icon>
|
||||
</a>
|
||||
</span>
|
||||
<span ng-if="!$ctrl.phoneNumber">-</span>
|
|
@ -0,0 +1,15 @@
|
|||
import ngModule from '../../module';
|
||||
import './style.scss';
|
||||
class Controller {
|
||||
constructor() {
|
||||
this.phoneNumber = null;
|
||||
}
|
||||
}
|
||||
|
||||
ngModule.vnComponent('vnLinkPhone', {
|
||||
template: require('./index.html'),
|
||||
controller: Controller,
|
||||
bindings: {
|
||||
phoneNumber: '<',
|
||||
}
|
||||
});
|
|
@ -0,0 +1,7 @@
|
|||
vn-link-phone {
|
||||
vn-icon {
|
||||
font-size: 1.1em;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
}
|
||||
|
|
@ -45,11 +45,18 @@
|
|||
<vn-label-value label="Contact"
|
||||
value="{{$ctrl.summary.contact}}">
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Phone"
|
||||
value="{{$ctrl.summary.phone}}">
|
||||
<vn-label-value label="Phone">
|
||||
|
||||
<vn-link-phone
|
||||
phone-number="$ctrl.summary.phone"
|
||||
></vn-link-phone>
|
||||
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Mobile"
|
||||
value="{{$ctrl.summary.mobile}}">
|
||||
<vn-label-value label="Mobile">
|
||||
|
||||
<vn-link-phone
|
||||
phone-number="$ctrl.summary.mobile"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Email" no-ellipsize
|
||||
value="{{$ctrl.listEmails($ctrl.summary.email)}}">
|
||||
|
|
|
@ -47,6 +47,11 @@
|
|||
"type": "belongsTo",
|
||||
"model": "VnUser",
|
||||
"foreignKey": "userFk"
|
||||
},
|
||||
"shelving": {
|
||||
"type": "belongsTo",
|
||||
"model": "Shelving",
|
||||
"foreignKey": "shelvingFk"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,8 +48,10 @@
|
|||
<vn-label-value label="Landed"
|
||||
value="{{$ctrl.summary.landed | date: 'dd/MM/yyyy HH:mm'}}">
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Phone"
|
||||
value="{{$ctrl.summary.address.phone}}">
|
||||
<vn-label-value label="Phone">
|
||||
<vn-link-phone
|
||||
phone-number="$ctrl.summary.address.phone"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Created from"
|
||||
value="{{$ctrl.summary.sourceApp}}">
|
||||
|
|
|
@ -25,7 +25,10 @@
|
|||
<vn-one>
|
||||
<vn-label-value
|
||||
label="Phone"
|
||||
value="{{summary.phone}}">
|
||||
>
|
||||
<vn-link-phone
|
||||
phone-number="summary.phone"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value
|
||||
label="Worker"
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
@import "variables";
|
||||
|
||||
vn-roadmap-summary .summary {
|
||||
a {
|
||||
a:not(vn-link-phone a) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 18.328px;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
"id": {
|
||||
"id": true,
|
||||
"type": "number"
|
||||
},
|
||||
"usedShelves": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
|
|
|
@ -83,19 +83,29 @@
|
|||
</vn-label-value>
|
||||
<vn-label-value label="Address phone"
|
||||
ng-if="$ctrl.summary.address.phone != null"
|
||||
value="{{$ctrl.summary.address.phone}}">
|
||||
>
|
||||
<vn-link-phone
|
||||
phone-number="$ctrl.summary.address.phone"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Address mobile"
|
||||
ng-if="$ctrl.summary.address.mobile != null"
|
||||
value="{{$ctrl.summary.address.mobile}}">
|
||||
>
|
||||
<vn-link-phone
|
||||
phone-number="$ctrl.summary.address.mobile"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Client phone"
|
||||
ng-if="$ctrl.summary.client.phone != null"
|
||||
value="{{$ctrl.summary.client.phone}}">
|
||||
ng-if="$ctrl.summary.client.phone != null">
|
||||
<vn-link-phone
|
||||
phone-number="$ctrl.summary.client.phone"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Client mobile"
|
||||
ng-if="$ctrl.summary.client.mobile != null"
|
||||
value="{{$ctrl.summary.client.mobile}}">
|
||||
ng-if="$ctrl.summary.client.mobile != null">
|
||||
<vn-link-phone
|
||||
phone-number="$ctrl.summary.client.mobile"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Address" no-ellipsize
|
||||
value="{{$ctrl.formattedAddress}}">
|
||||
|
|
|
@ -47,4 +47,9 @@ vn-ticket-summary .summary {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
vn-icon.tel {
|
||||
font-size: 1.1em;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
}
|
|
@ -47,6 +47,9 @@
|
|||
},
|
||||
"locker": {
|
||||
"type" : "number"
|
||||
},
|
||||
"isF11Allowed": {
|
||||
"type" : "boolean"
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
|
|
|
@ -28,11 +28,17 @@
|
|||
</vn-label-value>
|
||||
<vn-label-value
|
||||
label="Phone"
|
||||
value="{{$ctrl.worker.phone}}">
|
||||
>
|
||||
<vn-link-phone
|
||||
phone-number="$ctrl.worker.phone"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value
|
||||
label="Extension"
|
||||
value="{{$ctrl.worker.sip.extension}}">
|
||||
>
|
||||
<vn-link-phone
|
||||
phone-number="$ctrl.worker.sip.extension"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
</div>
|
||||
<div class="icons">
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import ngModule from '../module';
|
||||
import Descriptor from 'salix/components/descriptor';
|
||||
|
||||
class Controller extends Descriptor {
|
||||
constructor($element, $, $rootScope) {
|
||||
super($element, $);
|
||||
|
|
|
@ -42,14 +42,21 @@
|
|||
{{::worker.boss.name}}
|
||||
</span>
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Mobile extension"
|
||||
value="{{worker.mobileExtension}}">
|
||||
<vn-label-value label="Mobile extension">
|
||||
<vn-link-phone
|
||||
phone-number="worker.mobileExtension"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Business phone"
|
||||
value="{{worker.phone}}">
|
||||
<vn-label-value label="Business phone">
|
||||
<vn-link-phone
|
||||
phone-number="worker.phone"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Personal phone"
|
||||
value="{{worker.client.phone}}">
|
||||
>
|
||||
<vn-link-phone
|
||||
phone-number="worker.client.phone"
|
||||
></vn-link-phone>
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Locker"
|
||||
value="{{worker.locker}}">
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import ngModule from '../module';
|
||||
import Summary from 'salix/components/summary';
|
||||
|
||||
class Controller extends Summary {
|
||||
get worker() {
|
||||
return this._worker;
|
||||
|
|
Loading…
Reference in New Issue