c8c75fe6c1bfcbe2957e521536c7e46f718fb197
[motion-next.git] /
1 <div
2   id="dashboard-general"
3   ng-init="vm.onInit()"
4   class="page-layout simple right-sidenav"
5   layout="row"
6 >
7   <!-- CENTER -->
8   <div class="center" flex ms-scroll>
9     <!-- CONTENT -->
10     <div class="content">
11       <md-tabs
12         ng-if="vm.hasDashboardPermissions"
13         md-selected="vm.selectedTab"
14         md-dynamic-height
15       >
16         <md-tab
17           ng-if="vm.license.voice"
18           label="{{'DASHBOARDS.VOICE' | translate}}"
19           ui-sref="app.dashboards.general.voice"
20         >
21           <div ui-view="voice"></div>
22         </md-tab>
23         <md-tab
24           ng-if="vm.license.dialer"
25           label="{{'DASHBOARDS.MOTIONDIALER' | translate}}"
26           ui-sref="app.dashboards.general.dialer"
27         >
28           <div ui-view="dialer"></div>
29         </md-tab>
30         <md-tab
31           ng-if="vm.license.chat"
32           label="{{'DASHBOARDS.CHAT' | translate}}"
33           ui-sref="app.dashboards.general.chat"
34         >
35           <div ui-view="chat"></div>
36         </md-tab>
37         <md-tab
38           ng-if="vm.license.mail"
39           label="{{'DASHBOARDS.MAIL' | translate}}"
40           ui-sref="app.dashboards.general.mail"
41         >
42           <div ui-view="mail"></div>
43         </md-tab>
44         <md-tab
45           ng-if="vm.license.messaging"
46           label="{{'DASHBOARDS.SMS' | translate}}"
47           ui-sref="app.dashboards.general.sms"
48         >
49           <div ui-view="sms"></div>
50         </md-tab>
51         <md-tab
52           ng-if="vm.license.openchannel"
53           label="{{'DASHBOARDS.OPENCHANNEL' | translate}}"
54           ui-sref="app.dashboards.general.openchannel"
55         >
56           <div ui-view="openchannel"></div>
57         </md-tab>
58         <md-tab
59           ng-if="vm.license.fax"
60           label="{{'DASHBOARDS.FAX' | translate}}"
61           ui-sref="app.dashboards.general.fax"
62         >
63           <div ui-view="fax"></div>
64         </md-tab>
65         <md-tab
66           ng-if="vm.license.whatsapp"
67           label="{{'DASHBOARDS.WHATSAPP' | translate}}"
68           ui-sref="app.dashboards.general.whatsapp"
69         >
70           <div ui-view="whatsapp"></div>
71         </md-tab>
72       </md-tabs>
73     </div>
74     <!-- END CONTENT -->
75
76     <md-content
77       ng-if="!vm.hasDashboardPermissions"
78       layout="row"
79       layout-align="space-around center"
80       flex
81       layout-padding
82       layout-wrap
83     >
84       <div layout="column" layout-align="space-around center" flex="50">
85         <span class="font-size-40 text-center"
86           >{{ 'DASHBOARDS.WELCOME_TO_MOTION' | translate }}!</span
87         >
88         <span
89           class="font-size-30 text-center"
90           translate="DASHBOARDS.WELCOME_MESSAGE"
91           >Use the left sidebar to navigate through available sections.</span
92         >
93       </div>
94
95       <div layout="column" flex="50">
96         <img src="assets/images/avatars/permissions.png" alt="permissions" />
97       </div>
98     </md-content>
99   </div>
100 </div>