]> src.bluestatic.org Git - bugdar.git/blob - admin/templates/language_edit.html
Switch the 'modify' code of admin/field.php to use templates
[bugdar.git] / admin / templates / language_edit.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('Manage Languages') %></title>
6 </head>
7
8 <body>
9
10 <%- $templates['nav'] %>
11
12 <div id="title"><%- T('Manage Languages') %></div>
13
14 <div id="body">
15
16 <%- admin_flash() %>
17
18 <form action="language.php" method="post">
19 <input type="hidden" name="do" value="<%- ($language ? 'update' : 'insert') %>" />
20 <% if ($language): %><input type="hidden" name="languageid" value="<%- $language['languageid'] %>" /><% endif %>
21
22 <fieldset>
23 <legend><%- ($language ? T('Edit Language') : T('New Language')) %></legend>
24
25 <dl>
26
27 <dt><label for="l_title"><%- T('Title') %></label></dt>
28 <dd><input type="text" name="title" value="<%- $language['title'] %>" id="l_title" /></dd>
29
30 <dt>
31 <label for="langcode">
32 <%- T('Gettext Language Code') %>
33 <dfn><strong><%- T('Format') %>:</strong> <em><a href="http://www.gnu.org/software/gettext/manual/html_chapter/gettext_15.html">language</a></em>_<em><a href="http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html">COUNTRY</a></em></dfn>
34 </label>
35 </dt>
36 <dd><input type="text" name="langcode" value="<%- $language['langcode'] %>" id="langcode" /></dd>
37
38 <dt><label for="charset"><%- T('Character Set') %></label></dt>
39 <dd><input type="text" name="charset" value="<%- $language['charset'] %>" id="charset" /></dd>
40
41 <dt><label for="direction"><%- T('Text Direction') %></label></dt>
42 <dd>
43 <select name="direction" id="direction">
44 <option value="ltr"<%- ($language['direction'] == 'ltr' ? BSDecorator::HTML_SELECTED : '') %>><%- T('Left-to-Right') %></option>
45 <option value="rtl"<%- ($language['direction'] == 'rtl' ? BSDecorator::HTML_SELECTED : '') %>><%- T('Right-to-Left') %></option>
46 </select>
47 </dd>
48
49 <dt><label for="userselect"><%- T('User Selectable') %></label></dt>
50 <dd><%- BSDecorator::yesno('userselect', $language['userselect']) %></dd>
51
52 </dl>
53 </fieldset>
54
55 <div class="submit">
56 <input type="submit" value="<%- T('Save') %>" />
57 <input type="reset" value="<%- T('Reset') %>" />
58 </div>
59
60 <%- admin_footer() %>
61
62 </div>
63
64 </body>
65
66 <script type="text/javascript"> nav_init("system", "system_language"); </script>
67
68 </body>
69
70 </html>