+++ /dev/null
-[%#
- Template fuer Buchangaben
-
- vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
-
- $Id$
- $URL$
-
--%]
-
-<!-- Book form -->
-
-<script type="text/javascript">//<![CDATA[
-
-function goto_new_author() {
- var target = '[% Catalyst.web_path( '/autor/new', { 'return_target_form' => self_url } ) %]';
- window.location.href = target;
-}
-
-function goto_new_verlag() {
- var target = '[% Catalyst.web_path( '/verlag/new', { 'return_target_form' => self_url } ) %]';
- window.location.href = target;
-}
-
-function goto_new_category() {
- var target = '[% Catalyst.web_path( '/kategorie/new', { 'return_target_form' => self_url } ) %]';
- window.location.href = target;
-}
-
-function goto_new_serie() {
- var target = '[% Catalyst.web_path( '/serie/new', { 'return_target_form' => self_url } ) %]';
- window.location.href = target;
-}
-
-function goto_new_ort() {
- var target = '[% Catalyst.web_path( '/ort/new', { 'return_target_form' => self_url } ) %]';
- window.location.href = target;
-}
-
-//]]></script>
-
-<form method="post" name="book_form" action="[% self_url %]">
-<input type="hidden" name="book_form_sent" value="sent" />
-[%- IF book_edit.id %]<input type="hidden" name="book_id" value="[% book_edit.id | html %]" />[% END %]
- <table class="ftable" cellspacing="0">
- <tr>
- <th colspan="2" class="title">[% book_form_title %]</th>
- </tr><tr>
- <td colspan="2"> </td>
- </tr><tr>
- <th>Autor (-en):</th>
- <td>
- <table class="two_lists" cellspacing="0">
- <tr>
- <th>Verfügbare Autoren</th>
- <th></th>
- <th>Autoren des Buchs</th>
- </tr><tr>
- <td><select name="autor_not" size="12" multiple>
- <option value="">-- Autor oder Autoren wählen --</option>[% FOR autor_id IN autor_list_no %]
- <option value="[% autor_id %]">[% autor_list.$autor_id %]</option>
- [% END %]</select></td>
- <td><input type="submit" name="wird_autor" value="⇒" class="shift_button" title="Wird Autor" /><br /><br />
- <input type="submit" name="nach_oben" value="⇑" class="shift_button" title="Autor in der Reihenfolge nach oben" /><br /><br />
- <input type="button" name="neuer_autor" value="*" class="shift_button" title="Neuer Autor" onclick="goto_new_author();" /><br /><br />
- <input type="submit" name="nach_unten" value="⇓" class="shift_button" title="Autor in der Reihenfolge nach unten" /><br /><br />
- <input type="submit" name="entf_autor" value="⇐" class="shift_button" title="Autor entfernen" />
- </td>
- <td><select name="autor_book" size="12" multiple>
- <option value="">-- Autor oder Autoren entfernen --</option>[% FOR autor_id IN autor_list_book %]
- <option value="[% autor_id %]">[% autor_list.$autor_id %]</option>
- [% END %]</select></td>
- </tr></table></td>
- </tr><tr>
- <th>Buchtitel:</th>
- <td><input type="text" name="book_title" size="60" maxlength="250" value="[% book_edit.title | html %]" /></td>
- </tr><tr>
- <th>Untertitel:</th>
- <td><input type="text" name="book_untertitel" size="60" maxlength="250" value="[% book_edit.untertitel | html %]" /></td>
- </tr><tr>
- <th>Original-Titel:</th>
- <td><input type="text" name="book_original_title" size="60" maxlength="250" value="[% book_edit.original_title | html %]" /></td>
- </tr><tr>
- <th>Verlag:</th>
- <td><select name="verlags_id" size="1">
- <option value="">-- Verlag auswählen --</option>[% FOR verlagsid IN verlags_ids %]
- <option value="[% verlagsid %]"[% IF book_edit.verlags_id == verlagsid %] selected[% END %]>[% verlagsliste.$verlagsid %]</option>[% END %]
- </select> <input type="button" name="neuer_verlag" value="*" class="shift_button" title="Neuer Verlag" onclick="goto_new_verlag();" /></td>
- </tr><tr>
- <th>Aufbewahrungsort:</th>
- <td><select name="orts_id" size="1">
- <option value="">-- Aufbewahrungsort auswählen --</option>[% FOR ortsid IN orts_ids %]
- <option value="[% ortsid %]"[% IF book_edit.orts_id == ortsid %] selected[% END %]>[% ortsliste.$ortsid %]</option>[% END %]
- </select> <input type="button" name="neuer_aufbewahrungsort" value="*" class="shift_button" title="Neuer Aufbewahrungsort" onclick="goto_new_ort();" /></td>
- </tr><tr>
- <th>Bindungsart:</th>
- <td><select name="bindungsart_id" size="1">
- <option value="">-- Bindungsart auswählen --</option>[% FOR bart_id IN bindungsarten_ids %]
- <option value="[% bart_id %]"[% IF book_edit.bindungsart_id == bart_id %] selected[% END %]>[% bindungsartenliste.$bart_id %]</option>[% END %]
- </select></td>
- </tr><tr>
- <th>Kategorie(n):</th>
- <td>
- <table class="two_lists" cellspacing="0">
- <tr>
- <th>Verfügbare Kategorien</th>
- <th></th>
- <th>Kategorien des Buchs</th>
- </tr><tr>
- <td><select name="kategorie_not" size="7" multiple>
- <option value="">-- Kategorie oder Kategorien wählen --</option>[% FOR cat_id IN kategorie_list_no %]
- <option value="[% cat_id %]">[% kategorie_list.$cat_id %]</option>
- [% END %]</select></td>
- <td><input type="submit" name="wird_kategorie" value="⇒" class="shift_button" title="Wird Kategorie" /><br /><br />
- <input type="button" name="neue_kategorie" value="*" class="shift_button" title="Neue Kategorie" onclick="goto_new_category();" /><br /><br />
- <input type="submit" name="entf_kategorie" value="⇐" class="shift_button" title="Kategorie entfernen" />
- </td>
- <td><select name="kategorie_book" size="7" multiple>
- <option value="">-- Kategorie oder Kategorien entfernen --</option>[% FOR cat_id IN kategorie_list_book %]
- <option value="[% cat_id %]">[% kategorie_list.$cat_id %]</option>[% END %]
- </select></td>
- </tr></table></td>
- </tr><tr>
- <th>Buchserien:</th>
- <td>
- <table class="two_lists" cellspacing="0">
- <tr>
- <th>Verfügbare Buchserien</th>
- <th></th>
- <th>Serien des Buchs</th>
- </tr><tr>
- <td><select name="buchserie_not" size="7" multiple>
- <option value="">-- Buchserie wählen --</option>[% FOR serien_id IN serienliste_no %]
- <option value="[% serien_id %]">[% serienliste.$serien_id %]</option>
- [% END %]</select></td>
- <td><input type="submit" name="wird_serie" value="⇒" class="shift_button" title="Wird Serie" /><br /><br />
- <input type="button" name="neue_serie" value="*" class="shift_button" title="Neue Serie" onclick="goto_new_serie();" /><br /><br />
- <input type="submit" name="entf_serie" value="⇐" class="shift_button" title="Serie entfernen" />
- </td>
- <td><select name="serie_book" size="7" multiple>
- <option value="">-- Buchserie entfernen --</option>[% FOR serien_id IN serienliste_book %]
- <option value="[% serien_id %]">[% serienliste.$serien_id %]</option>[% END %]
- </select></td>
- </tr></table></td>
- </tr><tr>
- <th>ISBN:</th>
- <td><input type="text" name="book_isbn" size="20" maxlength="20" value="[% book_edit.isbn | html %]" /></td>
- </tr><tr>
- <th>Buch-Nummer (verlagseigen):</th>
- <td><input type="text" name="book_nr" size="20" maxlength="100" value="[% book_edit.book_nr | html %]" /></td>
- </tr><tr>
- <th>Ausgabejahr:</th>
- <td><input type="text" name="book_ajahr" size="20" maxlength="20" value="[% book_edit.ausgabejahr | html %]" class="zahl" /></td>
- </tr><tr>
- <th>Druckjahr:</th>
- <td><input type="text" name="book_djahr" size="20" maxlength="20" value="[% book_edit.druckjahr | html %]" class="zahl" /></td>
- </tr><tr>
- <th>Seiten:</th>
- <td><input type="text" name="book_seiten" size="20" maxlength="20" value="[% book_edit.seiten | html %]" class="zahl" /></td>
- </tr><tr>
- <th>Preis:</th>
- <td><input type="text" name="book_preis" size="20" maxlength="20" value="[% book_edit.preis | replace('\.', ',') %]" class="zahl" />
- <select name="waehrungs_id" size="1">
- <option value="">-- Währung auswählen --</option>[% FOR waehrungsid IN waehrungs_ids %]
- <option value="[% waehrungsid %]"[% IF book_edit.waehrungs_id == waehrungsid %] selected[% END %]>[% waehrungsliste.$waehrungsid.kuerzel %]</option>[% END %]
- </select> <input type="button" name="neue_waehrung" value="*" class="shift_button" title="Neue Währung" /></td>
- </tr><tr>
- <td colspan="2"> </td>
- </tr><tr>
- <th colspan="2" class="button"><input type="submit" name="do_save" value=" OK " /></th>
- </tr>
- </table>
-</form>
-[%- IF error_message %]
-<div class="error">
-<span class="bold">Fehler:</span> [% error_message %]
-</div>
-[% END -%]
--- /dev/null
+[%#
+ Template fuer Buchangaben
+
+ vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+ $Id$
+ $URL$
+
+-%]
+
+<!-- Book form -->
+
+<script type="text/javascript">//<![CDATA[
+
+function goto_new_author() {
+ var target = '[% Catalyst.web_path( '/autor/new', { 'return_target_form' => self_url } ) %]';
+ window.location.href = target;
+}
+
+function goto_new_verlag() {
+ var target = '[% Catalyst.web_path( '/verlag/new', { 'return_target_form' => self_url } ) %]';
+ window.location.href = target;
+}
+
+function goto_new_category() {
+ var target = '[% Catalyst.web_path( '/kategorie/new', { 'return_target_form' => self_url } ) %]';
+ window.location.href = target;
+}
+
+function goto_new_serie() {
+ var target = '[% Catalyst.web_path( '/serie/new', { 'return_target_form' => self_url } ) %]';
+ window.location.href = target;
+}
+
+function goto_new_ort() {
+ var target = '[% Catalyst.web_path( '/ort/new', { 'return_target_form' => self_url } ) %]';
+ window.location.href = target;
+}
+
+//]]></script>
+
+<form method="post" name="book_form" action="[% self_url %]">
+<input type="hidden" name="book_form_sent" value="sent" />
+[%- IF book_edit.id %]<input type="hidden" name="book_id" value="[% book_edit.id | html %]" />[% END %]
+ <table class="ftable" cellspacing="0">
+ <tr>
+ <th colspan="2" class="title">[% book_form_title %]</th>
+ </tr><tr>
+ <td colspan="2"> </td>
+ </tr><tr>
+ <th>Autor (-en):</th>
+ <td>
+ <table class="two_lists" cellspacing="0">
+ <tr>
+ <th>Verfügbare Autoren</th>
+ <th></th>
+ <th>Autoren des Buchs</th>
+ </tr><tr>
+ <td><select name="autor_not" size="12" multiple>
+ <option value="">-- Autor oder Autoren wählen --</option>[% FOR autor_id IN autor_list_no %]
+ <option value="[% autor_id %]">[% autor_list.$autor_id %]</option>
+ [% END %]</select></td>
+ <td><input type="submit" name="wird_autor" value="⇒" class="shift_button" title="Wird Autor" /><br /><br />
+ <input type="submit" name="nach_oben" value="⇑" class="shift_button" title="Autor in der Reihenfolge nach oben" /><br /><br />
+ <input type="button" name="neuer_autor" value="*" class="shift_button" title="Neuer Autor" onclick="goto_new_author();" /><br /><br />
+ <input type="submit" name="nach_unten" value="⇓" class="shift_button" title="Autor in der Reihenfolge nach unten" /><br /><br />
+ <input type="submit" name="entf_autor" value="⇐" class="shift_button" title="Autor entfernen" />
+ </td>
+ <td><select name="autor_book" size="12" multiple>
+ <option value="">-- Autor oder Autoren entfernen --</option>[% FOR autor_id IN autor_list_book %]
+ <option value="[% autor_id %]">[% autor_list.$autor_id %]</option>
+ [% END %]</select></td>
+ </tr></table></td>
+ </tr><tr>
+ <th>Buchtitel:</th>
+ <td><input type="text" name="book_title" size="60" maxlength="250" value="[% book_edit.title | html %]" /></td>
+ </tr><tr>
+ <th>Untertitel:</th>
+ <td><input type="text" name="book_untertitel" size="60" maxlength="250" value="[% book_edit.untertitel | html %]" /></td>
+ </tr><tr>
+ <th>Original-Titel:</th>
+ <td><input type="text" name="book_original_title" size="60" maxlength="250" value="[% book_edit.original_title | html %]" /></td>
+ </tr><tr>
+ <th>Verlag:</th>
+ <td><select name="verlags_id" size="1">
+ <option value="">-- Verlag auswählen --</option>[% FOR verlagsid IN verlags_ids %]
+ <option value="[% verlagsid %]"[% IF book_edit.verlags_id == verlagsid %] selected[% END %]>[% verlagsliste.$verlagsid %]</option>[% END %]
+ </select> <input type="button" name="neuer_verlag" value="*" class="shift_button" title="Neuer Verlag" onclick="goto_new_verlag();" /></td>
+ </tr><tr>
+ <th>Aufbewahrungsort:</th>
+ <td><select name="orts_id" size="1">
+ <option value="">-- Aufbewahrungsort auswählen --</option>[% FOR ortsid IN orts_ids %]
+ <option value="[% ortsid %]"[% IF book_edit.orts_id == ortsid %] selected[% END %]>[% ortsliste.$ortsid %]</option>[% END %]
+ </select> <input type="button" name="neuer_aufbewahrungsort" value="*" class="shift_button" title="Neuer Aufbewahrungsort" onclick="goto_new_ort();" /></td>
+ </tr><tr>
+ <th>Bindungsart:</th>
+ <td><select name="bindungsart_id" size="1">
+ <option value="">-- Bindungsart auswählen --</option>[% FOR bart_id IN bindungsarten_ids %]
+ <option value="[% bart_id %]"[% IF book_edit.bindungsart_id == bart_id %] selected[% END %]>[% bindungsartenliste.$bart_id %]</option>[% END %]
+ </select></td>
+ </tr><tr>
+ <th>Kategorie(n):</th>
+ <td>
+ <table class="two_lists" cellspacing="0">
+ <tr>
+ <th>Verfügbare Kategorien</th>
+ <th></th>
+ <th>Kategorien des Buchs</th>
+ </tr><tr>
+ <td><select name="kategorie_not" size="7" multiple>
+ <option value="">-- Kategorie oder Kategorien wählen --</option>[% FOR cat_id IN kategorie_list_no %]
+ <option value="[% cat_id %]">[% kategorie_list.$cat_id %]</option>
+ [% END %]</select></td>
+ <td><input type="submit" name="wird_kategorie" value="⇒" class="shift_button" title="Wird Kategorie" /><br /><br />
+ <input type="button" name="neue_kategorie" value="*" class="shift_button" title="Neue Kategorie" onclick="goto_new_category();" /><br /><br />
+ <input type="submit" name="entf_kategorie" value="⇐" class="shift_button" title="Kategorie entfernen" />
+ </td>
+ <td><select name="kategorie_book" size="7" multiple>
+ <option value="">-- Kategorie oder Kategorien entfernen --</option>[% FOR cat_id IN kategorie_list_book %]
+ <option value="[% cat_id %]">[% kategorie_list.$cat_id %]</option>[% END %]
+ </select></td>
+ </tr></table></td>
+ </tr><tr>
+ <th>Buchserien:</th>
+ <td>
+ <table class="two_lists" cellspacing="0">
+ <tr>
+ <th>Verfügbare Buchserien</th>
+ <th></th>
+ <th>Serien des Buchs</th>
+ </tr><tr>
+ <td><select name="buchserie_not" size="7" multiple>
+ <option value="">-- Buchserie wählen --</option>[% FOR serien_id IN serienliste_no %]
+ <option value="[% serien_id %]">[% serienliste.$serien_id %]</option>
+ [% END %]</select></td>
+ <td><input type="submit" name="wird_serie" value="⇒" class="shift_button" title="Wird Serie" /><br /><br />
+ <input type="button" name="neue_serie" value="*" class="shift_button" title="Neue Serie" onclick="goto_new_serie();" /><br /><br />
+ <input type="submit" name="entf_serie" value="⇐" class="shift_button" title="Serie entfernen" />
+ </td>
+ <td><select name="serie_book" size="7" multiple>
+ <option value="">-- Buchserie entfernen --</option>[% FOR serien_id IN serienliste_book %]
+ <option value="[% serien_id %]">[% serienliste.$serien_id %]</option>[% END %]
+ </select></td>
+ </tr></table></td>
+ </tr><tr>
+ <th>ISBN:</th>
+ <td><input type="text" name="book_isbn" size="20" maxlength="20" value="[% book_edit.isbn | html %]" /></td>
+ </tr><tr>
+ <th>Buch-Nummer (verlagseigen):</th>
+ <td><input type="text" name="book_nr" size="20" maxlength="100" value="[% book_edit.book_nr | html %]" /></td>
+ </tr><tr>
+ <th>Ausgabejahr:</th>
+ <td><input type="text" name="book_ajahr" size="20" maxlength="20" value="[% book_edit.ausgabejahr | html %]" class="zahl" /></td>
+ </tr><tr>
+ <th>Druckjahr:</th>
+ <td><input type="text" name="book_djahr" size="20" maxlength="20" value="[% book_edit.druckjahr | html %]" class="zahl" /></td>
+ </tr><tr>
+ <th>Seiten:</th>
+ <td><input type="text" name="book_seiten" size="20" maxlength="20" value="[% book_edit.seiten | html %]" class="zahl" /></td>
+ </tr><tr>
+ <th>Preis:</th>
+ <td><input type="text" name="book_preis" size="20" maxlength="20" value="[% book_edit.preis | replace('\.', ',') %]" class="zahl" />
+ <select name="waehrungs_id" size="1">
+ <option value="">-- Währung auswählen --</option>[% FOR waehrungsid IN waehrungs_ids %]
+ <option value="[% waehrungsid %]"[% IF book_edit.waehrungs_id == waehrungsid %] selected[% END %]>[% waehrungsliste.$waehrungsid.kuerzel %]</option>[% END %]
+ </select> <input type="button" name="neue_waehrung" value="*" class="shift_button" title="Neue Währung" /></td>
+ </tr><tr>
+ <td colspan="2"> </td>
+ </tr><tr>
+ <th colspan="2" class="button"><input type="submit" name="do_save" value=" OK " /></th>
+ </tr>
+ </table>
+</form>
+[%- IF error_message %]
+<div class="error">
+<span class="bold">Fehler:</span> [% error_message %]
+</div>
+[% END -%]
-%]
[%- book_form_title = 'Neues Buch' -%]
-[% PROCESS books/book_form.tt2 %]
+[% PROCESS books/form.tt2 %]
<div class="back">
<h2><a href="[% return_target %]">[% 'Zurück' %]</a></h2>