[% END %]
</title>
[% INCLUDE 'doc-head-close.inc' %]
-<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#branchest").dataTable($.extend(true, {}, dataTablesDefaults, {
"aoColumnDefs": [
- { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
],
"iDisplayLength": 10,
"sPaginationType": "four_button"
tinyMCE.init({
mode : "textareas",
theme : "advanced",
- content_css : "[% themelang %]/css/tinymce.css",
+ content_css : "[% interface %]/[% theme %]/css/tinymce.css",
plugins : "table,save,advhr,advlink,contextmenu",
theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,",
theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap",
<div id="yui-main">
<div class="yui-b">
-[% FOR m IN messages %]
+[% FOREACH m IN messages %]
<div class="dialog [% m.type %]">
[% SWITCH m.code %]
[% CASE 'error_on_update' %]
<li>
[% IF library %]
<span class="label">Library code: </span>
- <input type="hidden" name="branchcode" value="[% library.branchcode %]" />
+ <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
[% library.branchcode %]
[% ELSE %]
<label for="branchcode" class="required">Library code: </label>
- <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode %]" class="required" required="required" />
+ <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode |html %]" class="required" required="required" />
<span class="required">Required</span>
[% END %]
</li>
<li>
<label for="branchname" class="required">Name: </label>
- <input type="text" name="branchname" id="branchname" size="80" value="[% library.branchname %]" class="required" required="required" />
+ <input type="text" name="branchname" id="branchname" size="80" value="[% library.branchname |html %]" class="required" required="required" />
<span class="required">Required</span>
</li>
</ol>
[% END %]
<fieldset class="rows">
<ol>
- <li><label for="branchaddress1">Address line 1: </label><input type="text" name="branchaddress1" id="branchaddress1" size="60" value="[% library.branchaddress1 %]" /></li>
- <li><label for="branchaddress2">Address line 2: </label><input type="text" name="branchaddress2" id="branchaddress2" size="60" value="[% library.branchaddress2 %]" /></li>
- <li><label for="branchaddress3">Address line 3: </label><input type="text" name="branchaddress3" id="branchaddress3" size="60" value="[% library.branchaddress3 %]" /></li>
- <li><label for="branchcity">City: </label><input type="text" name="branchcity" id="branchcity" size="60" value="[% library.branchcity %]" /></li>
- <li><label for="branchstate">State: </label><input type="text" name="branchstate" id="branchstate" size="60" value="[% library.branchstate %]" /></li>
- <li><label for="branchzip">ZIP/Postal code: </label><input type="text" name="branchzip" id="branchzip" size="25" maxlength="25" value="[% library.branchzip %]" /></li>
- <li><label for="branchcountry">Country: </label><input type="text" name="branchcountry" id="branchcountry" size="60" value="[% library.branchcountry %]" /></li>
- <li><label for="branchphone">Phone: </label><input type="text" name="branchphone" id="branchphone" size="60" value="[% library.branchphone %]" /></li>
- <li><label for="branchfax">Fax: </label><input type="text" name="branchfax" id="branchfax" size="60" value="[% library.branchfax %]" /></li>
- <li><label for="branchemail">Email: </label><input type="text" name="branchemail" id="branchemail" class="email" size="80" value="[% library.branchemail %]" /></li>
- <li><label for="branchreplyto">Reply-To (if different to Email): </label> <input type="text" name="branchreplyto" id="branchreplyto" class="email" size="80" value="[% library.branchreplyto %]" /></li>
- <li><label for="branchreturnpath">Return-Path (if different to Email): </label> <input type="text" name="branchreturnpath" id="branchreturnpath" class="email" size="80" value="[% library.branchreturnpath %]" /></li>
- <li><label for="branchurl">URL: </label><input type="text" name="branchurl" id="branchurl" size="80" value="[% library.branchurl %]" class="url" /></li>
- <li><label for="opac_info">OPAC info: </label><textarea name="opac_info" id="opac_info">[% library.opac_info.raw %]</textarea></li>
- <li><label for="branchip">IP: </label><input type="text" name="branchip" id="branchip" size="15" maxlength="15" value="[% library.branchip %]" /> <span class="hint">Can be entered as a single IP, or a subnet such as 192.168.1.*</span></li>
- <li><label for="branchnotes">Notes: </label><input type="text" name="branchnotes" id="branchnotes" size="80" value="[% library.branchnotes %]" /></li>
+ <li><label for="branchaddress1">Address line 1: </label><input type="text" name="branchaddress1" id="branchaddress1" size="60" value="[% library.branchaddress1 |html %]" /></li>
+ <li><label for="branchaddress2">Address line 2: </label><input type="text" name="branchaddress2" id="branchaddress2" size="60" value="[% library.branchaddress2 |html %]" /></li>
+ <li><label for="branchaddress3">Address line 3: </label><input type="text" name="branchaddress3" id="branchaddress3" size="60" value="[% library.branchaddress3 |html %]" /></li>
+ <li><label for="branchcity">City: </label><input type="text" name="branchcity" id="branchcity" size="60" value="[% library.branchcity |html %]" /></li>
+ <li><label for="branchstate">State: </label><input type="text" name="branchstate" id="branchstate" size="60" value="[% library.branchstate |html %]" /></li>
+ <li><label for="branchzip">ZIP/Postal code: </label><input type="text" name="branchzip" id="branchzip" size="25" maxlength="25" value="[% library.branchzip |html %]" /></li>
+ <li><label for="branchcountry">Country: </label><input type="text" name="branchcountry" id="branchcountry" size="60" value="[% library.branchcountry |html %]" /></li>
+ <li><label for="branchphone">Phone: </label><input type="text" name="branchphone" id="branchphone" size="60" value="[% library.branchphone |html %]" /></li>
+ <li><label for="branchfax">Fax: </label><input type="text" name="branchfax" id="branchfax" size="60" value="[% library.branchfax |html %]" /></li>
+ <li><label for="branchemail">Email: </label><input type="text" name="branchemail" id="branchemail" class="email" size="80" value="[% library.branchemail |html %]" /></li>
+ <li><label for="branchreplyto">Reply-To (if different to Email): </label> <input type="text" name="branchreplyto" id="branchreplyto" class="email" size="80" value="[% library.branchreplyto |html %]" /></li>
+ <li><label for="branchreturnpath">Return-Path (if different to Email): </label> <input type="text" name="branchreturnpath" id="branchreturnpath" class="email" size="80" value="[% library.branchreturnpath |html %]" /></li>
+ <li><label for="branchurl">URL: </label><input type="text" name="branchurl" id="branchurl" size="80" value="[% library.branchurl |html %]" class="url" /></li>
+ <li><label for="opac_info">OPAC info: </label><textarea name="opac_info" id="opac_info">[% library.opac_info |html %]</textarea></li>
+ <li><label for="branchip">IP: </label><input type="text" name="branchip" id="branchip" size="15" maxlength="15" value="[% library.branchip |html %]" /> <span class="hint">Can be entered as a single IP, or a subnet such as 192.168.1.*</span></li>
+ <li><label for="branchnotes">Notes: </label><input type="text" name="branchnotes" id="branchnotes" size="80" value="[% library.branchnotes |html %]" /></li>
</ol>
</fieldset>
<fieldset class="action">
[% END %]
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
- <form action="/cgi-bin/koha/admin/branches.pl" method="post">
- <fieldset>
- <legend>Confirm deletion of [% library.branchname %] ([% library.branchcode %])?</legend>
+ <div class="dialog alert">
+ <form action="/cgi-bin/koha/admin/branches.pl" method="post">
+ <h3>Are you sure you want to delete [% library.branchname %] ([% library.branchcode %])?</h3>
<input type="hidden" name="op" value="delete_confirmed" />
- <input type="hidden" name="branchcode" value="[% library.branchcode %]" />
- <input type="hidden" name="branchname" value="[% library.branchname %]">
- <fieldset class="action">
- <input type="submit" value="Delete Library" />
- <a class="cancel" href="/cgi-bin/koha/admin/branches.pl">Cancel</a>
- </fieldset>
- </fieldset>
- </form>
+ <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
+ <input type="hidden" name="branchname" value="[% library.branchname |html %]">
+ <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
+ </form>
+ <form action="/cgi-bin/koha/admin/branches.pl" method="get">
+ <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
+ </form>
+ </div>
[% END %]
[% IF op == 'list' %]
<h3>Libraries</h3>
- [% IF libraries %]
+ [% IF libraries.count %]
<table id="branchest">
<thead>
<tr>
<th>Address</th>
<th>Properties</th>
<th>IP</th>
- <th> </th>
- <th> </th>
+ <th>Actions</th>
</tr>
</thead>
<tbody>
[% FOREACH library IN libraries %]
<tr>
- <td>[% library.branchname %]</td>
- <td>[% library.branchcode %]</td>
+ <td>[% library.branchname |html %]</td>
+ <td>[% library.branchcode |html %]</td>
<td>
[% IF library.branchaddress1 %]
- [% library.branchaddress1 %][% END %]
+ [% library.branchaddress1 |html %][% END %]
[% IF library.branchaddress2 %]
- <br />[% library.branchaddress2 %][% END %]
+ <br />[% library.branchaddress2 |html %][% END %]
[% IF library.branchaddress3 %]
- <br />[% library.branchaddress3 %][% END %]
+ <br />[% library.branchaddress3 |html %][% END %]
[% IF library.branchcity %]
- <br />[% library.branchcity %][% END %][% IF ( library.branchstate ) %],
- [% library.branchstate %][% END %]
+ <br />[% library.branchcity |html %][% END %][% IF ( library.branchstate ) %],
+ [% library.branchstate |html %][% END %]
[% IF library.branchzip %]
- [% library.branchzip %][% END %]
+ [% library.branchzip |html %][% END %]
[% IF library.branchcountry %]
- <br />[% library.branchcountry %][% END %]
+ <br />[% library.branchcountry |html %][% END %]
[% IF library.branchphone %]
- <br />Ph: [% library.branchphone %][% END %]
+ <br />Ph: [% library.branchphone |html %][% END %]
[% IF library.branchfax %]
- <br />Fax: [% library.branchfax %][% END %]
+ <br />Fax: [% library.branchfax |html %][% END %]
[% IF library.branchemail %]
- <br /><a href="mailto:[% library.branchemail %]">[% library.branchemail %]</a>[% END %]
+ <br /><a href="mailto:[% library.branchemail %]">[% library.branchemail |html %]</a>[% END %]
[% IF library.branchurl %]
- <br /><a href="[% library.branchurl %]">[% library.branchurl %]</a>[% END %]
+ <br /><a href="[% library.branchurl %]">[% library.branchurl |html %]</a>[% END %]
[% IF library.opac_info %]
- <br />OPAC Info: <div>[% library.opac_info.raw %]</div>[% END %]
+ <br />OPAC Info: <div>[% library.opac_info %]</div>[% END %]
[% IF library.branchnotes %]
- <br />Notes: [% library.branchnotes %][% END %]
+ <br />Notes: [% library.branchnotes |html %][% END %]
</td>
<td>
[% FOREACH category IN library.get_categories %]
[% END %]
</td>
<td>[% library.branchip %]</td>
- <td>
- <a href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=[% library.branchcode %]">Edit</a>
- </td>
- <td>
- <a href="/cgi-bin/koha/admin/branches.pl?op=delete_confirm&branchcode=[% library.branchcode %]">Delete</a>
+ <td class="actions">
+ <a class="btn btn-mini" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=[% library.branchcode %]"><i class="fa fa-pencil"></i> Edit</a>
+ <a class="btn btn-mini" href="/cgi-bin/koha/admin/branches.pl?op=delete_confirm&branchcode=[% library.branchcode %]"><i class="fa fa-trash"></i> Delete</a>
</td>
</tr>
[% END %]
[% IF group_types %]
[% FOREACH group_type IN group_types %]
<h3>[% IF group_type.categorytype == 'properties' %]Properties[% ELSIF group_type.categorytype == 'searchdomain' %]Search domain[% END %]</h3>
- [% IF group_type.categories %]
+ [% IF group_type.categories.size %]
<table>
<thead>
<tr>
<th>Name</th>
<th>Code</th>
<th>Description</th>
- <th> </th>
- <th> </th>
+ <th>Actions</th>
</tr>
</thead>
<tbody>
<td>[% category.categoryname %]</td>
<td>[% category.categorycode %]</td>
<td>[% category.codedescription %]</td>
- <td>
- <a href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=add_form_category">Edit</a>
- </td>
- <td>
- <a href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=delete_confirm_category">Delete</a>
+ <td class="actions">
+ <a class="btn btn-mini" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=add_form_category"><i class="fa fa-pencil"></i> Edit</a>
+ <a class="btn btn-mini" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=delete_confirm_category"><i class="fa fa-trash"></i> Delete</a>
</td>
</tr>
[% END %]
[% IF op == 'add_form_category' %]
<h3>[% IF category.categorycode %]Edit group [% category.categorycode %][% ELSE %]Add group[% END %]</h3>
- <form action="/cgi-bin/koha/admin/branches.pl" name="Aform" method="post">
+ <form action="/cgi-bin/koha/admin/branches.pl" name="Aform" method="post" class="validated">
<input type="hidden" name="op" value="add_validate_category" />
[% IF category.categorycode %]
<input type="hidden" name="is_a_modif" value="1" />
<li>
[% IF category.categorycode %]
<span class="label">Category code: </span>
- <input type="hidden" name="categorycode" id="categorycode" value="[% category.categorycode %]" />
+ <input type="hidden" name="categorycode" id="categorycode" value="[% category.categorycode |html %]" />
[% category.categorycode %]
[% ELSE %]
- <label for="categorycode">Category code:</label>
- <input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" />
+ <label for="categorycode" class="required">Category code:</label>
+ <input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" required="required" />
+ <span class="required">Required</span>
[% END %]
</li>
<li>
- <label for="categoryname">Name: </label>
- <input type="text" name="categoryname" id="categoryname" size="32" maxlength="32" value="[% category.categoryname %]" />
+ <label for="categoryname" class="required">Name: </label>
+ <input type="text" name="categoryname" id="categoryname" size="32" maxlength="32" value="[% category.categoryname |html %]" class="required" required="required" />
+ <span class="required">Required</span>
</li>
<li>
<label for="codedescription">Description: </label>
- <input type="text" name="codedescription" id="codedescription" size="70" value="[% category.codedescription %]" />
+ <input type="text" name="codedescription" id="codedescription" size="70" value="[% category.codedescription |html %]" />
</li>
<li>
<label for="categorytype">Category type: </label>
[% ELSE %]
<option value="searchdomain">Search domain</option>
<option value="properties">Properties</option>
+
[% END %]
</select>
</li>
</li>
</ol>
</fieldset>
- <fieldset class="action"><input type="submit" value="Update" /></fieldset>
+ <fieldset class="action">
+ <input type="submit" value="Submit" />
+ <a href="/cgi-bin/koha/admin/branches.pl" class="cancel">Cancel</a>
+ </fieldset>
</form>
[% END %]
[% IF op == 'delete_confirm_category' %]
- <div class="dialog message">
- Are you sure you want to delete the group '[% category.codedescription %]' ([% category.categorycode %])?
+ <div class="dialog alert">
+ <h3>Are you sure you want to delete the group '[% category.codedescription %]' ([% category.categorycode %])?</h3>
<form action="/cgi-bin/koha/admin/branches.pl" method="post">
<input type="hidden" name="op" value="delete_confirmed_category" />
- <input type="hidden" name="categorycode" value="[% category.categorycode %]" />
- <input type="submit" value="Delete" />
- <a class="cancel" href="/cgi-bin/koha/admin/branches.pl">Cancel</a>
+ <input type="hidden" name="categorycode" value="[% category.categorycode |html %]" />
+ <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
+ </form>
+ <form action="/cgi-bin/koha/admin/branches.pl" method="get">
+ <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
</form>
</div>
[% END %]