Bugzilla – Attachment 192991 Details for
Bug 41826
Update item type and authorized values pages to use grid layout for forms
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41826: Update item type and authorized values pages to use grid layout for forms
Bug-41826-Update-item-type-and-authorized-values-p.patch (text/plain), 36.19 KB, created by
Owen Leonard
on 2026-02-11 21:28:02 UTC
(
hide
)
Description:
Bug 41826: Update item type and authorized values pages to use grid layout for forms
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-02-11 21:28:02 UTC
Size:
36.19 KB
patch
obsolete
>From 087d54b0c104e70be724c3c4dd3d4c5d2052717f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 11 Feb 2026 16:21:00 -0500 >Subject: [PATCH] Bug 41826: Update item type and authorized values pages to > use grid layout for forms > >This patch updates the authorized values and item types administration >templates with new markup and CSS for layout forms using CSS grids. > >To test, apply the patch rebuild the staff interface CSS. > >Check the following pages, confirming that the "New" and >"Edit" versions of the form look correct in each case: > >- Administration -> Authorized values >- Administration -> Item types > >Sponsored-by: Athens County Public Libraries >--- > .../prog/en/includes/admin-icon-selection.inc | 24 +- > .../en/modules/admin/authorised_values.tt | 109 ++++--- > .../prog/en/modules/admin/itemtypes.tt | 284 +++++++++++------- > 3 files changed, 270 insertions(+), 147 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc >index f1b8078e7ef..e31033634b0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc >@@ -71,15 +71,21 @@ > [% SET bt_active = 0 %] > [% END %] > [% WRAPPER tab_panel tabname="remote" %] >- <label for="remote_image_check"> Remote image:</label> >- [% IF image_location.match('^http') %] >- <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" /> >- <input type="text" name="remoteImage" size="48" maxlength="200" value="[% image_location | html %]" onmousedown="document.getElementById('remote_image_check').checked = true;" /> >- <img src="[% image_location | html %]" alt="" /> >- [% ELSE %] >- <input type="radio" id="remote_image_check" name="image" value="remoteImage" /> >- <input type="text" name="remoteImage" size="48" maxlength="200" value="" onmousedown="document.getElementById('remote_image_check').checked = true;" /> >- [% END %] >+ <div class="fg-row"> >+ <div class="fg-label"> >+ <label for="remote_image_check"> Remote image:</label> >+ </div> >+ <div class="fg-input"> >+ [% IF image_location.match('^http') %] >+ <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" /> >+ <input type="text" name="remoteImage" maxlength="200" value="[% image_location | html %]" onmousedown="document.getElementById('remote_image_check').checked = true;" /> >+ <img src="[% image_location | html %]" alt="" /> >+ [% ELSE %] >+ <input type="radio" id="remote_image_check" name="image" value="remoteImage" /> >+ <input type="text" name="remoteImage" maxlength="200" value="" onmousedown="document.getElementById('remote_image_check').checked = true;" /> >+ [% END %] >+ </div> >+ </div> > [% END %] > [% END # /tab_panels %] > [% END # /tabs#icons %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >index 7e9807e9abe..9235ba3ed93 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >@@ -52,8 +52,8 @@ > clear: both; > } > .authval-icons label { >- float: none; >- width: auto; >+ display: block; >+ padding: 0.5rem; > } > #authorised_value:invalid { > color: red; >@@ -129,43 +129,66 @@ > > <form action="/cgi-bin/koha/admin/authorised_values.pl" name="Aform" id="Aform" method="post" class="validated"> > [% INCLUDE 'csrf-token.inc' %] >- <fieldset class="rows"> >+ <fieldset class="fg"> > [% IF action_add_category %] >- <ol> >- <li> >+ <div class="fg-row"> >+ <div class="fg-label"> > <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> >+ </div> >+ <div class="fg-input"> >+ <input type="text" name="category" id="category" maxlength="32" class="focus required" /> > <input type="hidden" name="op" value="cud-add_category" /> >- </li> >- <li> <input type="checkbox" name="is_integer_only" id="is_integer_only" /><label for="is_integer_only">Restrict value to numbers only</label> </li> >- </ol> >+ </div> >+ <div class="required">Required</div> >+ </div> >+ <div class="fg-row input-checkbox"> >+ <div class="fg-label"> >+ <label for="is_integer_only">Restrict value to numbers only</label> >+ </div> >+ <div class="fg-input"> >+ <input type="checkbox" name="is_integer_only" id="is_integer_only" /> >+ </div> >+ </div> > [% ELSIF op == 'edit_form' %] >- <ol> >- <li> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="category" class="required">Category: </label> >+ </div> >+ <div class="fg-input"> > <input type="text" disabled value="[% category_name | html %]" /> >- </li> >- <li> >+ </div> >+ </div> >+ <div class="fg-row input-checkbox"> >+ <div class="fg-label"> >+ <label for="is_integer_only">Restrict value to numbers only</label> >+ </div> >+ <div class="fg-input"> > [% IF category.is_integer_only %] >- <input type="checkbox" checked name="is_integer_only" id="is_integer_only" /><label for="is_integer_only">Restrict value to numbers only</label> >+ <input type="checkbox" checked name="is_integer_only" id="is_integer_only" /> > [% ELSE %] >- <input type="checkbox" name="is_integer_only" id="is_integer_only" /><label for="is_integer_only">Restrict value to numbers only</label> >+ <input type="checkbox" name="is_integer_only" id="is_integer_only" /> > [% END %] >- </li> >- </ol> >- <input type="hidden" name="op" value="cud-edit_category" /> >- <input type="hidden" name="category" value="[% category_name | html %]" /> >- <input type="hidden" name="searchfield" value="[% category_name | html %]" /> >+ </div> >+ <input type="hidden" name="op" value="cud-edit_category" /> >+ <input type="hidden" name="category" value="[% category_name | html %]" /> >+ <input type="hidden" name="searchfield" value="[% category_name | html %]" /> >+ </div> > [% ELSE %] >- <ol> >- <li> >+ <div class="fg-row"> >+ <div class="fg-label"> > <span class="label">Category</span> >+ </div> >+ <div class="fg-text"> >+ [% category_name | html %] > <input type="hidden" name="op" value="cud-add" /> >- <input type="hidden" name="category" value="[% category_name | html %]" /> [% category_name | html %] >- </li> >- <li> >+ <input type="hidden" name="category" value="[% category_name | html %]" /> >+ </div> >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="authorised_value">Authorized value: </label> >+ </div> >+ <div class="fg-input"> > [% IF ( action_modify ) %] > <input type="hidden" id="id" name="id" value="[% av.id | html %]" /> > [% END %] >@@ -186,18 +209,30 @@ > [% ELSE %] > <input type="text" id="authorised_value" name="authorised_value" value="[% av.authorised_value | html %]" maxlength="80" class="focus" /> > [% END %] >- </li> >- <li> >+ </div> >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="lib">Description: </label> >+ </div> >+ <div class="fg-input"> > <input type="text" name="lib" id="lib" value="[% av.lib | html %]" maxlength="200" /> >- </li> >- <li> >+ </div> >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="lib_opac">Description (OPAC): </label> >+ </div> >+ <div class="fg-input"> > <input type="text" name="lib_opac" id="lib_opac" value="[% av.lib_opac | html %]" maxlength="200" /> >- </li> >- <li >- ><label for="library_limitation">Library limitations: </label> >- <select id="library_limitation" name="branches" multiple size="10"> >+ </div> >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> >+ <label for="library_limitation">Library limitations: </label> >+ </div> >+ <div class="fg-input"> >+ <select id="library_limitation" name="branches" multiple> > [% FOREACH branch IN branches_loop %] > [% IF ( branch.selected ) %] > <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option> >@@ -206,9 +241,9 @@ > [% END %] > [% END %] > </select> >- <div class="hint">Limits the use of this authorized value to the selected libraries.</div> >- </li> >- </ol> >+ </div> >+ <div class="hint">Limits the use of this authorized value to the selected libraries.</div> >+ </div> > > [% INCLUDE 'admin-icon-selection.inc' context = "authval" %] > [% END # /IF action_add_category %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >index 2c503087ff0..bb69e1b4930 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -37,20 +37,14 @@ > [% INCLUDE 'doc-head-close.inc' %] > [% FILTER collapse %] > <style> >- fieldset.rows div.toptabs li { >- clear: none; >- margin-right: 0.4em; >- padding-bottom: 0; >- width: auto; >- } > .itemtype-icons { > display: flex; > flex-wrap: wrap; > clear: both; > } > .itemtype-icons label { >- float: none; >- width: auto; >+ display: block; >+ padding: 0.5rem; > } > </style> > [% END %] >@@ -154,22 +148,34 @@ > <form action="/cgi-bin/koha/admin/itemtypes.pl" name="Aform" method="post" id="itemtypeentry"> > [% INCLUDE 'csrf-token.inc' %] > <input type="hidden" name="op" value="cud-add_validate" /> >- <fieldset class="rows"> >- <ol> >- [% IF itemtype %] >- <li> >+ <fieldset class="fg"> >+ [% IF itemtype %] >+ <div class="fg-row"> >+ <div class="fg-label"> >+ <span class="label">Item type: </span> >+ </div> >+ <div class="fg-text"> >+ <input type="hidden" name="itemtype" value="[% itemtype.itemtype | html %]" /> > <input type="hidden" name="is_a_modif" value="1" /> >- <span class="label">Item type: </span> <input type="hidden" name="itemtype" value="[% itemtype.itemtype | html %]" /> > [% itemtype.itemtype | html %] >- </li> >- [% ELSE %] >- <li> >+ </div> >+ </div> >+ [% ELSE %] >+ <div class="fg-row input-sm"> >+ <div class="fg-label"> > <label for="itemtype" class="required">Item type: </label> >- <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" required="required" class="focus" /> <span class="required">Required</span> >- </li> >- [% END %] >- <li> >+ </div> >+ <div class="fg-input"> >+ <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" required="required" class="focus" /> >+ </div> >+ <div class="required">Required</div> >+ </div> >+ [% END %] >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="parent_type">Parent item type: </label> >+ </div> >+ <div class="fg-input"> > [% IF !is_a_parent && parent_types %] > <select name="parent_type" id="parent_type"> > <option value="">None</option> >@@ -188,17 +194,25 @@ > <input type="text" id="parent_type" value="[% parent_type | html %]" name="parent_type" size="10" maxlength="10" disabled /> > <p>No available parent types</p> > [% END %] >- <div class="hint">Defining a parent type will apply checkout limits for all children as described on the circulation rules page.</div> >- </li> >- <li> >+ </div> >+ <div class="hint">Defining a parent type will apply checkout limits for all children as described on the circulation rules page.</div> >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="description" class="required">Description: </label> >- <input type="text" id="description" name="description" size="48" value="[% itemtype.description | html %]" required="required" /> <span class="required">Required</span> >- [% IF can_be_translated %] >+ </div> >+ <div class="fg-input"> <input type="text" id="description" name="description" size="48" value="[% itemtype.description | html %]" required="required" /> <span class="required">Required</span> </div> >+ [% IF can_be_translated %] >+ <div class="hint"> > <a href="/cgi-bin/koha/admin/localization.pl?entity=itemtypes&code=[% itemtype.itemtype | uri %]"> <i class="fa-solid fa-pencil" aria-hidden="true"></i> Translate into other languages </a> >- [% END %] >- </li> >- <li> >+ </div> >+ [% END %] >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="searchcategory">Search category: </label> >+ </div> >+ <div class="fg-input"> > <select id="searchcategory" name="searchcategory"> > <option value="">None</option> > [% FOREACH cat IN searchcategory %] >@@ -209,113 +223,164 @@ > [% END %] > [% END %] > </select> >- <div class="hint"> >- [% IF ( CAN_user_parameters_manage_auth_values ) %] >- <span>Options are defined by the authorized value <a target="_blank" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=ITEMTYPECAT">ITEMTYPECAT</a>.</span> >- [% ELSE %] >- <span>Options are defined by the authorized value ITEMTYPECAT.</span> >- [% END %] >- </div> >- </li> >- [% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %] >- <li> >- <span class="label">Image: </span>Item type images are disabled. To enable them, turn off the >+ </div> >+ <div class="hint"> >+ [% IF ( CAN_user_parameters_manage_auth_values ) %] >+ <span>Options are defined by the authorized value <a target="_blank" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=ITEMTYPECAT">ITEMTYPECAT</a>.</span> >+ [% ELSE %] >+ <span>Options are defined by the authorized value ITEMTYPECAT.</span> >+ [% END %] >+ </div> >+ </div> >+ [% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %] >+ <div class="fg-row"> >+ <div class="fg-label"> <span class="label">Image: </span>Item type images are disabled. To enable them, turn off the </div> >+ <div class="fg-text"> > <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=noItemTypeImages">noItemTypeImages or OpacNoItemTypeImages system preferences</a> >- </li> >- [% END %] >- </ol> >+ </div> >+ </div> >+ [% END %] > > [% UNLESS Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') %] > [% INCLUDE 'admin-icon-selection.inc' context = "itemtype" %] > [% END %] > >- <ol class="oladditemtype"> >- <li> >+ <div class="fg-row input-checkbox"> >+ <div class="fg-label"> > <label for="hideinopac">Hide in OPAC: </label> >+ </div> >+ <div class="fg-input"> > [% IF ( itemtype.hideinopac ) %] > <input type="checkbox" id="hideinopac" name="hideinopac" checked="checked" value="1" /> > [% ELSE %] > <input type="checkbox" id="hideinopac" name="hideinopac" value="1" /> > [% END %] >- <span class="hint">If checked, items of this type will be hidden as filters in OPAC's advanced search.</span> >- </li> >- <li> >+ </div> >+ <div class="hint">If checked, items of this type will be hidden as filters in OPAC's advanced search.</div> >+ </div> >+ <div class="fg-row input-checkbox"> >+ <div class="fg-label"> > <label for="notforloan">Not for loan: </label> >+ </div> >+ <div class="fg-input"> > [% IF itemtype.notforloan %] > <input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" /> > [% ELSE %] > <input type="checkbox" id="notforloan" name="notforloan" value="1" /> > [% END %] >- <span class="hint">If checked, no item of this type can be issued. If not checked, every item of this type can be issued unless notforloan is set for a specific item.</span> >- </li> >- <li> >+ </div> >+ <div class="hint">If checked, no item of this type can be issued. If not checked, every item of this type can be issued unless notforloan is set for a specific item.</div> >+ </div> >+ <div class="fg-row input-checkbox"> >+ <div class="fg-label"> > <label for="automatic_checkin">Automatic check-in: </label> >+ </div> >+ <div class="fg-input"> > [% IF itemtype.automatic_checkin %] > <input type="checkbox" id="automatic_checkin" name="automatic_checkin" checked="checked" value="1" /> > [% ELSE %] > <input type="checkbox" id="automatic_checkin" name="automatic_checkin" value="1" /> > [% END %] >- <span class="hint" >- >If checked, items will be automatically checked in once they've reached their due date. This feature requires the <code>misc/cronjobs/automatic_checkin.pl</code> cronjob. Ask your system administrator to >- schedule it.</span >- > >- </li> >- <li> >+ </div> >+ <div class="hint"> >+ If checked, items will be automatically checked in once they've reached their due date. This feature requires the <code>misc/cronjobs/automatic_checkin.pl</code> cronjob. Ask your system administrator to schedule it. >+ </div> >+ </div> >+ <div class="fg-row input-checkbox"> >+ <div class="fg-label"> > <label for="bookable">Bookable: </label> >+ </div> >+ <div class="fg-input"> > [% IF itemtype.bookable %] > <input type="checkbox" id="bookable" name="bookable" checked="checked" value="1" /> > [% ELSE %] > <input type="checkbox" id="bookable" name="bookable" value="1" /> > [% END %] >- <span class="hint">If checked, all items of this type will be enabled for future bookings unless overridden at the item level.</span> >- </li> >- <li> >+ </div> >+ <div class="hint">If checked, all items of this type will be enabled for future bookings unless overridden at the item level.</div> >+ </div> >+ <div class="fg-row input-sm"> >+ <div class="fg-label"> > <label for="rentalcharge">Rental charge: </label> >- <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% itemtype.rentalcharge | $Price on_editing => 1 %]" min="0" /> >- <div class="hint">This fee is charged once per checkout/renewal per item</div> >- </li> >- <li> >+ </div> >+ <div class="fg-input"> >+ <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% itemtype.rentalcharge | $Price on_editing => 1 %]" /> >+ </div> >+ <div class="hint">This fee is charged once per checkout/renewal per item</div> >+ </div> >+ <div class="fg-row input-sm"> >+ <div class="fg-label"> > <label for="rentalcharge_daily">Daily rental charge: </label> >- <input type="text" id="rentalcharge_daily" name="rentalcharge_daily" size="10" value="[% itemtype.rentalcharge_daily | $Price on_editing => 1 %]" min="0" /> >- <div class="hint">This fee is charged at checkout/renewal time for each day between the checkout/renewal date and due date for loans specified in days.</div> >- </li> >- <li> >+ </div> >+ <div class="fg-input"> >+ <input type="text" id="rentalcharge_daily" name="rentalcharge_daily" size="10" value="[% itemtype.rentalcharge_daily | $Price on_editing => 1 %]" /> >+ </div> >+ <div class="hint">This fee is charged at checkout/renewal time for each day between the checkout/renewal date and due date for loans specified in days.</div> >+ </div> >+ <div class="fg-row input-checkbox"> >+ <div class="fg-label"> > <label for="rentalcharge_daily_calendar">Daily rentals use calendar: </label> >+ </div> >+ <div class="fg-input"> > [% IF itemtype.rentalcharge_daily_calendar %] > <input type="checkbox" id="rentalcharge_daily_calendar" name="rentalcharge_daily_calendar" checked="checked" value="1" /> > [% ELSE %] > <input type="checkbox" id="rentalcharge_daily_calendar" name="rentalcharge_daily_calendar" value="1" /> > [% END %] >- <span class="hint">If checked, daily charge will be calculated using the calendar to exclude holidays. If not checked, the fee will be calculated based on the number of days until due, directly.</span> >- </li> >- <li> >+ </div> >+ <div class="hint">If checked, daily charge will be calculated using the calendar to exclude holidays. If not checked, the fee will be calculated based on the number of days until due, directly.</div> >+ </div> >+ <div class="fg-row input-sm"> >+ <div class="fg-label"> > <label for="rentalcharge_hourly">Hourly rental charge: </label> >- <input type="text" id="rentalcharge_hourly" name="rentalcharge_hourly" size="10" value="[% itemtype.rentalcharge_hourly | $Price on_editing => 1 %]" min="0" /> >- <div class="hint">This fee is charged at checkout/renewal time for each hour between the checkout/renewal date and due date for loans specified in hours.</div> >- </li> >- <li> >+ </div> >+ <div class="fg-input"> >+ <input type="text" id="rentalcharge_hourly" name="rentalcharge_hourly" size="10" value="[% itemtype.rentalcharge_hourly | $Price on_editing => 1 %]" /> >+ </div> >+ <div class="hint">This fee is charged at checkout/renewal time for each hour between the checkout/renewal date and due date for loans specified in hours.</div> >+ </div> >+ <div class="fg-row input-checkbox"> >+ <div class="fg-label"> > <label for="rentalcharge_hourly_calendar">Hourly rentals use calendar: </label> >+ </div> >+ <div class="fg-input"> > [% IF itemtype.rentalcharge_hourly_calendar %] > <input type="checkbox" id="rentalcharge_hourly_calendar" name="rentalcharge_hourly_calendar" checked="checked" value="1" /> > [% ELSE %] > <input type="checkbox" id="rentalcharge_hourly_calendar" name="rentalcharge_hourly_calendar" value="1" /> > [% END %] >- <span class="hint">If checked, hourly charge will be calculated using the calendar to exclude holidays. If not checked, the fee will be calculated based on the number of hours until due, directly.</span> >- </li> >- <li> >+ </div> >+ <div class="hint">If checked, hourly charge will be calculated using the calendar to exclude holidays. If not checked, the fee will be calculated based on the number of hours until due, directly.</div> >+ </div> >+ <div class="fg-row input-sm"> >+ <div class="fg-label"> > <label for="defaultreplacecost">Default replacement cost: </label> >- <input type="text" id="defaultreplacecost" name="defaultreplacecost" size="10" value="[% itemtype.defaultreplacecost | $Price on_editing => 1 %]" min="0" /> >- </li> >- <li> >+ </div> >+ <div class="fg-input"> >+ <input type="text" id="defaultreplacecost" name="defaultreplacecost" size="10" value="[% itemtype.defaultreplacecost | $Price on_editing => 1 %]" /> >+ </div> >+ </div> >+ <div class="fg-row input-sm"> >+ <div class="fg-label"> > <label for="processfee">Processing fee (when lost): </label> >- <input type="text" id="processfee" name="processfee" size="10" value="[% itemtype.processfee | $Price on_editing => 1 %]" min="0" /> >- </li> >- <li> >+ </div> >+ <div class="fg-input"> >+ <input type="text" id="processfee" name="processfee" size="10" value="[% itemtype.processfee | $Price on_editing => 1 %]" /> >+ </div> >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="checkinmsg">Checkin message: </label> >+ </div> >+ <div class="fg-input"> > <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% itemtype.checkinmsg | html %]</textarea> >- </li> >- <li> >+ </div> >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="checkinmsgtype">Checkin message type: </label> >+ </div> >+ <div class="fg-input"> > <select id="checkinmsgtype" name="checkinmsgtype"> > [% IF itemtype.checkinmsgtype == 'message' %] > <option value="message" selected="selected">Message</option> >@@ -328,11 +393,15 @@ > <option value="alert">Alert</option> > [% END %] > </select> >- </li> >- <li> >+ </div> >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="sip_media_type">SIP media type: </label> >+ </div> >+ <div class="fg-input"> > <select id="sip_media_type" name="sip_media_type"> >- <option value=""></option> >+ <option value="">None</option> > [% FOREACH a IN AuthorisedValues.Get('SIP_MEDIA_TYPE') %] > [% IF a.authorised_value == itemtype.sip_media_type %] > <option value="[% a.authorised_value | html %]" selected="selected">[% a.lib | html %]</option> >@@ -341,23 +410,36 @@ > [% END %] > [% END %] > </select> >- </li> >- <li> >+ </div> >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="library_limitation">Library limitation: </label> >+ </div> >+ <div class="fg-input"> > <select id="library_limitation" name="branches" multiple size="10"> > [% PROCESS options_for_libraries libraries => Branches.all( selected => itemtype.get_library_limits, unfiltered => 1, do_not_select_my_library => 1 ) %] > </select> >- <div class="hint">Limits the use of this item type to the selected libraries.</div> >- </li> >- <li> >+ </div> >+ <div class="hint">Select 'All libraries' if all libraries use this item type. Otherwise, select the specific libraries that use this item type.</div> >+ </div> >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="summary">Summary: </label> >+ </div> >+ <div class="fg-input"> > <textarea id="summary" name="summary" cols="55" rows="5">[% itemtype.summary | html %]</textarea> >- <div class="hint">Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype : </div> >- <div class="hint"><strong><a href="[856u]">open site</a></strong> will show the link just below the title</div> >- </li> >- [% IF Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' %] >- <li> >+ </div> >+ <div class="hint"> >+ Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype: <strong><a href="[856u]">open site</a></strong> will show the link just below the title >+ </div> >+ </div> >+ [% IF Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' %] >+ <div class="fg-row"> >+ <div class="fg-label"> > <label for="checkprevcheckout">Check for previous checkouts: </label> >+ </div> >+ <div class="fg-input"> > <select name="checkprevcheckout" id="checkprevcheckout"> > [% IF itemtype.checkprevcheckout == 'yes' %] > <option value="yes" selected="selected">Yes and override system preferences</option> >@@ -373,9 +455,9 @@ > <option value="inherit" selected="selected">Inherit from system preferences</option> > [% END %] > </select> >- </li> >- [% END %] >- </ol> >+ </div> >+ </div> >+ [% END %] > </fieldset> > > <fieldset class="action"> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41826
: 192991