Tarea #1197 worker.centralita
This commit is contained in:
parent
7f0d3279d1
commit
aceecd9c7a
|
@ -22,7 +22,9 @@ class Controller {
|
|||
},
|
||||
{
|
||||
relation: 'sip',
|
||||
scope: {fields: ['extension']}
|
||||
scope: {
|
||||
fields: ['extension', 'secret']
|
||||
}
|
||||
}, {
|
||||
relation: 'department',
|
||||
scope: {
|
||||
|
|
|
@ -7,3 +7,4 @@ import './descriptor';
|
|||
import './descriptor-popover';
|
||||
import './search-panel';
|
||||
import './basic-data';
|
||||
import './pbx';
|
||||
|
|
|
@ -8,3 +8,4 @@ User id: Id de usuario
|
|||
Role: Rol
|
||||
Extension: Extensión
|
||||
Go to client: Ir al cliente
|
||||
Private Branch Exchange: Centralita
|
|
@ -0,0 +1,28 @@
|
|||
<mg-ajax path="/api/Sips/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
||||
<vn-watcher
|
||||
vn-id="watcher"
|
||||
data="$ctrl.worker.sip"
|
||||
form="form"
|
||||
save="patch">
|
||||
</vn-watcher>
|
||||
<form name="form" ng-submit="watcher.submit()" compact>
|
||||
<vn-card pad-large>
|
||||
<vn-vertical>
|
||||
<vn-horizontal>
|
||||
<vn-textfield
|
||||
vn-one
|
||||
label="Extension"
|
||||
model="$ctrl.worker.sip.extension">
|
||||
</vn-textfield>
|
||||
<vn-textfield
|
||||
vn-one
|
||||
label="Password"
|
||||
model="$ctrl.worker.sip.secret">
|
||||
</vn-textfield>
|
||||
</vn-horizontal>
|
||||
</vn-vertical>
|
||||
</vn-card>
|
||||
<vn-button-bar>
|
||||
<vn-submit label="Save"></vn-submit>
|
||||
</vn-button-bar>
|
||||
</form>
|
|
@ -0,0 +1,8 @@
|
|||
import ngModule from '../module';
|
||||
|
||||
ngModule.component('vnWorkerPbx', {
|
||||
template: require('./index.html'),
|
||||
bindings: {
|
||||
worker: '<'
|
||||
}
|
||||
});
|
|
@ -4,7 +4,8 @@
|
|||
"icon" : "icon-worker",
|
||||
"validations" : true,
|
||||
"menu": [
|
||||
{"state": "worker.card.basicData", "icon": "settings"}
|
||||
{"state": "worker.card.basicData", "icon": "settings"},
|
||||
{"state": "worker.card.pbx", "icon": ""}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
|
@ -41,6 +42,15 @@
|
|||
"worker": "$ctrl.worker"
|
||||
},
|
||||
"acl": ["developer"]
|
||||
}, {
|
||||
"url": "/pbx",
|
||||
"state": "worker.card.pbx",
|
||||
"component": "vn-worker-pbx",
|
||||
"description": "Private Branch Exchange",
|
||||
"params": {
|
||||
"worker": "$ctrl.worker"
|
||||
},
|
||||
"acl": ["hr"]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue