3 [% USE AuthorisedValues %]
4 [% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Tools › Patron clubs › Club</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% INCLUDE 'calendar.inc' %]
11 <body id="clubs_add_modify" class="clubs">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'cat-search.inc' %]
14 <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> › Add / modify club</div>
17 <div class="yui-main">
18 <form method="post" class="validated">
19 <input type="hidden" name="id" value="[% club.id %]" />
20 <input type="hidden" name="club_template_id" value="[% club_template.id %]" />
22 <fieldset class="rows">
26 Modify club <i>[% club.name %]</i>
28 Create a new <i>[% club_template.name %]</i> club
34 <label class="required" for="name">Name:</label>
35 <input id="club-name" name="name" type="text" value="[% club.name %]" required="required"/>
36 <span class="required">Required</span>
40 <label for="description">Description:</label>
41 <input id="club-template-name" name="description" type="text" value="[% club.description %]" />
45 <label for="date_start">Start date:</label>
46 <input name="date_start" id="from" size="10" readonly="readonly" class="datepickerfrom" value="[% club.date_start | $KohaDates %]">
50 <label for="date_end">End date:</label>
51 <input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]" >
55 <label for="name">Library:</label>
56 <select name="branchcode" id="club-template-branchcode">
57 <option value=""> </option>
58 [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
63 [% FOREACH f IN club.club_fields %]
65 <input type="hidden" name="club_template_field_id" value="[% f.club_template_field.id %]" />
66 <input type="hidden" name="club_field_id" value="[% f.id %]" />
68 <label for="club_field">[% f.club_template_field.name %]</label>
69 [% IF f.club_template_field.authorised_value_category %]
70 <select name="club_field">
71 [% FOREACH a IN AuthorisedValues.Get( f.club_template_field.authorised_value_category ) %]
72 [% IF a.authorised_value == f.value %]
73 <option value="[% a.authorised_value %]" selected="selected">[% a.lib %]</option>
75 <option value="[% a.authorised_value %]">[% a.lib %]</option>
80 <input type="text" name="club_field" value="[% f.value %]" />
85 [% FOREACH f IN club_template.club_template_fields %]
87 <input type="hidden" name="club_template_field_id" value="[% f.id %]" />
89 <label for="club_field">[% f.name %]</label>
90 [% IF f.authorised_value_category %]
91 <select name="club_field">
92 [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
93 <option value="[% a.authorised_value %]">[% a.lib %]</option>
97 <input type="text" name="club_field" />
107 <fieldset class="action">
108 <input type="submit" class="btn btn-default" value="Save" />
109 <a href="clubs.pl" class="cancel">Cancel</a>
115 [% INCLUDE 'intranet-bottom.inc' %]