-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
93 lines (93 loc) · 3.28 KB
/
template.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
<td class="labelrc col-12" colspan="3">
<div class="clndr" id="CALNAME"></div>
</td>
##
<button type="button" class="btn btn-dark btn-sm markAllButton" data-toggle="tooltip" title="TOOLTIP">TEXT</button>
##
<a class="dropdown-item" href="#" title="TOOLTIP">TEXT</a>
##
<div class="btn-group markAllButtonGroup">
<button type="button" class="btn btn-dark btn-sm">Mark all...</button>
<button type="button" class="btn btn-dark btn-sm dropdown-toggle dropdown-toggle-split" data-toggle="dropdown">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
</div>
</div>
##
<div class="clndr-controls">
<div class="clndr-previous-button">‹</div>
<div class="month">
<%= month %>
</div>
<div class="clndr-next-button">›</div>
</div>
<div class="clndr-grid">
<div class="days-of-the-week clearfix">
<% _.each(daysOfTheWeek, function(day) { %>
<div class="header-day">
<%= day %>
</div>
<% }); %>
</div>
<div class="days clearfix">
<% _.each(days, function(day) { %>
<div class="<%= day.classes %>" id="<%= day.id %>">
<span class="day-number" data-date="<%= day.date.format(" YYYY-MM-DD") %>" ><%= day.day %></span>
</div>
<% }); %>
</div>
</div>
<div class="event-listing">
<div class="event-listing-title">Questions</div>
<% _.each(eventsThisMonth, function(event) { %>
<div class="event-item" <% if(event.type=="check" ) { %> style="display:flex" <% } %> data-date="<%= event.date %>">
<% if(event.type=="check" ) { %>
<input name="<%= event.variable %>-<%= event.date %>-checkbox" class="event-item-input-checkbox"
type="checkbox" data-variable="<%= event.variable %>">
<% } %>
<div class="event-item-question">
<%= event.question %>
</div>
<% if( ["text","float","int"].includes(event.type) ) { %>
<textarea rows="1" class="event-item-input-<%= event.type %>"
data-variable="<%= event.variable %>"></textarea>
<% } %>
<% if(event.type=="yesno" ) { %>
<input name="<%= event.variable %>-<%= event.date %>-radio" class="event-item-input-yesno"
type="radio" data-variable="<%= event.variable %>" value="1"><span
class="event-item-input-label">Yes</span>
<input name="<%= event.variable %>-<%= event.date %>-radio" class="event-item-input-yesno"
type="radio" data-variable="<%= event.variable %>" value="0"><span
class="event-item-input-label">No</span>
<% } %>
</div>
<% }); %>
</div>
##
<tr class="clndr-stats">
<td colspan="3">
<table class="table mb-0 font-weight-bold">
<tbody>
<tr>
<td></td>
<td>This Month</td>
<td>Past 90 Days</td>
<td>Past Year</td>
</tr>
<tr>
<td>Partial Data</td>
<td class="a1">? / ?</td>
<td class="a2">? / ?</td>
<td class="a3">? / ?</td>
</tr>
<tr>
<td>All Data</td>
<td class="b1">? / ?</td>
<td class="b2">? / ?</td>
<td class="b3">? / ?</td>
</tr>
</tbody>
</table>
</td>
</tr>