Die entsprechenden Templates, damit die generic Translations auch editierbar sind
authorJan Büren <information@richardson-bueren.de>
Mon, 29 Jun 2009 15:49:30 +0000 (15:49 +0000)
committerJan Büren <information@richardson-bueren.de>
Mon, 29 Jun 2009 15:49:30 +0000 (15:49 +0000)
templates/webpages/generictranslations/edit_greetings_de.html [new file with mode: 0644]
templates/webpages/generictranslations/edit_greetings_master.html [new file with mode: 0644]

diff --git a/templates/webpages/generictranslations/edit_greetings_de.html b/templates/webpages/generictranslations/edit_greetings_de.html
new file mode 100644 (file)
index 0000000..c4f7ad2
--- /dev/null
@@ -0,0 +1,47 @@
+[% USE HTML %]<body>
+
+ <p>
+  <div class="listtop">[% HTML.escape(title) %]</div>
+ </p>
+
+ [%- IF message %]
+ <p>
+  [% HTML.escape(message) %]
+ </p>
+ [%- END %]
+
+ <form method="post" action="generictranslations.pl">
+
+  <table>
+
+   <tr>
+    <th class="listheading">&nbsp;</th>
+    <th class="listheading">m&auml;nnlich</th>
+    <th class="listheading">weiblich</th>
+   </tr>
+
+   [%- FOREACH language = LANGUAGES %]
+   <tr>
+    <td>
+     [%- IF language.id == 'default' %]
+     Default (no language selected)
+     [%- ELSE %]
+     [%- HTML.escape(language.description) %]
+     [%- END %]
+    </td>
+    <td><input name="translation__[% language.id %]__male" size="40" value="[% HTML.escape(language.male) %]"></td>
+    <td><input name="translation__[% language.id %]__female" size="40" value="[% HTML.escape(language.female) %]"></td>
+   </tr>
+   [%- END %]
+
+  </table>
+
+  <p>
+   <input type="hidden" name="action" value="save_greetings">
+   <input type="submit" class="submit" value="Speichern">
+  </p>
+
+ </form>
+
+</body>
+</html>
diff --git a/templates/webpages/generictranslations/edit_greetings_master.html b/templates/webpages/generictranslations/edit_greetings_master.html
new file mode 100644 (file)
index 0000000..897ea64
--- /dev/null
@@ -0,0 +1,47 @@
+[% USE HTML %]<body>
+
+ <p>
+  <div class="listtop">[% HTML.escape(title) %]</div>
+ </p>
+
+ [%- IF message %]
+ <p>
+  [% HTML.escape(message) %]
+ </p>
+ [%- END %]
+
+ <form method="post" action="generictranslations.pl">
+
+  <table>
+
+   <tr>
+    <th class="listheading">&nbsp;</th>
+    <th class="listheading"><translate>male</translate></th>
+    <th class="listheading"><translate>female</translate></th>
+   </tr>
+
+   [%- FOREACH language = LANGUAGES %]
+   <tr>
+    <td>
+     [%- IF language.id == 'default' %]
+     <translate>Default (no language selected)</translate>
+     [%- ELSE %]
+     [%- HTML.escape(language.description) %]
+     [%- END %]
+    </td>
+    <td><input name="translation__[% language.id %]__male" size="40" value="[% HTML.escape(language.male) %]"></td>
+    <td><input name="translation__[% language.id %]__female" size="40" value="[% HTML.escape(language.female) %]"></td>
+   </tr>
+   [%- END %]
+
+  </table>
+
+  <p>
+   <input type="hidden" name="action" value="save_greetings">
+   <input type="submit" class="submit" value="<translate>Save</translate>">
+  </p>
+
+ </form>
+
+</body>
+</html>