Templateize admin/userhelp.php
[bugdar.git] / admin / templates / userhelp.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('Edit User Help') %></title>
6 </head>
7
8 <body>
9
10 <%- $templates['nav'] %>
11
12 <div id="title"><%- T('Edit User Help') %></div>
13
14 <div id="body">
15
16 <%- admin_flash() %>
17
18 <form action="userhelp.php" method="post">
19 <input type="hidden" name="do" value="update" />
20
21 <table>
22 <thead>
23 <tr><td colspan="2"><%- T('Edit User Help') %></td></tr>
24 </thead>
25
26 <% foreach ($topics as $topic): %>
27 <tr class="alt1">
28 <td>
29 <div><input type="text" class="input" name="help[<%- $topic['keystring'] %>][title]" value="<%- $topic['title'] %>" size="35" /></div>
30 <div>
31 <em><%- $topic['keystring'] %></em>
32 <% if (!in_array($topic['keystring'], UserHelpAPI::not_able_to_delete())): %><a href="userhelp.php?do=delete&amp;keystring=<%- $topic['keystring'] %>">[<%- T('Delete') %>]</a><% endif %>
33 </div>
34 </td>
35 <td><textarea name="help[<%- $topic['keystring'] %>][body]"><%- $topic['body'] %></textarea></td>
36 </tr>
37 <% endforeach %>
38
39 </table>
40
41 <div class="submit">
42 <input type="submit" value="<%- T('Save') %>" />
43 <input type="reset" value="<%- T('Reset') %>" />
44 <a href="userhelp.php?do=add" class="button"><%- T('Add New Item') %></a>
45 </div>
46
47 </form>
48
49
50 <%- admin_footer() %>
51
52 </div>
53
54 <script type="text/javascript"> nav_init("system", "system_userhelp"); </script>
55
56 </body>
57
58 </html>