1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › [% IF ( add_form ) %]Road types › [% IF ( roadtypeid ) %] Modify road type[% ELSE %] New road type[% END %][% ELSE %][% IF ( delete_confirm ) %]Road types › Confirm deletion of road type[% ELSE %] Road type[% END %][% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
6 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7 function isNotNull(f,noalert) {
8 if (f.value.length == 0) {
13 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
14 function isNum(v,maybenull) {
15 var n = new Number(v.value);
19 if (maybenull == 0 && v.value =='') {
24 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
29 if (f.road_type.value.length == 0 ) {
30 _alertString += "\n- " + _("Road type");
34 document.Aform.submit();
40 <body id="admin_roadtype" class="admin">
41 [% INCLUDE 'header.inc' %]
42 [% INCLUDE 'roadtype-admin-search.inc' %]
43 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( add_form ) %]<a href="/cgi-bin/koha/admin/roadtype.pl">Road types</a> › [% IF ( roadtypeid ) %] Modify road type[% ELSE %] New road type[% END %][% ELSE %][% IF ( delete_confirm ) %]<a href="/cgi-bin/koha/admin/roadtype.pl">Road types</a> › Confirm deletion of road type[% ELSE %] Road type[% END %][% END %]</div>
45 <div id="doc3" class="yui-t2">
52 [% IF ( roadtypeid ) %]
53 <h1>Modify road type</h1>
55 <h1>New road type</h1>
58 <form action="[% script_name %]" name="Aform" method="post">
59 <input type="hidden" name="op" value="add_validate" />
60 <input type="hidden" name="checked" value="0" />
61 <input type="hidden" name="roadtypeid" value="[% roadtypeid %]" />
63 <fieldset class="rows"><ol>
64 [% IF ( roadtypeid ) %]
66 <span class="label">Road type: </span>[% roadtypeid %]
70 <label for="road_type">Road type: </label>
71 <input type="text" name="road_type" id="road_type" size="80" maxlength="100" value="[% road_type |html %]" />
74 <fieldset class="action">
75 <input class="button" type="button" onclick="Check(this.form)" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/roadtype.pl">Cancel</a>
80 [% IF ( delete_confirm ) %]
81 <div class="dialog alert"><h3>Delete road type "[% road_type %]?"</h3>
83 <th>Road type id: </th>
84 <td>[% roadtypeid %]</td>
86 <tr> <th>Road type: </th>
90 </tr></table><form action="[% script_name %]" method="post">
91 <input type="hidden" name="op" value="delete_confirmed" />
92 <input type="hidden" name="roadtypeid" value="[% roadtypeid %]" /><input type="submit" class="approve" value="Yes, delete" /></form> <form action="[% script_name %]" method="post">
93 <input type="submit" class="deny" value="No, do not delete" /></form></div>
98 <div id="toolbar" class="btn-toolbar">
99 <a class="btn btn-small" id="addroad" href="/cgi-bin/koha/admin/roadtype.pl?op=add_form"><i class="icon-plus"></i> New road type</a>
103 [% IF ( searchfield ) %]
104 Search on [% searchfield %]
107 [% IF ( loop ) %] <table>
110 <th colspan="2"> </th>
112 [% FOREACH loo IN loop %]
113 [% UNLESS ( loop.odd ) %]
114 <tr class="highlight">
118 <td>[% loo.road_type %]</td>
119 <td><a href="[% loo.script_name %]?op=add_form&roadtypeid=[% loo.roadtypeid %]">Edit</a></td>
120 <td><a href="[% loo.script_name %]?op=delete_confirm&roadtypeid=[% loo.roadtypeid %]">Delete</a></td>
129 [% INCLUDE 'admin-menu.inc' %]
132 [% INCLUDE 'intranet-bottom.inc' %]