source: trunk/templates/loclist.tmpl@ 377

Last change on this file since 377 was 374, checked in by Kris Deugau, 12 years ago

/trunk

Checkpoint adding location/view UI bits. See #10.

  • add location add/edit template
  • stub out location add/edit, start filling in add section
  • straighten out use of some of the new location-related permission flags
File size: 2.1 KB
RevLine 
[370]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center" valign="top">
6
7<TMPL_IF resultmsg>
8<div class="result"><TMPL_VAR NAME=resultmsg></div>
9</TMPL_IF>
10<TMPL_IF warnmsg>
11<div class="warning">Warning: <TMPL_VAR NAME=warnmsg></div>
12</TMPL_IF>
13<TMPL_IF errmsg>
14<div class="errmsg"><TMPL_VAR NAME=errmsg></div>
15</TMPL_IF>
16
17<table width="98%" class="csubtable">
18<tr><th colspan="3"><div class="center maintitle">Manage locations/views</div></th></tr>
19<tr>
20<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
21<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
22<td class="rightthird"><TMPL_INCLUDE NAME="sbox.tmpl"></td>
23</tr>
24<TMPL_IF addloc>
[374]25<tr><td colspan="3" align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=location">New Location/View</a></td></tr>
[370]26</TMPL_IF>
27</table>
28
29<table width="98%" border="0" cellspacing="4" cellpadding="3" class="csubtable">
30<tr>
31<TMPL_LOOP NAME=colheads>
32 <td class="datahead_<TMPL_IF firstcol>l<TMPL_ELSE>s</TMPL_IF>"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></td></TMPL_LOOP>
33<TMPL_IF delloc> <td class="datahead_s">Delete</td></TMPL_IF>
34</tr>
35<TMPL_IF name=loctable>
36<TMPL_LOOP name=loctable>
37<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[374]38 <td align="left"><TMPL_IF edloc><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=location&amp;locact=edit&amp;loc=<TMPL_VAR NAME=location>"><TMPL_VAR NAME=description></a><TMPL_ELSE><TMPL_VAR NAME=description></TMPL_IF></td>
[370]39 <td><TMPL_VAR name=iplist></td>
40 <td><TMPL_VAR name=group_name></td>
41<TMPL_IF delloc>
42 <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delloc&amp;id=<TMPL_VAR
43NAME=loc>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
44</TMPL_IF>
45</tr>
46</TMPL_LOOP>
47<TMPL_ELSE>
48<tr><td colspan="6">No locations/views defined</td></tr>
49</TMPL_IF>
50</table>
51
52</td>
53</tr>
54</table>
Note: See TracBrowser for help on using the repository browser.