]> src.bluestatic.org Git - bugdar.git/blob - admin/templates/field.html
Switch the 'modify' code of admin/field.php to use templates
[bugdar.git] / admin / templates / field.html
1 <%- $templates['doctype'] %>
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="<%- $stylevar['lang'] %>" xml:lang="<%- $stylevar['lang'] %>" dir="<%- $stylevar['lang_dir'] %>">
3 <head>
4 <%- $templates['headinclude'] %>
5 <title><%- $templates['title'] %> - <%- T('Custom Fields') %></title>
6 </head>
7
8 <body>
9
10 <%- $templates['nav'] %>
11
12 <div id="title"><%- T('Custom Fields') %></div>
13
14 <div id="body">
15
16 <%- admin_flash() %>
17
18 <table>
19 <thead>
20 <tr><td colspan="3"><%- T('Custom Fields') %></td></tr>
21 </thead>
22 <tr class="headings">
23 <td style="width: 75%"><%- T('Display Name/Description') %></td>
24 <td style="width: 10%"><%- T('Field ID') %></td>
25 <td><%- T('Actions') %></td>
26 </tr>
27 <% $i = 0; foreach ($fields as $field): %>
28 <tr class="alt<%- ($i % 2) + 1 %>">
29 <td>
30 <%- $field['name'] %>
31 <dfn><%- $field['description'] %></dfn>
32 </td>
33 <td style="text-align: center"><%- $field['fieldid'] %></td>
34 <td style="text-align: center">
35 <a class="button" href="field.php?do=edit&amp;fieldid=<%- $field['fieldid'] %>"><%- T('Edit') %></a>
36 <a class="button" href="field.php?do=delete&amp;fieldid=<%- $field['fieldid'] %>"><%- T('Delete') %></a>
37 </td>
38 </tr>
39 <% $i++ %>
40 <% endforeach %>
41 </table>
42
43 <%- admin_footer() %>
44
45 </div>
46
47 <script type="text/javascript"> nav_init("fields", "fields_custom"); </script>
48
49 </body>
50
51 </html>