Revision 693e96f1
Ajout du refresh dans la toolbar et correction CSS / W3C
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@538 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/templates/vigiboard_event_table.html | ||
---|---|---|
5 | 5 |
|
6 | 6 |
<xi:include href="vigiboard_history_table.html" /> |
7 | 7 |
|
8 |
<py:def function="event_table(events,page,pages,id_first_row,id_last_row,total_row,edit_event_status_options,history,hist_error)"> |
|
8 |
<py:def function="event_table(events,page,pages,id_first_row,id_last_row,total_row,edit_event_status_options,history,hist_error,search)">
|
|
9 | 9 |
<?python from genshi import HTML ?> |
10 | 10 |
|
11 | 11 |
<py:if test="len(events) > 1"> |
... | ... | |
14 | 14 |
<thead> |
15 | 15 |
<tr > |
16 | 16 |
<td style="width:26px;border-right: solid 1px #4682b4"> |
17 |
<a py:if="page > pages[0]" href="${tg.url('/%d' % (page-1))}"><img src="${tg.url('/images/fleche_up.png')}" alt="up" title="Page précédente"/></a>
|
|
18 |
<img py:if="page == pages[0]" src="${tg.url('/images/fleche_up.png')}" alt="up" title="Page précédente" />
|
|
17 |
<a py:if="page > pages[0]" href="${tg.url('/%d' % (page-1))}"><img src="${tg.url('/images/fleche_up.png')}" alt="Précédent" title="Page précédente"/></a>
|
|
18 |
<img py:if="page == pages[0]" src="${tg.url('/images/fleche_up.png')}" alt="Précédent" title="Page précédente" />
|
|
19 | 19 |
</td> |
20 |
<td colspan="${8+len(events[1][6])}" style="background-color: #4682b4" >Showing rows ${id_first_row} to ${id_last_row} of ${total_row}<br /> |
|
20 |
<td colspan="${8+len(events[1][6])}" style="color: white;background-color: #4682b4" >Showing rows ${id_first_row} to ${id_last_row} of ${total_row}<br />
|
|
21 | 21 |
Pages <py:for each="p in pages"> |
22 | 22 |
<a py:if="p != page" href="${tg.url('/%d' % p)}" py:content="p" /> |
23 | 23 |
<span py:if="p == page" py:replace="p" /> |
24 | 24 |
</py:for> |
25 | 25 |
</td> |
26 | 26 |
<td style="width:26px;border-left: solid 1px #4682b4"> |
27 |
<a py:if="pages[-1] > page" href="${tg.url('/%d' % (page+1))}"><img src="${tg.url('/images/fleche_down.png')}" alt="down" title="Page suivante"/></a>
|
|
28 |
<img py:if="page == pages[-1]" src="${tg.url('/images/fleche_down.png')}" alt="down" title="Page suivante" />
|
|
27 |
<a py:if="pages[-1] > page" href="${tg.url('/%d' % (page+1))}"><img src="${tg.url('/images/fleche_down.png')}" alt="Suivante" title="Page suivante"/></a>
|
|
28 |
<img py:if="page == pages[-1]" src="${tg.url('/images/fleche_down.png')}" alt="" title="Page suivante" /> |
|
29 | 29 |
</td> |
30 | 30 |
</tr> |
31 | 31 |
|
... | ... | |
33 | 33 |
<py:for each="(pname,pstyle) in events[0]"> |
34 | 34 |
<th style="padding: 5px;" py:attrs="pstyle">${HTML(pname)}</th> |
35 | 35 |
</py:for> |
36 |
<th style="width:26px;padding: 0px;"><a class="Edit_EventsLien" href="javascript:vigiboard_edit_eventdialog('all')"><img src="${tg.url('/images/icon_page_edit.png')}" alt="edit_all" title="Editer tous les évènements sélectionnés"/></a></th>
|
|
36 |
<th style="width:26px;padding: 0px;"><a class="Edit_EventsLien" href="javascript:vigiboard_edit_eventdialog('all')"><img src="${tg.url('/images/icon_page_edit.png')}" alt="Edit all selected events" title="Edit all selected events"/></a></th>
|
|
37 | 37 |
<th style="padding:0px;"><input title="Sélectioner tout" id="vigiboard_checkall_checkbox" type="checkbox" onclick="javascript:vigiboard_checkall()" /></th> |
38 | 38 |
</tr> |
39 | 39 |
</thead> |
... | ... | |
109 | 109 |
$('#Edit_EventsDialog').dialog('open'); |
110 | 110 |
} |
111 | 111 |
function vigiboard_searchdialog() { |
112 |
$('#search_form_host').attr('value',''); |
|
113 |
$('#search_form_service').attr('value',''); |
|
114 |
$('#search_form_output').attr('value',''); |
|
115 |
$('#search_form_trouble_ticket').attr('value', ''); |
|
112 |
$('#search_form_host').attr('value','${search['host']}');
|
|
113 |
$('#search_form_service').attr('value','${search['service']}');
|
|
114 |
$('#search_form_output').attr('value','${search['output']}');
|
|
115 |
$('#search_form_trouble_ticket').attr('value', '${search['tt']}');
|
|
116 | 116 |
$('#SearchDialog').dialog('open'); |
117 | 117 |
} |
118 | 118 |
function vigiboard_checkall() { |
... | ... | |
134 | 134 |
|
135 | 135 |
</script> |
136 | 136 |
|
137 |
<div id="HistoryDialog"> |
|
137 |
<div style="display:none" id="HistoryDialog">
|
|
138 | 138 |
Initial State: <span id="HistoryDialog_initial_state" /><br /> |
139 | 139 |
Current State: <span id="HistoryDialog_current_state" /><br /> |
140 | 140 |
<ul> |
... | ... | |
146 | 146 |
</ul> |
147 | 147 |
</div> |
148 | 148 |
|
149 |
<div id="Edit_EventsDialog"> |
|
149 |
<div style="display:none" id="Edit_EventsDialog">
|
|
150 | 150 |
${tmpl_context.edit_event_form()} |
151 | 151 |
</div> |
152 |
<div id="SearchDialog"> |
|
152 |
<div style="display:none" id="SearchDialog">
|
|
153 | 153 |
${tmpl_context.search_form()} |
154 | 154 |
</div> |
155 | 155 |
|
... | ... | |
185 | 185 |
</tbody> |
186 | 186 |
</table> |
187 | 187 |
${tmpl_context.searchdialog} |
188 |
<div id="SearchDialog"> |
|
188 |
<div style="display:none" id="SearchDialog">
|
|
189 | 189 |
${tmpl_context.search_form()} |
190 | 190 |
</div> |
191 | 191 |
<script type="text/javascript"> |
Also available in: Unified diff