</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">
//<![CDATA[
$('#icons').tabs();
$("a.delete").click(function(){
- return confirm(_("Are you sure you want to delete this authorised value?"));
+ return confirm(_("Are you sure you want to delete this authorized value?"));
});
});
//]]>
[% IF ( action_add_category ) %]New category[% END %]
</h1>
- [% IF ( action_modify ) %]<div class="note"><strong>NOTE:</strong> If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.</div>[% END %]
+ [% IF ( action_modify ) %]<div class="note"><i class="fa fa-exclamation"></i> <strong>NOTE:</strong> If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.</div>[% END %]
- <form action="/cgi-bin/koha/admin/authorised_values.pl" name="Aform" method="post">
+ <form action="/cgi-bin/koha/admin/authorised_values.pl" name="Aform" method="post" class="validated">
<input type="hidden" name="op" value="add" />
<fieldset class="rows"><ol>
<li>
- [% IF ( action_add_category ) %]<label for="category">Category: </label>
- <input type="text" name="category" id="category" size="32" maxlength="32" class="focus" />
+ [% IF ( action_add_category ) %]
+ <label for="category" class="required">Category: </label>
+ <input type="text" name="category" id="category" size="32" maxlength="32" class="focus required" />
+ <span class="required">Required</span>
[% ELSE %]<span class="label">Category</span>
<input type="hidden" name="category" value="[% category %]" /> [% category %]
[% END %]
[% IF op == 'list' %]
<div id="toolbar" class="btn-toolbar">
- <a id="addauth" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% category %]"><i class="icon-plus"> </i> New authorized value for [% category %]</a>
- <a id="addcat" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form"><i class="icon-plus"> </i> New category</a>
+ <a id="addauth" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% category %]"><i class="fa fa-plus"> </i> New authorized value for [% category %]</a>
+ <a id="addcat" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form"><i class="fa fa-plus"> </i> New category</a>
</div>
<h1>Authorized values</h1>
-<div class="note"><strong>NOTE:</strong> If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.</div>
+<div class="note"><i class="fa fa-exclamation"></i> <strong>NOTE:</strong> If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.</div>
[% FOR m IN messages %]
<div class="dialog [% m.type %]">
[% SWITCH m.code %]
[% CASE 'error_on_update' %]
- An error occurred when updating this authorised values. Perhaps the value already exists.
+ An error occurred when updating this authorized value. Perhaps the value already exists.
[% CASE 'error_on_insert' %]
- An error occurred when inserting this authorised values. Perhaps the value or the category already exists.
+ An error occurred when inserting this authorized value. Perhaps the value or the category already exists.
[% CASE 'error_on_delete' %]
- An error occurred when deleteing this authorised values. Check the logs.
+ An error occurred when deleting this authorized value. Check the logs.
[% CASE 'success_on_update' %]
- Authorised value updated with success.
+ Authorized value updated successfully.
[% CASE 'success_on_insert' %]
- Authorised value inserted with success.
+ Authorized value added successfully.
[% CASE 'success_on_delete' %]
- Authorised value deleted with success.
+ Authorized value deleted successfully.
+ [% CASE 'already_exists' %]
+ This authorized value already exists.
[% CASE %]
[% m.code %]
[% END %]
<th>Description (OPAC)</th>
<th>Icon</th>
<th>Branches limitations</th>
- <th>Edit</th>
- <th>Delete</th>
+ <th>Actions</th>
</tr>
</thead><tbody>
[% FOREACH loo IN loop %]
No limitation
[% END %]
</td>
- <td><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&id=[% loo.id %]">Edit</a></td>
- <td><a class="delete" href="/cgi-bin/koha/admin/authorised_values.pl?op=delete&searchfield=[% searchfield %]&id=[% loo.id %]">Delete</a></td>
+ <td class="actions"><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&id=[% loo.id %]" class="btn btn-mini"><i class="fa fa-pencil"></i> Edit</a>
+ <a class="delete btn btn-mini" href="/cgi-bin/koha/admin/authorised_values.pl?op=delete&searchfield=[% searchfield %]&id=[% loo.id %]"><i class="fa fa-trash"></i> Delete</a></td>
</tr>
[% END %]
</tbody></table>[% ELSE %]