Owen Leonard
693dde521d
This patch addresses template issues with the newly-added patron clubs pages. - Move Clubs tab out of second position in Circulation page tabs. - Link patron name in enrollments list to the patron record - Make page titles on some pages more specific - Correct label "for" attributes so that it matches input id - Correst style of buttons: Buttons in tables must be "btn-xs," all Bootstrap buttons must have "btn-default." - Correct "Edit" icons: Should be "fa-pencil" This patch also revises the club template editing form to make it more consistent with similar interfaces in Koha and (hopefully) make it more clear. To test, apply the patch and test adding clubs and club templates and enrolling patrons in clubs via the staff client and OPAC. Confirm that everything looks and work okay. Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
128 lines
6.3 KiB
Text
128 lines
6.3 KiB
Text
[% USE KohaDates %]
|
|
[% USE Branches %]
|
|
[% USE AuthorisedValues %]
|
|
[% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Tools › Patron clubs ›
|
|
[% IF club %]
|
|
Modify club [% club.name %]
|
|
[% ELSE %]
|
|
Create a new [% club_template.name %] club
|
|
[% END %]
|
|
</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% INCLUDE 'calendar.inc' %]
|
|
</head>
|
|
|
|
<body id="clubs_add_modify" class="clubs">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'cat-search.inc' %]
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="clubs.pl">Patron clubs</a> ›
|
|
[% IF club %]
|
|
Modify club <i>[% club.name %]</i>
|
|
[% ELSE %]
|
|
Create a new <i>[% club_template.name %]</i> club
|
|
[% END %]
|
|
</div>
|
|
|
|
<div id="doc" class="yui-t7">
|
|
<div id="bd">
|
|
<div class="yui-main">
|
|
<form method="post" class="validated">
|
|
<input type="hidden" name="id" value="[% club.id %]" />
|
|
<input type="hidden" name="club_template_id" value="[% club_template.id %]" />
|
|
|
|
<fieldset class="rows">
|
|
|
|
<legend>
|
|
[% IF club %]
|
|
Modify club <i>[% club.name %]</i>
|
|
[% ELSE %]
|
|
Create a new <i>[% club_template.name %]</i> club
|
|
[% END %]
|
|
</legend>
|
|
|
|
<ol>
|
|
<li>
|
|
<label class="required" for="club-name">Name:</label>
|
|
<input id="club-name" name="name" type="text" value="[% club.name %]" required="required"/>
|
|
<span class="required">Required</span>
|
|
</li>
|
|
|
|
<li>
|
|
<label for="club-template-name">Description:</label>
|
|
<input id="club-template-name" name="description" type="text" value="[% club.description %]" size="40" />
|
|
</li>
|
|
|
|
<li>
|
|
<label for="from">Start date:</label>
|
|
<input name="date_start" id="from" size="10" readonly="readonly" class="datepickerfrom" value="[% club.date_start | $KohaDates %]">
|
|
</li>
|
|
|
|
<li>
|
|
<label for="to">End date:</label>
|
|
<input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]" >
|
|
</li>
|
|
|
|
<li>
|
|
<label for="club-template-branchcode">Library:</label>
|
|
<select name="branchcode" id="club-template-branchcode">
|
|
<option value=""></option>
|
|
[% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
|
|
</select>
|
|
</li>
|
|
|
|
[% IF club %]
|
|
[% FOREACH f IN club.club_fields %]
|
|
<li>
|
|
<input type="hidden" name="club_template_field_id" value="[% f.club_template_field.id %]" />
|
|
<input type="hidden" name="club_field_id" value="[% f.id %]" />
|
|
|
|
<label for="club_field_[% f.club_template_field_id %]">[% f.club_template_field.name %]</label>
|
|
[% IF f.club_template_field.authorised_value_category %]
|
|
<select name="club_field" id="club_field_[% f.club_template_field_id %]">
|
|
[% FOREACH a IN AuthorisedValues.Get( f.club_template_field.authorised_value_category ) %]
|
|
[% IF a.authorised_value == f.value %]
|
|
<option value="[% a.authorised_value %]" selected="selected">[% a.lib %]</option>
|
|
[% ELSE %]
|
|
<option value="[% a.authorised_value %]">[% a.lib %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
[% ELSE %]
|
|
<input type="text" name="club_field" id="club_field_[% f.club_template_field_id %]" value="[% f.value %]" size="40" />
|
|
[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% ELSE %]
|
|
[% FOREACH f IN club_template.club_template_fields %]
|
|
<li>
|
|
<input type="hidden" name="club_template_field_id" value="[% f.id %]" />
|
|
|
|
<label for="club_template_field_[% f.id %]">[% f.name %]</label>
|
|
[% IF f.authorised_value_category %]
|
|
<select name="club_field" id="club_template_field_[% f.id %]">
|
|
[% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
|
|
<option value="[% a.authorised_value %]">[% a.lib %]</option>
|
|
[% END %]
|
|
</select>
|
|
[% ELSE %]
|
|
<input type="text" name="club_field" id="club_template_field_[% f.id %]" size="40" />
|
|
[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
</ol>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset class="action">
|
|
<input type="submit" value="Save" />
|
|
<a href="clubs.pl" class="cancel">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|