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 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
26 var t = Date.parse(f.value);
31 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
36 if (f.road_type.value.length == 0 ) {
37 _alertString += "\n- " + _("Road type");
41 document.Aform.submit();
47 <body id="admin_roadtype" class="admin">
48 [% INCLUDE 'header.inc' %]
49 [% INCLUDE 'roadtype-admin-search.inc' %]
50 <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>
52 <div id="doc3" class="yui-t2">
59 [% IF ( roadtypeid ) %]
60 <h1>Modify road type</h1>
62 <h1>New road type</h1>
65 <form action="[% script_name %]" name="Aform" method="post">
66 <input type="hidden" name="op" value="add_validate" />
67 <input type="hidden" name="checked" value="0" />
68 <input type="hidden" name="roadtypeid" value="[% roadtypeid %]" />
70 <fieldset class="rows"><ol>
71 [% IF ( roadtypeid ) %]
73 <span class="label">Road type: </span>[% roadtypeid %]
77 <label for="road_type">Road type: </label>
78 <input type="text" name="road_type" id="road_type" size="80" maxlength="100" value="[% road_type |html %]" />
81 <fieldset class="action">
82 <input class="button" type="button" onclick="Check(this.form)" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/roadtype.pl">Cancel</a>
87 [% IF ( delete_confirm ) %]
88 <div class="dialog alert"><h3>Delete road type "[% road_type %]?"</h3>
90 <th>Road type id: </th>
91 <td>[% roadtypeid %]</td>
93 <tr> <th>Road type: </th>
97 </tr></table><form action="[% script_name %]" method="post">
98 <input type="hidden" name="op" value="delete_confirmed" />
99 <input type="hidden" name="roadtypeid" value="[% roadtypeid %]" /><input type="submit" class="approve" value="Yes, delete" /></form> <form action="[% script_name %]" method="post">
100 <input type="submit" class="deny" value="No, do not delete" /></form></div>
105 <div id="toolbar" class="btn-toolbar">
106 <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>
110 [% IF ( searchfield ) %]
111 Search on [% searchfield %]
114 [% IF ( loop ) %] <table>
117 <th colspan="2"> </th>
119 [% FOREACH loo IN loop %]
120 [% UNLESS ( loop.odd ) %]
121 <tr class="highlight">
125 <td>[% loo.road_type %]</td>
126 <td><a href="[% loo.script_name %]?op=add_form&roadtypeid=[% loo.roadtypeid %]">Edit</a></td>
127 <td><a href="[% loo.script_name %]?op=delete_confirm&roadtypeid=[% loo.roadtypeid %]">Delete</a></td>
136 [% INCLUDE 'admin-menu.inc' %]
139 [% INCLUDE 'intranet-bottom.inc' %]