-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateFromExistingSidebar.html
128 lines (126 loc) · 5.49 KB
/
CreateFromExistingSidebar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?!= HtmlService.createHtmlOutputFromFile('StyleSheet').getContent(); ?>
<div class="sidebar roster roster-create-from-existing">
<p>
Roster Lookup Data
</p>
<table id="roster-lookup-options-table" class="table sidebar-value-block" width="100%">
<tr>
<td>
<label style="cursor:help" title="Select the sheet name.">Sheet: </label>
</td>
<td colspan="2">
<div class="block form-group">
<input type="text" id="sidebar-lookup-sheetname" placeholder="Sheet name" value="" style="width:10em;margin-top:1px;">
<button class="narrow-button" title="Use selected sheet" onclick="utils.updateRange('', 'sidebar-lookup-sheetname');">↘</button>
</div>
</td>
</tr>
<tr>
<td>
<label style="cursor:help" title="Select the range of names.">Name: </label>
</td>
<td colspan="2">
<div class="block form-group">
<input type="text" id="sidebar-lookup-person-name-range" placeholder="Range" value="" style="width:10em;margin-top:1px;">
<button class="narrow-button" title="Use selected range" onclick="utils.updateRange('sidebar-lookup-person-name-range', '');">↘</button>
</div>
</td>
</tr>
<tr>
<td>
<label style="cursor:help" title="Select the range of timeslots.">Timeslot: </label>
</td>
<td colspan="2">
<div class="block form-group">
<input type="text" id="sidebar-lookup-timeslot-range" placeholder="Range" value="" style="width:10em;margin-top:1px;">
<button class="narrow-button" title="Use selected range" onclick="utils.updateRange('sidebar-lookup-timeslot-range', '');">↘</button>
</div>
</td>
</tr>
<tr>
<td>
<label style="cursor:help" title="Select the range of timestamps.">Submitted on: </label>
</td>
<td colspan="2">
<div class="block form-group">
<input type="text" id="sidebar-lookup-timestamp-range" placeholder="Range" value="" style="width:10em;margin-top:1px;">
<button class="narrow-button" title="Use selected range" onclick="utils.updateRange('sidebar-lookup-timestamp-range', '');">↘</button>
</div>
</td>
</tr>
<tr>
<td>
<label style="cursor:help" title="Number of days for data to retend (used to remove old data).">Retention days: </label>
</td>
<td colspan="2">
<input type="text" id="sidebar-lookup-data-retention-days" value="" required/>
</td>
</tr>
</table>
<p>
Roster Fillup Data
</p>
<table id="roster-fillup-options-table" class="table sidebar-value-block" width="100%">
<tr>
<td>
<label style="cursor:help" title="Select the sheet name.">Sheet: </label>
</td>
<td colspan="2">
<div class="block form-group">
<input type="text" id="sidebar-fillup-sheetname" placeholder="Sheet name" value="" style="width:10em;margin-top:1px;">
<button class="narrow-button" title="Use selected sheet" onclick="utils.updateRange('', 'sidebar-fillup-sheetname');">↘</button>
</div>
</td>
</tr>
<tr>
<td>
<label style="cursor:help" title="Select the range of names.">Name: </label>
</td>
<td colspan="2">
<div class="block form-group">
<input type="text" id="sidebar-fillup-person-name-range" placeholder="Range" value="" style="width:10em;margin-top:1px;">
<button class="narrow-button" title="Use selected range" onclick="utils.updateRange('sidebar-fillup-person-name-range', '');">↘</button>
</div>
</td>
</tr>
<tr>
<td>
<label style="cursor:help" title="Select the range of timeslot (to be fill up regularly).">Timetable: </label>
</td>
<td colspan="2">
<div class="block form-group">
<input type="text" id="sidebar-fillup-timeslot-range" placeholder="Range" value="" style="width:10em;margin-top:1px;">
<button class="narrow-button" title="Use selected range" onclick="utils.updateRange('sidebar-fillup-timeslot-range', '');">↘</button>
</div>
</td>
</tr>
<tr>
<td>
<label style="cursor:help" title="Select the range of last updated on.">Last updated on: </label>
</td>
<td colspan="2">
<div class="block form-group">
<input type="text" id="sidebar-fillup-timestamp-range" placeholder="Range" value="" style="width:10em;margin-top:1px;">
<button class="narrow-button" title="Use selected range" onclick="utils.updateRange('sidebar-fillup-timestamp-range', '');">↘</button>
</div>
</td>
</tr>
</table>
<div class="block sidebar-button-group">
<button class="action" id="sidebar-save-button">Save</button>
</div>
<div id="sidebar-status"></div>
</div>
<div class="sidebar bottom">
<div id="static-loader" class="show-inline gray">Created by <a href="https://github.com/ryancyq/roster-google-sheets-add-on"><img class="logo" width="20" src="https://avatars.githubusercontent.com/ryancyq?v=3&s=20s"></a></div>
<div id="dynamic-loader" class="hidden">
<div class="loader">
<svg class="circular" viewBox="30 30 30 30">
<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/>
</svg>
</div>
</div>
</div>
<!-- Use a templated HTML printing scriptlet to import JavaScript. -->
<?!= HtmlService.createHtmlOutputFromFile('JavaScript').getContent(); ?>
<?!= HtmlService.createHtmlOutputFromFile('CreateFromExistingJavaScript').getContent(); ?>