forked from uwctri/ReportTweaks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplates.php
168 lines (156 loc) · 6.84 KB
/
templates.php
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<template id="ReportTweaks">
<!-- Edit Report Page -->
<div id="rtTitle"><i class='fas fa-tag'></i> <?=$this->tt('module_name'); ?></div>
<div id="rtDashboard">
<div style="margin:0 0 4px 20px;text-indent:-18px;">
<input name="tweaks_includeEvent" type="checkbox"> <?=$this->tt('dash_event'); ?>
</div>
<div style="margin:0 0 4px 20px;text-indent:-18px;">
<input name="tweaks_merge" type="checkbox"> <?=$this->tt('dash_combine'); ?>
</div>
<div style="margin:0 0 4px 20px;text-indent:-18px;">
<input name="tweaks_removeEmpty" type="checkbox"> <?=$this->tt('dash_empty'); ?>
</div>
<div style="margin:0 0 4px 20px;text-indent:-18px;">
<input name="tweaks_dateRange" type="checkbox"> <?=$this->tt('dash_range'); ?>
</div>
<div style="margin:0 0 4px 20px;text-indent:-18px;">
<input name="tweaks_writeback" type="checkbox"> <?=$this->tt('dash_writeback'); ?> <br/> <span id="openWriteBackModal"><i class="fas fa-cog ml-3" style="color:grey"></i><?=$this->tt('dash_config'); ?></span>
</div>
</div>
<select id="rtDateRangeField" class="ml-2 fs12">
<option value=""></option>
</select>
<div class="container wbModal" id="rtModal">
<div class="row">
<label class="col-sm-4 control-label" for="modalBtn">Button Text</label>
<div class="col-sm-8">
<input id="modalBtn" name="modalBtn" type="text" placeholder="<?=$this->tt('modal_edit_2'); ?>" class="form-control input-md">
</div>
</div>
<div class="row">
<label class="col-sm-4 control-label" for="modalText">Popup Message</label>
<div class="col-sm-8">
<textarea class="form-control" id="modalText" name="modalText" placeholder="<?=$this->tt('modal_edit_3'); ?>"></textarea>
</div>
</div>
<div class="row">
<label class="col-sm-4 control-label" for="footer">Footer Text</label>
<div class="col-sm-8">
<textarea class="form-control" id="footer" name="footer"></textarea>
</div>
</div>
<div class="row">
<label class="col-sm-4 control-label" for="event"><?=$this->tt('modal_edit_4'); ?></label>
<div class="col-sm-8">
<select id="event" name="event" class="form-control">
<option value=""><?=$this->tt('modal_edit_5'); ?></option>
</select>
</div>
</div>
<div class="row">
<label class="col-sm-4 control-label" for="field"><?=$this->tt('modal_edit_6'); ?></label>
<div class="col-sm-8">
<select id="field" name="field" class="form-control">
</select>
</div>
</div>
<div class="row">
<label class="col-md-4 control-label" for="writeType"><?=$this->tt('modal_edit_7'); ?></label>
<div class="col-md-8 text-left">
<div class="radio">
<label for="writeType-ask">
<input type="radio" name="writeType" id="writeType-ask" value="ask" checked="checked">
<?=$this->tt('modal_edit_8'); ?>
</label>
</div>
<div class="radio">
<label for="writeType-static">
<input type="radio" name="writeType" id="writeType-static" value="static">
<?=$this->tt('modal_edit_9'); ?>
</label>
</div>
<div class="radio">
<label for="writeType-today">
<input type="radio" name="writeType" id="writeType-today" value="today">
<?=$this->tt('modal_edit_10'); ?>
</label>
</div>
</div>
</div>
<div class="row" id="writeStaticRow" style="display:none">
<label class="col-sm-4 control-label" for="writeStatic"><?=$this->tt('modal_edit_7'); ?></label>
<div class="col-sm-8">
<input id="writeStatic" name="writeStatic" type="text" placeholder="" class="form-control input-md">
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-10 text-left">
<div class="checkbox">
<label for="overwrites">
<input type="checkbox" name="overwrites" id="overwrites" value="1">
<?=$this->tt('modal_edit_11'); ?>
</label>
</div>
<div class="checkbox">
<label for="increment">
<input type="checkbox" name="increment" id="increment" value="1">
<?=$this->tt('modal_edit_12'); ?>
</label>
</div>
</div>
</div>
</div>
<!-- View Report Page -->
<a href="#" id="rtCopyDataBtn" class="btn btn-secondary btn-sm mb-1" role="button"><i class="fas fa-clipboard"></i></a>
<div id="rtFilters">
<span class="dataTables_filter">
<label><input type="text" placeholder="Maximum" id="tableFilterMax" tabindex=3></label>
</span>
<span class="dataTables_filter">
<label><input type="text" placeholder="Minimum" id="tableFilterMin" tabindex=2></label>
</span>
<span class="dataTables_filter">
<select id="minmaxpivot">
<option value="" selected disabled hidden><?=$this->tt('filter'); ?></option>
</select>
</span>
</div>
<div id="rtCheckboxes" class="container p-0 mt-1" style="max-width:420px">
<div class="row no-gutters">
<div class="col-md-5">
<span class="font-weight-bold"><?=$this->tt('hide_event'); ?>: </span>
<input type='checkbox' class='checkbox-inline' id='hideEventCol'>
</div>
<div class="col-md-7">
<span class="font-weight-bold"><?=$this->tt('hide_repeat'); ?>: </span>
<input type='checkbox' class='checkbox-inline' id='hideRepeatCols'>
</div>
</div>
<div class="row no-gutters">
<div class="col-md-12">
<span class="font-weight-bold"><?=$this->tt('live_date'); ?>: </span>
<select id='filterDateRange'>
<option value="-1"></option>
<option value="1">Yesterday</option>
<option value="7">Past Week</option>
<option value="14">Past 2 Weeks</option>
<option value="30">Past Month</option>
<option value="60">Past 2 Months</option>
<option value="90">Past 3 Months</option>
<option value="365">Past Year</option>
</select>
</div>
</div>
</div>
<div style='margin-top:10px;' id="rtModalBtn">
<button class="tweaks_writeback report_btn jqbuttonmed ui-button ui-corner-all ui-widget" style="font-size:12px;">
<i class="fas fa-pencil-alt fs10"></i> BtnLabel
</button>
</div>
<div class="form-group mb-0" id="rtModalInput">
<label class='font-weight-bold float-left mt-4'>LabelText</label>
<input type="text" class="swal2-input mt-0 mb-0" id="newID">
</div>
</template>