View | Details | Raw Unified | Return to bug 6698
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-5 / +9 lines)
Lines 201-207 Link Here
201
		[% ELSE %]
201
		[% ELSE %]
202
		<label for="surname">
202
		<label for="surname">
203
		[% END %]
203
		[% END %]
204
		Surname: </label>
204
		[% IF ( I ) %] Name: [% ELSE %] Surname: [% END %]</label>
205
		[% IF ( uppercasesurnames ) %]
205
		[% IF ( uppercasesurnames ) %]
206
		<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="[% surname %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
206
		<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="[% surname %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
207
		[% ELSE %]
207
		[% ELSE %]
Lines 474-479 Link Here
474
    </fieldset>
474
    </fieldset>
475
  <fieldset class="rows" id="memberentry_contact">
475
  <fieldset class="rows" id="memberentry_contact">
476
    <legend>Contact</legend><ol>
476
    <legend>Contact</legend><ol>
477
    [% UNLESS ( I ) %]
477
      <li>
478
      <li>
478
      [% IF ( mandatoryphone ) %] 
479
      [% IF ( mandatoryphone ) %] 
479
      <label for="phone" class="required">
480
      <label for="phone" class="required">
Lines 483-500 Link Here
483
      Phone (home): </label>
484
      Phone (home): </label>
484
      <input type="text" id="phone" name="phone" value="[% phone %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
485
      <input type="text" id="phone" name="phone" value="[% phone %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
485
	  [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
486
	  [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
486
487
    </li>
487
    </li>
488
    [% END %]
488
    <li>
489
    <li>
489
      [% IF ( mandatoryphonepro ) %]
490
      [% IF ( mandatoryphonepro ) %]
490
      <label for="phonepro" class="required">
491
      <label for="phonepro" class="required">
491
      [% ELSE %]
492
      [% ELSE %]
492
      <label for="phonepro">
493
      <label for="phonepro">
493
      [% END %]
494
      [% END %]
494
      Phone (work): </label>
495
      [% IF ( I ) %]Phone: [% ELSE %]Phone (work):[% END %] </label>
495
      <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
496
      <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
496
	  [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
497
	  [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
497
    </li>
498
    </li>
499
    [% UNLESS ( I ) %]
498
    <li>
500
    <li>
499
      [% IF ( mandatorymobile ) %]
501
      [% IF ( mandatorymobile ) %]
500
      <label for="mobile" class="required">
502
      <label for="mobile" class="required">
Lines 505-510 Link Here
505
      <input type="text" id="mobile" name="mobile" value="[% mobile %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
507
      <input type="text" id="mobile" name="mobile" value="[% mobile %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
506
	  [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
508
	  [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
507
    </li>
509
    </li>
510
    [% END %]
511
    [% UNLESS ( I ) %]
508
    <li>
512
    <li>
509
      [% IF ( mandatoryemail ) %]
513
      [% IF ( mandatoryemail ) %]
510
      <label for="email" class="required">
514
      <label for="email" class="required">
Lines 514-528 Link Here
514
      Primary Email: </label>
518
      Primary Email: </label>
515
      <input type="text" id="email" name="email" size="45" value="[% email %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />  
519
      <input type="text" id="email" name="email" size="45" value="[% email %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />  
516
	  [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
520
	  [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
517
518
    </li>
521
    </li>
522
    [% END %]
519
    <li>
523
    <li>
520
      [% IF ( mandatoryemailpro ) %] 
524
      [% IF ( mandatoryemailpro ) %] 
521
      <label for="emailpro" class="required">
525
      <label for="emailpro" class="required">
522
      [% ELSE %]
526
      [% ELSE %]
523
      <label for="emailpro">
527
      <label for="emailpro">
524
      [% END %]
528
      [% END %]
525
      Secondary Email: </label>
529
      [% IF ( I ) %]Email: [% ELSE %]Secondary Email:[% END %] </label>
526
      <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
530
      <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
527
	  [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
531
	  [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
528
    </li>
532
    </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-2 / +3 lines)
Lines 177-183 function validate1(date) { Link Here
177
 <div class="yui-u first">
177
 <div class="yui-u first">
178
<div id="patron-information" style="padding : .5em;">
178
<div id="patron-information" style="padding : .5em;">
179
179
180
     [% UNLESS ( I ) %][% IF ( othernames ) %]&ldquo;[% othernames %]&rdquo;[% END %]
180
     [% UNLESS ( I ) %][% IF ( othernames ) %]&ldquo;[% othernames %]&rdquo;[% END %][% END %]
181
181
182
<p class="address">[% streetnumber %]
182
<p class="address">[% streetnumber %]
183
        [% IF ( roaddetails ) %]
183
        [% IF ( roaddetails ) %]
Lines 188-194 function validate1(date) { Link Here
188
    	[% IF ( city ) %][% city %][% END %] 
188
    	[% IF ( city ) %][% city %][% END %] 
189
    	[% IF ( state ) %][% state %][% END %]
189
    	[% IF ( state ) %][% state %][% END %]
190
    	[% IF ( zipcode ) %][% zipcode %]<br />[% END %]
190
    	[% IF ( zipcode ) %][% zipcode %]<br />[% END %]
191
	[% IF ( country ) %][% country %][% END %]</p>
191
	    [% IF ( country ) %][% country %][% END %]</p>
192
		    
192
		    
193
	<div class="rows">
193
	<div class="rows">
194
		<ol>
194
		<ol>
Lines 210-215 function validate1(date) { Link Here
210
        [% IF ( email ) %]<li><span class="label">Email (home):</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
210
        [% IF ( email ) %]<li><span class="label">Email (home):</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
211
        [% IF ( emailpro ) %]<li><span class="label">Email (work): </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
211
        [% IF ( emailpro ) %]<li><span class="label">Email (work): </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
212
    [% END %]
212
    [% END %]
213
    [% UNLESS ( I ) %]
213
    <li><span class="label">Initials: </span>[% initials %]</li>
214
    <li><span class="label">Initials: </span>[% initials %]</li>
214
    <li><span class="label">Date of birth:</span>[% dateofbirth %]</li>
215
    <li><span class="label">Date of birth:</span>[% dateofbirth %]</li>
215
    <li><span class="label">Gender:</span>
216
    <li><span class="label">Gender:</span>
(-)a/members/moremember.pl (-2 / +1 lines)
Lines 132-138 my $category_type = $data->{'category_type'}; Link Here
132
### $category_type
132
### $category_type
133
133
134
# in template <TMPL_IF name="I"> => instutitional (A for Adult& C for children) 
134
# in template <TMPL_IF name="I"> => instutitional (A for Adult& C for children) 
135
$template->param( $data->{'categorycode'} => 1 ); 
135
$template->param( $data->{'category_type'} => 1 );
136
136
137
$debug and printf STDERR "dates (enrolled,expiry,birthdate) raw: (%s, %s, %s)\n", map {$data->{$_}} qw(dateenrolled dateexpiry dateofbirth);
137
$debug and printf STDERR "dates (enrolled,expiry,birthdate) raw: (%s, %s, %s)\n", map {$data->{$_}} qw(dateenrolled dateexpiry dateofbirth);
138
foreach (qw(dateenrolled dateexpiry dateofbirth)) {
138
foreach (qw(dateenrolled dateexpiry dateofbirth)) {
139
- 

Return to bug 6698