Bug 9633 - Replace YUI button on the itemtypes administration page with Bootstrap
This patch converts the toolbar on the itemtypes administration page to Bootstrap, replacing YUI button code with Bootstrap markup. Small unrelated edit: Button label text case correction. To test, view the itemtypes administration page and confirm that the 'New item type' button looks correct and works correctly. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Comment: Work and look correctly. No errors. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works nicely, no problems found. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
61faf37355
commit
f0efd4de31
1 changed files with 4 additions and 22 deletions
|
@ -127,27 +127,9 @@ Item types administration
|
|||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
|
||||
[% IF ( else ) %]<div id="toolbar">
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
// prepare DOM for YUI Toolbar
|
||||
|
||||
$(document).ready(function() {
|
||||
yuiToolbar();
|
||||
});
|
||||
|
||||
// YUI Toolbar Functions
|
||||
|
||||
function yuiToolbar() {
|
||||
new YAHOO.widget.Button("newitemtype");
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
<ul class="toolbar">
|
||||
<li><a id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form">New item type</a></li>
|
||||
</ul></div>[% ELSE %] [% END %]
|
||||
[% IF ( else ) %]<div id="toolbar" class="btn-toolbar">
|
||||
<a class="btn btn-small" id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form"><i class="icon-plus"></i> New item type</a>
|
||||
</div>[% END %]
|
||||
|
||||
[% IF ( add_form ) %]
|
||||
[% IF ( itemtype ) %]
|
||||
|
@ -254,7 +236,7 @@ Item types administration
|
|||
</fieldset>
|
||||
|
||||
<fieldset class="action">
|
||||
<input type="button" value="Save Changes" onclick="Check(this.form)" />
|
||||
<input type="button" value="Save changes" onclick="Check(this.form)" />
|
||||
<a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue