/[glsr]/trunk/templates/gentoo/admin/categories.tpl
Gentoo

Contents of /trunk/templates/gentoo/admin/categories.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 178 - (show annotations) (download) (as text)
Sat Nov 5 23:55:24 2005 UTC (9 years ago) by hadfield
File MIME type: application/vnd.groove-tool-template
File size: 3740 byte(s)
fixed the category and languages display in admin console
1 {INCLUDE header.tpl}
2
3 <form name="news" method="POST" action="panel.py">
4 <input type="hidden" name="page" value="category" />
5
6 <table width="90%" class="standard_table">
7 <tr>
8 <td colspan="4" class="header">
9 Categories
10 </td>
11 </tr>
12
13 {IF len(CATEGORY_LOOP) == "0"}
14 {IF ADD_CATEGORY != "1"}
15 <tr>
16 <td colspan="4" class="standard_cell" style="border-bottom: 1px solid black;">
17 No Categories Found
18 </td>
19 </tr>
20 {ELSE}
21 <tr>
22 <td class="sub_header">Name</td>
23 <td class="sub_header" width="99%" align="left">Description</td>
24 <td class="sub_header" colspan="2">&nbsp;</td>
25 </tr>
26 {!IF}
27 {ELSE}
28 <tr>
29 <td class="sub_header">Name</td>
30 <td class="sub_header" width="99%" align="left">Description</td>
31 {IF EDIT_CATEGORY != 0}
32 <td class="sub_header" colspan="2">&nbsp;</td>
33 {ELSE}
34 <td class="sub_header">&nbsp;</td>
35 <td class="sub_header">Delete</td>
36 {!IF}
37 </tr>
38 {!IF}
39
40 {LOOP CATEGORY_LOOP}
41 <tr>
42 {IF EDIT_CATEGORY == CATEGORY_LOOP.category_id}
43 <td class="std_row_{is_odd(iterator(CATEGORY_LOOP))}">
44 <input type="hidden" value="{EDIT_CATEGORY}" name="category_id" />
45 <input type="text" class="text" value="{CATEGORY_LOOP.category_name}" name="name" />
46 </td>
47 <td class="std_row_{is_odd(iterator(CATEGORY_LOOP))}" align="left">
48 <input type="text" class="text-long" value="{CATEGORY_LOOP.category_descr}" name="descr" />
49 </td>
50 <td colspan="2" class="std_row_{is_odd(iterator(CATEGORY_LOOP))}"
51 style="padding-right: 12px;">
52 <input type="submit" class="button" name="save" value="Save" />
53 </td>
54
55 {ELSE}
56 <td class="std_row_{is_odd(iterator(CATEGORY_LOOP))}">
57 {CATEGORY_LOOP.category_name}
58 </td>
59 <td class="std_row_{is_odd(iterator(CATEGORY_LOOP))}" align="left">
60 {CATEGORY_LOOP.category_descr}&nbsp;
61 </td>
62 <td class="std_row_{is_odd(iterator(CATEGORY_LOOP))}" align="center">
63 <input type="submit" class="button"
64 name="edit_{CATEGORY_LOOP.category_id}" value="Edit" />
65 </td>
66 <td class="std_row_{is_odd(iterator(CATEGORY_LOOP))}" align="center">
67 <input type="checkbox" name="delete_btn"
68 value="{CATEGORY_LOOP.category_id}" />
69 </td>
70 {!IF}
71 </tr>
72 {!LOOP}
73
74 {IF ADD_CATEGORY == 1}
75 <tr>
76 <td class="std_row_{is_odd(len(CATEGORY_LOOP))}">
77 <input type="hidden" value="0" name="category_id" />
78 <input type="text" class="text" value="" name="name" />
79 </td>
80 <td class="std_row_{is_odd(len(CATEGORY_LOOP))}" align="left">
81 <input type="text" class="text-long" value="" name="descr" />
82 </td>
83 <td colspan="2" class="std_row_{is_odd(len(CATEGORY_LOOP))}"
84 style="padding-right: 12px;">
85 <input type="submit" class="button" name="save" value="Save" />
86 </td>
87 </tr>
88 {!IF}
89
90 <tr>
91 <td class="standard_cell" colspan="4" align="right">
92 <input type="submit" class="button" name="add" value="Add" />
93 {IF len(CATEGORY_LOOP) > 0}
94 &nbsp;&nbsp;&nbsp;&nbsp;
95 <input type="submit" class="button" name="delete" value="Delete" />
96 {!IF}
97 </td>
98 </tr>
99 </table>
100
101 </form>
102
103 {INCLUDE footer.tpl}

  ViewVC Help
Powered by ViewVC 1.1.20