webstaff: audio disable and testing options
[Evergreen.git] / Open-ILS / src / templates / staff / admin / workstation / t_splash.tt2
1 <br/>
2 <style>
3   #admin-workstation-container .row {
4     margin-top: 5px;
5   }
6   #admin-workstation-container .new-entry {
7     margin-top: 10px;
8     padding-top: 10px;
9     border-top: 2px solid #F5F5F5;
10   }
11 </style>
12
13 <div class="container" id="admin-workstation-container">
14
15   <div class="row">
16     <div class="col-md-6">
17       <div class="checkbox">
18         <label>
19           <input type="checkbox" ng-class="{disabled : !userHasAdminPerm}"
20             ng-model="hatchRequired" ng-change="updateHatchRequired()">
21 [% l('This workstation uses a remote print / storage service ("Hatch")?') %]
22         </label>
23       </div>
24     </div><!-- row -->
25   </div>
26   <div class="row">
27     <div class="col-md-6">
28       <input type='text' class='form-control'  
29         ng-disabled="!hatchRequired || !userHasRegPerm"
30         title="[% l('Hatch URL') %]"
31         placeholder="[% l('Hatch URL') %]"
32         ng-change='updateHatchURL()' ng-model='hatchURL'/>
33     </div>
34   </div>
35
36   <div class="row new-entry">
37     <div class="col-md-6">
38       [% l('Workstations Registered With This Computer') %]
39     </div>
40   </div>
41   <div class="row">
42     <div class="col-md-6">
43       <select class="form-control" ng-model="selectedWS">
44         <option ng-repeat="ws in workstations" value="{{ws}}"
45           ng-selected="ws == selectedWS">
46           {{getWSLabel(ws)}}
47         </option>
48       </select>
49     </div>
50   </div>
51
52   <div class="row">
53     <div class="col-md-6">
54       <button class="btn btn-default" ng-click="useWS()">
55         [% l('Use Now') %]
56       </button>
57       <button class="btn btn-default" ng-click="setDefaultWS()">
58         [% l('Mark As Default') %]
59       </button>
60       <button class="btn btn-default btn-danger disabled">
61         [% l('Delete') %]
62       </button>
63     </div>
64   </div>
65
66   <div class="row new-entry">
67     <div class="col-md-6">
68       [% l('Register a New Workstation For This Computer') %]
69     </div>
70   </div>
71   <div class="row">
72     <div class="col-md-6">
73       <div class="input-group">
74         <div class="input-group-btn">
75           <eg-org-selector 
76             selected="contextOrg"
77             hidden-test="wsOrgHidden">
78             disable-test="cant_have_users">
79           </eg-org-selector>
80         </div>
81         <input type='text' class='form-control'  
82           title="[% l('Workstation Name') %]"
83           placeholder="[% l('Workstation Name') %]"
84           ng-model='newWSName'/>
85         <div class="input-group-btn">
86           <button class="btn btn-default" ng-click="registerWS()">
87             [% l('Register') %]
88           </button>
89         </div>
90       </div>
91     </div>
92   </div>
93
94   <div class="row new-entry">
95     <div class="col-md-2">
96       <div class="checkbox">
97         <label>
98           <input type="checkbox"
99             ng-model="disable_sound" 
100               ng-change="apply_sound()">
101             [% l('Disable Sounds?') %]
102         </label>
103       </div>
104     </div>
105     <div class="col-md-4">
106       <span>Test: </span>
107       <button class="btn btn-success" ng-class="{disabled : disable_sound}" 
108         ng-click="test_audio('success')">[% l('Success') %]</button>
109       <button class="btn btn-info" ng-class="{disabled : disable_sound}" 
110         ng-click="test_audio('info')">[% l('Info') %]</button>
111       <button class="btn btn-warning" ng-class="{disabled : disable_sound}" 
112         ng-click="test_audio('warning')">[% l('Warning') %]</button>
113       <button class="btn btn-danger" ng-class="{disabled : disable_sound}" 
114         ng-click="test_audio('error')">[% l('Error') %]</button>
115     </div>
116   </div>
117
118   <div class="row new-entry">
119     <div class="col-md-6">
120       <span class="glyphicon glyphicon-print"></span>
121       <a target="_self" href="./admin/workstation/print/config">
122         [% l('Printer Settings') %]
123       </a>
124     </div>
125   </div>
126
127   <div class="row new-entry">
128     <div class="col-md-6">
129       <span class="glyphicon glyphicon-film"></span>
130       <a target="_self" href="./admin/workstation/print/templates">
131         [% l('Print Templates') %]
132       </a>
133     </div>
134   </div>
135
136   <div class="row new-entry">
137     <div class="col-md-6">
138       <span class="glyphicon glyphicon-info-sign"></span>
139       <a target="_self" href="./admin/workstation/stored_prefs">
140         [% l('Stored Preferences') %]
141       </a>
142     </div>
143   </div>
144
145 </div>