refs #6119 microsip link added
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2023-08-30 14:14:48 +02:00
parent 1ad9a30848
commit 05f0f72c73
14 changed files with 169 additions and 24 deletions

View File

@ -45,11 +45,26 @@
<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">
{{$ctrl.summary.phone}}
<a href="tel:{{$ctrl.summary.phone}}">
<vn-icon
class="tel"
icon="call"
translate-attr="{title: 'Microsip'}"
>
</vn-icon>
</a>
</vn-label-value>
<vn-label-value label="Mobile"
value="{{$ctrl.summary.mobile}}">
<vn-label-value label="Mobile">
{{$ctrl.summary.mobile}}
<a href="tel:{{$ctrl.summary.mobile}}">
<vn-icon
class="tel"
icon="smartphone"
translate-attr="{title: 'Microsip'}"
></vn-icon>
</a>
</vn-label-value>
<vn-label-value label="Email" no-ellipsize
value="{{$ctrl.listEmails($ctrl.summary.email)}}">

View File

@ -11,4 +11,8 @@ vn-client-summary .summary {
font-family: 'salixfont' !important;
content: "\e965";
}
vn-icon.tel {
font-size: 1.1em;
vertical-align: bottom;
}
}

View File

@ -49,7 +49,16 @@
value="{{$ctrl.summary.landed | date: 'dd/MM/yyyy HH:mm'}}">
</vn-label-value>
<vn-label-value label="Phone"
value="{{$ctrl.summary.address.phone}}">
>
{{$ctrl.summary.address.phone}}
<a href="tel:{{$ctrl.summary.address.phone}}">
<vn-icon
class="tel"
icon="smartphone"
translate-attr="{title:'Microsip'}"
>
</vn-icon>
</a>
</vn-label-value>
<vn-label-value label="Created from"
value="{{$ctrl.summary.sourceApp}}">

View File

@ -17,4 +17,8 @@ vn-order-summary .summary{
}
}
}
vn-icon.tel {
font-size: 1.1em;
vertical-align: bottom;
}
}

View File

@ -25,7 +25,16 @@
<vn-one>
<vn-label-value
label="Phone"
value="{{summary.phone}}">
>
{{summary.phone}}
<a href="tel:{{summary.phone}}" class="tel">
<vn-icon
class="tel"
icon="call"
translate-attr="{title: 'Microsip'}"
>
</vn-icon>
</a>
</vn-label-value>
<vn-label-value
label="Worker"

View File

@ -1,10 +1,14 @@
@import "variables";
vn-roadmap-summary .summary {
a {
a:not(.tel) {
display: flex;
align-items: center;
height: 18.328px;
}
vn-icon.tel {
font-size: 1.1em;
vertical-align: bottom;
}
}

View File

@ -83,19 +83,49 @@
</vn-label-value>
<vn-label-value label="Address phone"
ng-if="$ctrl.summary.address.phone != null"
value="{{$ctrl.summary.address.phone}}">
>
{{$ctrl.summary.address.phone}}
<a href="sip:{{$ctrl.summary.address.phone}}">
<vn-icon
class="tel"
icon="call"
translate-attr="{title: 'Microsip'}"
>
</vn-icon>
</a>
</vn-label-value>
<vn-label-value label="Address mobile"
ng-if="$ctrl.summary.address.mobile != null"
value="{{$ctrl.summary.address.mobile}}">
>
{{$ctrl.summary.address.mobile}}
<a href="sip:{{$ctrl.summary.address.mobile}}">
<vn-icon
class="tel"
icon="smartphone"
translate-attr="{title: 'Microsip'}"
>
</vn-icon>
</a>
</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">
{{$ctrl.summary.client.phone}}
<a href="sip:{{$ctrl.summary.client.phone}}">
<vn-icon
class="tel"
icon="phone"
translate-attr="{title: 'Microsip'}"></vn-icon>
</a>
</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">
{{$ctrl.summary.client.mobile}}
<a href="sip:{{$ctrl.summary.client.mobile}}">
<vn-icon
class="tel"
icon="smartphone"
translate-attr="{title: 'Microsip'}"></vn-icon>
</a>
</vn-label-value>
<vn-label-value label="Address" no-ellipsize
value="{{$ctrl.formattedAddress}}">

View File

@ -47,4 +47,9 @@ vn-ticket-summary .summary {
}
}
}
vn-icon.tel {
font-size: 1.1em;
vertical-align: bottom;
}
}

View File

@ -36,12 +36,34 @@
value="{{$ctrl.worker.department.department.name}}">
</vn-label-value>
<vn-label-value
label="Phone"
value="{{$ctrl.worker.phone}}">
label="Phone">
<span ng-if="!$ctrl.worker.phone">-</span>
<span ng-if="$ctrl.worker.phone">
{{$ctrl.worker.phone}}
<a
href="tel:{{$ctrl.worker.phone}}">
<vn-icon
class="tel"
icon="phone"
translate-attr="{title: 'Microsip'}"
></vn-icon>
</a>
</span>
</vn-label-value>
<vn-label-value
label="Extension"
value="{{$ctrl.worker.sip.extension}}">
label="Extension">
<span ng-if="!$ctrl.worker.sip.extension">-</span>
<span ng-if="$ctrl.worker.sip.extension">
{{$ctrl.worker.sip.extension}}
<a
href="tel:{{$ctrl.worker.sip.extension}}">
<vn-icon
class="tel"
icon="phone"
translate-attr="{title: 'Microsip'}"
></vn-icon>
</a>
</span>
</vn-label-value>
</div>
<div class="icons">

View File

@ -1,6 +1,6 @@
import ngModule from '../module';
import Descriptor from 'salix/components/descriptor';
import './style.scss';
class Controller extends Descriptor {
constructor($element, $, $rootScope) {
super($element, $);

View File

@ -0,0 +1,6 @@
vn-worker-descriptor {
vn-icon.tel {
font-size: 1.1em;
vertical-align: bottom;
}
}

View File

@ -42,14 +42,45 @@
{{::worker.boss.name}}
</span>
</vn-label-value>
<vn-label-value label="Mobile extension"
value="{{worker.mobileExtension}}">
<vn-label-value label="Mobile extension">
<span ng-show="!worker.mobileExtension">-</span>
<span ng-show="worker.mobileExtension">
{{worker.mobileExtension}}
<a href="tel:{{worker.mobileExtension}}">
<vn-icon
class="tel"
icon="smartphone"
translate-attr="{title: 'Microsip'}"
></vn-icon>
</a>
</span>
</vn-label-value>
<vn-label-value label="Business phone"
value="{{worker.phone}}">
<vn-label-value label="Business phone">
<span ng-show="!worker.phone">-</span>
<span ng-show="worker.phone">
{{worker.phone}}
<a href="tel:{{worker.phone}}">
<vn-icon
class="tel"
icon="smartphone"
translate-attr="{title: 'Microsip'}"
></vn-icon>
</a>
</span>
</vn-label-value>
<vn-label-value label="Personal phone"
value="{{worker.client.phone}}">
>
<span ng-show="!worker.client.phone">-</span>
<span ng-show="worker.client.phone">
{{worker.client.phone}}
<a href="tel:{{worker.client.phone}}">
<vn-icon
class="tel"
icon="smartphone"
translate-attr="{title: 'Microsip'}"
></vn-icon>
</a>
</span>
</vn-label-value>
<vn-label-value label="Locker"
value="{{worker.locker}}">

View File

@ -1,6 +1,6 @@
import ngModule from '../module';
import Summary from 'salix/components/summary';
import './style.scss';
class Controller extends Summary {
get worker() {
return this._worker;

View File

@ -0,0 +1,6 @@
vn-worker-summary {
vn-icon.tel {
font-size: 1.1em;
vertical-align: bottom;
}
}