3 [% USE AuthorisedValues %]
4 [% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Tools › Patron clubs ›
9 Modify club [% club.name %]
11 Create a new [% club_template.name %] club
14 [% INCLUDE 'doc-head-close.inc' %]
17 <body id="clubs_add_modify" class="clubs">
18 [% INCLUDE 'header.inc' %]
19 [% INCLUDE 'cat-search.inc' %]
20 <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> ›
22 Modify club <i>[% club.name %]</i>
24 Create a new <i>[% club_template.name %]</i> club
28 <div id="doc" class="yui-t7">
30 <div class="yui-main">
31 <form method="post" class="validated">
32 <input type="hidden" name="id" value="[% club.id %]" />
33 <input type="hidden" name="club_template_id" value="[% club_template.id %]" />
35 <fieldset class="rows">
39 Modify club <i>[% club.name %]</i>
41 Create a new <i>[% club_template.name %]</i> club
47 <label class="required" for="club-name">Name:</label>
48 <input id="club-name" name="name" type="text" value="[% club.name %]" required="required"/>
49 <span class="required">Required</span>
53 <label for="club-template-name">Description:</label>
54 <input id="club-template-name" name="description" type="text" value="[% club.description %]" size="40" />
58 <label for="from">Start date:</label>
59 <input name="date_start" id="from" size="10" readonly="readonly" class="datepickerfrom" value="[% club.date_start | $KohaDates %]">
63 <label for="to">End date:</label>
64 <input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]" >
68 <label for="club-template-branchcode">Library:</label>
69 <select name="branchcode" id="club-template-branchcode">
70 <option value=""></option>
71 [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
76 [% FOREACH f IN club.club_fields %]
78 <input type="hidden" name="club_template_field_id" value="[% f.club_template_field.id %]" />
79 <input type="hidden" name="club_field_id" value="[% f.id %]" />
81 <label for="club_field_[% f.club_template_field_id %]">[% f.club_template_field.name %]</label>
82 [% IF f.club_template_field.authorised_value_category %]
83 <select name="club_field" id="club_field_[% f.club_template_field_id %]">
84 [% FOREACH a IN AuthorisedValues.Get( f.club_template_field.authorised_value_category ) %]
85 [% IF a.authorised_value == f.value %]
86 <option value="[% a.authorised_value %]" selected="selected">[% a.lib %]</option>
88 <option value="[% a.authorised_value %]">[% a.lib %]</option>
93 <input type="text" name="club_field" id="club_field_[% f.club_template_field_id %]" value="[% f.value %]" size="40" />
98 [% FOREACH f IN club_template.club_template_fields %]
100 <input type="hidden" name="club_template_field_id" value="[% f.id %]" />
102 <label for="club_template_field_[% f.id %]">[% f.name %]</label>
103 [% IF f.authorised_value_category %]
104 <select name="club_field" id="club_template_field_[% f.id %]">
105 [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
106 <option value="[% a.authorised_value %]">[% a.lib %]</option>
110 <input type="text" name="club_field" id="club_template_field_[% f.id %]" size="40" />
120 <fieldset class="action">
121 <input type="submit" value="Save" />
122 <a href="clubs.pl" class="cancel">Cancel</a>
128 [% MACRO jsinclude BLOCK %]
129 [% INCLUDE 'calendar.inc' %]
132 [% INCLUDE 'intranet-bottom.inc' %]