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 | html %]
11 Create a new [% club_template.name | html %] 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 <em>[% club.name | html %]</em>
24 Create a new <em>[% club_template.name | html %]</em> club
28 <div class="main container-fluid">
30 <div class="col-md-8 col-md-offset-2">
32 <form method="post" class="validated">
33 <input type="hidden" name="id" value="[% club.id | html %]" />
34 <input type="hidden" name="club_template_id" value="[% club_template.id | html %]" />
36 <fieldset class="rows">
40 Modify club <em>[% club.name | html %]</em>
42 Create a new <em>[% club_template.name | html %]</em> club
48 <label class="required" for="club-name">Name:</label>
49 <input id="club-name" name="name" type="text" value="[% club.name | html %]" required="required"/>
50 <span class="required">Required</span>
54 <label for="club-template-name">Description:</label>
55 <input id="club-template-name" name="description" type="text" value="[% club.description | html %]" size="40" />
59 <label for="from">Start date:</label>
60 <input name="date_start" id="from" size="10" readonly="readonly" class="datepickerfrom" value="[% club.date_start | $KohaDates %]">
64 <label for="to">End date:</label>
65 <input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]" >
69 <label for="club-template-branchcode">Library:</label>
70 <select name="branchcode" id="club-template-branchcode">
71 <option value=""></option>
72 [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
77 [% FOREACH f IN club.club_fields %]
79 <input type="hidden" name="club_template_field_id" value="[% f.club_template_field.id | html %]" />
80 <input type="hidden" name="club_field_id" value="[% f.id | html %]" />
82 <label for="club_field_[% f.club_template_field_id | html %]">[% f.club_template_field.name | html %]</label>
83 [% IF f.club_template_field.authorised_value_category %]
84 <select name="club_field" id="club_field_[% f.club_template_field_id | html %]">
85 [% FOREACH a IN AuthorisedValues.Get( f.club_template_field.authorised_value_category ) %]
86 [% IF a.authorised_value == f.value %]
87 <option value="[% a.authorised_value | html %]" selected="selected">[% a.lib | html %]</option>
89 <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
94 <input type="text" name="club_field" id="club_field_[% f.club_template_field_id | html %]" value="[% f.value | html %]" size="40" />
99 [% FOREACH f IN club_template.club_template_fields %]
101 <input type="hidden" name="club_template_field_id" value="[% f.id | html %]" />
103 <label for="club_template_field_[% f.id | html %]">[% f.name | html %]</label>
104 [% IF f.authorised_value_category %]
105 <select name="club_field" id="club_template_field_[% f.id | html %]">
106 [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
107 <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
111 <input type="text" name="club_field" id="club_template_field_[% f.id | html %]" size="40" />
121 <fieldset class="action">
122 <input type="submit" value="Save" />
123 <a href="clubs.pl" class="cancel">Cancel</a>
129 [% MACRO jsinclude BLOCK %]
130 [% INCLUDE 'calendar.inc' %]
133 [% INCLUDE 'intranet-bottom.inc' %]