alert(alertString2);
}
}
+ $(document).ready(function() {
+ $('#icons > ul').tabs();
+ });
//]]>
</script>
+<style type="text/css">
+ fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
+ fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : transparent; }
+ fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
+</style>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- /TMPL_IF -->
<li>
<label for="description">Description</label><input type="text" id="description" name="description" size="48" maxlength="80" value="<!-- TMPL_VAR name="description" escape="HTML" -->" /> </li>
- <li><fieldset>
- <legend>Image: </legend>
+ <!-- TMPL_IF NAME="noItemTypeImages" -->
+ <li><span class="label">Image: </span>Item type images are disabled. To enable them, turn off the <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=all&searchfield=noItemTypeImages">noItemTypeImages system preference</a></li></ol>
+ <!-- TMPL_ELSE --></ol>
+ <div id="icons" class="toptabs">
+ <h5 style="margin-left:10px;">Choose an Icon:</h5>
+ <ul>
+ <li><a href="/cgi-bin/koha/admin/itemtypes.pl#none">None</a></li>
+ <!-- TMPL_LOOP NAME="imagesets" -->
+ <li><a href="/cgi-bin/koha/admin/itemtypes.pl#<!-- TMPL_VAR NAME="imagesetname" -->"><!-- TMPL_VAR name="imagesetname" --></a></li>
+ <!-- /TMPL_LOOP -->
+ <li><a href="/cgi-bin/koha/admin/itemtypes.pl#remote">Remote Image</a></li>
+ </ul>
+ </div>
+ <div id="none"><ul>
+ <li><label for="noimage">No image: </label><input type="radio" name="image" id="noimage" value="removeImage" /></li>
+ </ul>
+ <br class="clear" /></div>
- <ol>
- <!-- TMPL_LOOP NAME="IMAGESLOOP" -->
+ <!-- TMPL_LOOP NAME="imagesets" -->
+ <div id="<!-- TMPL_VAR NAME="imagesetname" -->"><ul>
+ <!-- TMPL_LOOP NAME="images" -->
<li style="float: none; display: inline; clear : none; width: auto;">
- <label> <!-- TMPL_IF NAME="KohaImageSrc" -->
- <img src="<!-- TMPL_VAR name="KohaImageSrc" -->" alt="<!-- TMPL_VAR name="KohaImageSrc" -->" title="<!-- TMPL_VAR name="KohaImageSrc" -->" />
+ <label> <!-- TMPL_IF NAME="StaffImageUrl" -->
+ <img src="<!-- TMPL_VAR name="StaffImageUrl" -->" alt="<!-- TMPL_VAR name="StaffImageUrl" -->" title="<!-- TMPL_VAR name="StaffImageUrl" -->" />
<!-- TMPL_ELSE -->
<!-- /TMPL_IF -->
<!-- TMPL_IF name="checked" -->
</label>
</li>
<!-- /TMPL_LOOP -->
- <li>
- <label for="remote_image_check"> Remote image:</label>
+ </ul>
+ <br class="clear" />
+ </div>
+ <!-- /TMPL_LOOP -->
+<div id="remote"><ul>
+<li> <label for="remote_image_check"> Remote image:</label>
<!-- TMPL_IF name="remote_image" -->
<input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
<!-- TMPL_ELSE -->
<input type="radio" id="remote_image_check" name="image" value="remoteImage" />
- <!-- /TMPL_IF -->
-
- <input type="text" name="remoteImage" size="48" maxlength="200" value="<!-- TMPL_VAR name="remote_image" -->" onmousedown="document.getElementById('remote_image_check').checked = true;" />
-
- <!-- TMPL_IF name="remote_image" -->
+ <!-- /TMPL_IF --><input type="text" name="remoteImage" size="48" maxlength="200" value="<!-- TMPL_VAR name="remote_image" -->" onmousedown="document.getElementById('remote_image_check').checked = true;" /> <!-- TMPL_IF name="remote_image" -->
<img src="<!-- TMPL_VAR name="remote_image" -->" alt="" />
- <!-- /TMPL_IF -->
- </li>
- <li>
- <label for="noimage">No image: </label><input type="radio" name="image" id="noimage" value="removeImage" />
- </li>
-
- </ol>
- </fieldset>
- </li>
+ <!-- /TMPL_IF --></li>
+</ul>
+ <br class="clear" />
+</div>
+<!-- /TMPL_IF -->
+<ol>
<li>
<label for="notforloan">Not for loan</label> <!-- TMPL_IF name="notforloan" -->
<input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
</ol>
</fieldset>
- <p id="action">
+ <fieldset class="action">
<input type="button" value="Save Changes" onclick="Check(this.form)" />
- </p>
+ <a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a>
+ </fieldset>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="delete_confirm" -->
-<!-- TMPL_IF name="total" --><div class="error">This record is used <!-- TMPL_VAR name="total" --> times. Deletion is not possible.<!-- /TMPL_IF -->
-<div class="table details"> <table>
- <caption><!-- TMPL_IF name="total" -->Cannot Delete Item Type<!-- TMPL_ELSE -->Delete Item Type '<!-- TMPL_VAR name="itemtype" -->'?<!-- /TMPL_IF --></caption>
+<!-- TMPL_IF name="total" --><div class="dialog message">
+<h3>Cannot Delete Item Type</h3>
+<p><strong>This record is used <!-- TMPL_VAR name="total" --> times</strong>. Deletion is not possible.</p>
+<!-- TMPL_ELSE --><div class="dialog alert">
+<h3>Delete Item Type '<!-- TMPL_VAR name="itemtype" -->'?</h3>
+<!-- /TMPL_IF -->
+<table>
<tr>
- <th>Item type</th>
+ <th scope="row">Item type</th>
<td><!-- TMPL_VAR name="itemtype" --></td>
</tr>
- <tr><th>Description</th><td><!-- TMPL_VAR name="description" --></td></tr>
- <tr><th>Loan length</th><td><!-- TMPL_VAR name="loanlength" --></td></tr>
- <tr><th>Renewals</th><td><!-- TMPL_IF name="renewalsallowed" -->Allowed<!-- TMPL_ELSE -->Not allowed<!-- /TMPL_IF --></td></tr>
-<!-- Hide from NPL --><tr><th>Rental charge</th><td><!-- TMPL_VAR name="rentalcharge" --></td></tr><!-- Hide from NPL --></table>
+ <tr><th scope="row">Description</th><td><!-- TMPL_VAR name="description" --></td></tr>
+ <tr><th scope="row">Loan length</th><td><!-- TMPL_VAR name="loanlength" --></td></tr>
+ <tr><th scope="row">Renewals</th><td><!-- TMPL_IF name="renewalsallowed" -->Allowed<!-- TMPL_ELSE -->Not allowed<!-- /TMPL_IF --></td></tr>
+<tr><th scope="row">Rental charge</th><td><!-- TMPL_VAR name="rentalcharge" --></td></tr></table>
<form action="<!-- TMPL_VAR name="script_name" -->" method="post">
<input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="<!-- TMPL_VAR name="itemtype" -->" /><!-- TMPL_IF name="total" -->
- </form><form action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" value="OK" /></form>
+ </form>
+
+ <form action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" class="approve" value="OK" /></form>
<!-- TMPL_ELSE -->
- <input type="submit" value="Delete this Item Type" /></form> <form action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" value="Do Not Delete" /></form>
+ <input type="submit" class="approve" value="Delete this Item Type" /></form> <form action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" class="deny" value="Do Not Delete" /></form>
<!-- /TMPL_IF -->
-
+</div>
<!-- /TMPL_IF -->
<h2>Item Types Administration</h2>
<table>
<tr>
- <th>Image</th>
+ <!-- TMPL_UNLESS NAME="noItemTypeImages" --><th>Image</th><!-- /TMPL_UNLESS -->
<th>Code</th>
<th>Description</th>
<th>Not for loan</th>
- <th>Renewable</th>
<th>Charge</th>
<th>Actions</th>
</tr>
<!-- TMPL_LOOP name="loop" -->
- <!-- TMPL_IF NAME="toggle" -->
- <tr>
- <!-- TMPL_ELSE -->
+ <!-- TMPL_UNLESS name="__odd__" -->
<tr class="highlight">
+ <!-- TMPL_ELSE -->
+ <tr>
<!-- /TMPL_IF -->
- <td><img src="<!-- TMPL_VAR name="imageurl" -->" alt="" /></td>
+ <!-- TMPL_UNLESS NAME="noItemTypeImages" --> <td><img src="<!-- TMPL_VAR name="imageurl" -->" alt="" /></td><!-- /TMPL_UNLESS -->
<td>
<a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&itemtype=<!-- TMPL_VAR name="itemtype" escape="HTML" -->">
<!-- TMPL_VAR name="itemtype" -->
<td><!-- TMPL_VAR name="description" --></td>
<td><!-- TMPL_IF NAME="notforloan" -->Yes<!-- TMPL_ELSE --> <!-- /TMPL_IF --></td>
<td>
- <!-- TMPL_IF NAME="renewalsallowed" -->
- <!-- TMPL_VAR name="renewalsallowed" --> times
- <!-- TMPL_ELSE -->
- No
- <!-- /TMPL_IF -->
- </td>
- <td>
<!-- TMPL_UNLESS name="notforloan" -->
<!-- TMPL_VAR NAME="rentalcharge" -->
<!-- /TMPL_UNLESS -->