]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/web/reports/oils_rpt_editor.xhtml
LP1837059 Angular local admin page
[Evergreen.git] / Open-ILS / web / reports / oils_rpt_editor.xhtml
1 <div id='oils_rpt_editor_div'>
2         <table width='100%' id='oils_rpt_editor_table'>
3                 <tbody>
4                         <tr>
5                                 <th>&reports.oils_rpt_editor.template_name;</th>
6                                 <td><span id='oils_rpt_report_editor_template_name'></span></td>
7                         </tr>
8                         <tr>
9                                 <th>&reports.oils_rpt_editor.template_creator;</th>
10                                 <td><span id='oils_rpt_report_editor_template_creator'></span></td>
11                         </tr>
12                         <tr>
13                                 <th>&reports.oils_rpt_editor.template_description;</th>
14                                 <td><span id='oils_rpt_report_editor_template_description'></span></td>
15                         </tr>
16                         <tr id='oils_rpt_report_editor_template_doc_url_row'>
17                                 <th colspan="2">
18                     &reports.oils_rpt_editor.doc_url; 
19                     <a href="" id='oils_rpt_report_editor_template_doc_url'></a>
20                 </th>
21                         </tr>
22
23                         <tr>
24                                 <th>&reports.oils_rpt_editor.report_name;</th>
25                                 <script type="text/javascript">
26                                         var oils_rpt_report_editor_name_func = function(obj) {
27                                                 if(obj.value) removeCSSClass(obj, OILS_RPT_INVALID_DATA);
28                                                 else addCSSClass(obj, OILS_RPT_INVALID_DATA);
29                                         }
30                                 </script>
31                                 <td>
32                                         <input type='text' id='oils_rpt_report_editor_name' class='oils_rpt_invalid_input'
33                                                 onkeyup='oils_rpt_report_editor_name_func(this);' 
34                                                 onchange='oils_rpt_report_editor_name_func(this);'/>
35                                 </td>
36                         </tr>
37                         <tr>
38                                 <th>&reports.oils_rpt_editor.report_description;</th>
39                                 <td><textarea cols='45' rows='2' id='oils_rpt_report_editor_desc'/></td>
40                         </tr>
41                         <tr>
42                                 <th>&reports.oils_rpt_editor.report_columns;</th>
43                                 <td><b id='oils_rpt_report_editor_cols'/></td>
44                         </tr>
45                         <tr class='hide_me' id='oils_rpt_editor_pivot_label_row'>
46                                 <th>&reports.oils_rpt_editor.pivot_label_column;</th>
47                                 <td>
48                     <select id='oils_rpt_editor_pivot_label'>
49                         <option selected='selected' value=''> -- &reports.oils_rpt_editor.select_option; -- </option>
50                     </select>
51                 </td>
52                         </tr>
53                         <tr class='hide_me' id='oils_rpt_editor_pivot_data_row'>
54                                 <th>&reports.oils_rpt_editor.pivot_data_column;</th>
55                                 <td>
56                     <select id='oils_rpt_editor_pivot_data'>
57                     </select>
58                 </td>
59                         </tr>
60
61                         <!--
62                         <tr><td colspan='2'><hr/></td></tr>
63                         -->
64                         <tr>
65                                 <th>&reports.oils_rpt_editor.store_report_definition;</th>
66                                 <td>
67                                         <div style='margin-bottom: 7px;'>
68                                                 <span>&reports.oils_rpt_editor.selected_folder;</span>
69                                                 <b id='oils_rpt_report_editor_selected_folder'/>
70                                         </div>
71                                         <span id='oils_rpt_report_editor_dest_folder'></span>
72                                 </td>
73                         </tr>
74                         <!--
75                         <tr><td colspan='2'><hr/></td></tr>
76                         -->
77                         <tr>
78                                 <td colspan='2' style='padding: 10px;'>
79                                         <!--#include virtual="oils_rpt_param_editor.xhtml"-->
80                                 </td>
81                         </tr>
82                         <!--
83                         <tr><td colspan='2'><hr/></td></tr>
84                         -->
85                         <!--
86                         <tr>
87                                 <th colspan='2'>Output Options</th>
88                         </tr>
89                         -->
90                         <tr>
91                                 <td colspan='2'>
92                                         <div><b>&reports.oils_rpt_editor.output_options;</b></div>
93                                         <ul>
94                                                 <li><input type="checkbox" id="oils_rpt_format_excel" value="t" checked="checked"/><span>&reports.oils_rpt_editor.excel_output;</span></li>
95                                                 <li><input type="checkbox" id="oils_rpt_format_csv" value="t"/><span>&reports.oils_rpt_editor.csv_output;</span></li>
96                                                 <li>
97                                                         <input type="checkbox" id="oils_rpt_format_html" value="t" checked="checked"/>&reports.oils_rpt_editor.html_output;
98                                                         <ul>
99                                                                 <li><input type="checkbox" id="oils_rpt_format_chart_bar" value="t" checked="checked"/><span>&reports.oils_rpt_editor.bar_charts;</span></li>
100                                                                 <!--
101                                                                 <li><input type="checkbox" id="oils_rpt_format_chart_pie" value="t"/><span>Pie Charts</span></li>
102                                                                 -->
103                                                                 <li><input type="checkbox" id="oils_rpt_format_chart_line" value="t"/><span>&reports.oils_rpt_editor.line_charts;</span></li>
104                                                         </ul>
105                                                 </li>
106                                         </ul>
107
108                                 </td>
109                         </tr>
110                         <!--
111                         <tr><td colspan='2'><hr/></td></tr>
112                         -->
113                         <tr>
114                                 <th>&reports.oils_rpt_editor.recurring_report;</th>
115                                 <td>
116                                         <input type="checkbox" id="oils_rpt_recur" value="t"
117                                                 onclick='
118                                                         if(this.checked) {
119                                                                 DOM.oils_rpt_recur_count.disabled = false;
120                                                                 DOM.oils_rpt_recur_interval_type.disabled = false;
121                                                         } else {
122                                                                 DOM.oils_rpt_recur_count.disabled = true;
123                                                                 DOM.oils_rpt_recur_interval_type.disabled = true;
124                                                         }
125                                         '/>
126                                 </td>
127                         </tr>
128                         <tr>
129                                 <th>&reports.oils_rpt_editor.recurring_interval;</th>
130                                 <td>
131                                         <select id="oils_rpt_recur_count" disabled='disabled'>
132                                                 <option value='1'>1</option>
133                                                 <option value='2'>2</option>
134                                                 <option value='3'>3</option>
135                                                 <option value='4'>4</option>
136                                                 <option value='5'>5</option>
137                                                 <option value='6'>6</option>
138                                                 <option value='7'>7</option>
139                                                 <option value='8'>8</option>
140                                                 <option value='9'>9</option>
141                                                 <option value='10'>10</option>
142                                                 <option value='11'>11</option>
143                                                 <option value='12'>12</option>
144                                                 <option value='13'>13</option>
145                                                 <option value='14'>14</option>
146                                                 <option value='15'>15</option>
147                                                 <option value='16'>16</option>
148                                                 <option value='17'>17</option>
149                                                 <option value='18'>18</option>
150                                                 <option value='19'>19</option>
151                                                 <option value='20'>20</option>
152                                                 <option value='21'>21</option>
153                                                 <option value='22'>22</option>
154                                                 <option value='23'>23</option>
155                                                 <option value='24'>24</option>
156                                         </select>
157                                         <select id="oils_rpt_recur_interval_type" disabled='disabled'>
158                                                 <option value="days">&reports.oils_rpt_editor.days;</option>
159                                                 <option value="weeks">&reports.oils_rpt_editor.weeks;</option>
160                                                 <option value="months">&reports.oils_rpt_editor.months;</option>
161                                         </select>
162                                 </td>
163                         </tr>
164                         <tr>
165                                 <!-- XXX: This needs to be replaced with a radio button widget -->
166                                 <th colspan="2">
167                                         <div>
168                                                 <input type='checkbox' id='oils_rpt_report_editor_run_now' checked='checked'
169                                                         onclick='
170                                                                 if(this.checked) {
171                                                                         DOM.oils_rpt_param_editor_sched_start_date.disabled = true;
172                                                                         DOM.oils_rpt_param_editor_sched_start_hour.disabled = true;
173                                                                         dojo.attr(dojo.byId("oils_rpt_report_editor_schedule"), "checked", false);
174                                                                 } else {
175                                                                         DOM.oils_rpt_param_editor_sched_start_date.disabled = false;
176                                                                         DOM.oils_rpt_param_editor_sched_start_hour.disabled = false;
177                                                                         dojo.attr(dojo.byId("oils_rpt_report_editor_schedule"), "checked", true);
178                                                                 }
179                                                         '
180                                                 />
181                                                 <span>&reports.oils_rpt_editor.run_asap;</span>
182                                         </div>
183                                         <div>
184                                                 <input type='checkbox' id='oils_rpt_report_editor_schedule'
185                                                         onclick='
186                                                                 if(this.checked) {
187                                                                         DOM.oils_rpt_param_editor_sched_start_date.disabled = false;
188                                                                         DOM.oils_rpt_param_editor_sched_start_hour.disabled = false;
189                                                                         dojo.attr(dojo.byId("oils_rpt_report_editor_run_now"), "checked", false);
190                                                                 } else {
191                                                                         DOM.oils_rpt_param_editor_sched_start_date.disabled = true;
192                                                                         DOM.oils_rpt_param_editor_sched_start_hour.disabled = true;
193                                                                         dojo.attr(dojo.byId("oils_rpt_report_editor_run_now"), "checked", true);
194                                                                 }
195                                                         '
196                                                 />
197
198                                                 <!-- XXX: This should be replaced with a standard date/time picker for i18n purposes -->
199                                                 <input id="oils_rpt_param_editor_sched_start_date" type="text" size="10" disabled="disabled"/>
200                                                 <select id='oils_rpt_param_editor_sched_start_hour' disabled="disabled">
201                                                         <option value="00:00">&reports.oils_rpt_editor.midnight;</option>
202                                                         <option value="01:00">1 AM</option>
203                                                         <option value="02:00">2 AM</option>
204                                                         <option value="03:00">3 AM</option>
205                                                         <option value="04:00">4 AM</option>
206                                                         <option value="05:00">5 AM</option>
207                                                         <option value="06:00">6 AM</option>
208                                                         <option value="07:00">7 AM</option>
209                                                         <option value="09:00">8 AM</option>
210                                                         <option value="09:00">9 AM</option>
211                                                         <option value="10:00">10 AM</option>
212                                                         <option value="11:00">11 AM</option>
213                                                         <option value="12:00">&reports.oils_rpt_editor.noon;</option>
214                                                         <option value="13:00">1 PM</option>
215                                                         <option value="14:00">2 PM</option>
216                                                         <option value="15:00">3 PM</option>
217                                                         <option value="16:00">4 PM</option>
218                                                         <option value="17:00">5 PM</option>
219                                                         <option value="18:00">6 PM</option>
220                                                         <option value="19:00">7 PM</option>
221                                                         <option value="20:00">8 PM</option>
222                                                         <option value="21:00">9 PM</option>
223                                                         <option value="22:00">10 PM</option>
224                                                         <option value="23:00">11 PM</option>
225                                                 </select>
226                                         </div>
227                                 </th>
228                         </tr>
229                         <tr>
230                                 <th>&reports.oils_rpt_editor.sent_to_email;</th>
231                                 <td><input id="oils_rpt_param_editor_sched_email" type="text" size="25"/></td>
232                         </tr>
233                         <tr>
234                                 <th>&reports.oils_rpt_editor.storage_folder_for_output;</th>
235                                 <td>
236                                         <div style='margin-bottom: 7px;'>
237                                                 <span>&reports.oils_rpt_editor.selected_folder;</span>
238                                                 <b id='oils_rpt_output_selected_folder'/>
239                                         </div>
240                                         <span id='oils_rpt_output_dest_folder'></span>
241                                 </td>
242                         </tr>
243
244                         <tr>
245                                 <td colspan='2'>
246                                         <input id='oils_rpt_report_editor_save' style='margin-right:10px;'
247                         type='submit' value='&reports.oils_rpt_editor.save_report;'/>
248
249                                         <input id='oils_rpt_report_editor_save_new' style='margin-right:10px;'
250                         type='submit' value='&reports.oils_rpt_editor.save_report_new;'/>
251
252                     <!-- use input/submit instead of <button> for consistent styling -->
253                                         <input id='oils_rpt_report_editor_exit' style='margin-right:10px;'
254                         type='submit' value='&reports.oils_rpt_editor.exit_report;'/>
255
256                                         <input id='oils_rpt_report_editor_cancel' style='margin-right:10px;'
257                         type='submit' value='&reports.oils_rpt_editor.cancel;'/>
258                                 </td>
259                         </tr>
260
261                 </tbody>
262         </table>
263
264     <div id='oils_rpt_editor_sched_confirm' style='width:100%' class='hide_me'>
265         <div>&reports.oils_rpt_editor.confirm_sched;</div>
266         <div>
267             <!-- use input/submit instead of <button> for consistent styling -->
268             <input id='oils_rpt_report_editor_sched_apply' style='margin-right:10px;'
269                 type='submit' value='&reports.oils_rpt_editor.apply_changes;'/>
270
271             <input id='oils_rpt_report_editor_sched_asnew' style='margin-right:10px;'
272                 type='submit' value='&reports.oils_rpt_editor.save_report_new;'/>
273
274             <input id='oils_rpt_report_editor_sched_cancel' style='margin-right:10px;'
275                 type='submit' value='&reports.oils_rpt_editor.cancel;'/>
276         </div>
277     </div>
278
279         <span id='oils_rpt_empty_param' class='hide_me'>
280                 &reports.oils_rpt_editor.empty_parameter;
281         </span>
282
283     <span id='oils_rpt_report_exists' class='hide_me'>
284         &reports.oils_rpt_editor.same_name;
285     </span>
286
287 </div>