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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-384 / +383 lines)
Lines 8-133 Link Here
8
//<![CDATA[
8
//<![CDATA[
9
$(document).ready(function() {
9
$(document).ready(function() {
10
10
11
	[% IF categorycode %]
11
    [% IF categorycode %]
12
		update_category_code( "[% categorycode %]" );
12
        update_category_code( "[% categorycode %]" );
13
	[% ELSE %]
13
    [% ELSE %]
14
		if ( $("#categorycode_entry").length > 0 ){
14
        if ( $("#categorycode_entry").length > 0 ){
15
			var category_code = $("#categorycode_entry").find("option:selected").val();
15
            var category_code = $("#categorycode_entry").find("option:selected").val();
16
			update_category_code( category_code );
16
            update_category_code( category_code );
17
		}
17
        }
18
	[% END %]
18
    [% END %]
19
	$("#dateofbirth").datepicker({ maxDate: "-1D", yearRange: "c-120:" });
19
    $("#dateofbirth").datepicker({ maxDate: "-1D", yearRange: "c-120:" });
20
	dateformat = $("#dateofbirth").siblings(".hint").first().html();
20
    dateformat = $("#dateofbirth").siblings(".hint").first().html();
21
	write_age();
21
    write_age();
22
	$("#entryform").validate({
22
    $("#entryform").validate({
23
		rules: {
23
        rules: {
24
			email: {
24
            email: {
25
				email: true
25
                email: true
26
			},
26
            },
27
			emailpro: {
27
            emailpro: {
28
				email: true
28
                email: true
29
			},
29
            },
30
			B_email: {
30
            B_email: {
31
				email: true
31
                email: true
32
			}
32
            }
33
		},
33
        },
34
		submitHandler: function(form) {
34
        submitHandler: function(form) {
35
			$("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting');
35
            $("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting');
36
			if (form.beenSubmitted)
36
            if (form.beenSubmitted)
37
				return false;
37
                return false;
38
			else
38
            else
39
				form.beenSubmitted = true;
39
                form.beenSubmitted = true;
40
				form.submit();
40
                form.submit();
41
			}
41
            }
42
	});
42
    });
43
43
44
	var mrform = $("#manual_restriction_form");
44
    var mrform = $("#manual_restriction_form");
45
	var mrlink = $("#add_manual_restriction");
45
    var mrlink = $("#add_manual_restriction");
46
	mrform.hide();
46
    mrform.hide();
47
	mrlink.on("click",function(e){
47
    mrlink.on("click",function(e){
48
		$(this).hide();
48
        $(this).hide();
49
		mrform.show();
49
        mrform.show();
50
		e.preventDefault();
50
        e.preventDefault();
51
	});
51
    });
52
	$("#cancel_manual_restriction").on("click",function(e){
52
    $("#cancel_manual_restriction").on("click",function(e){
53
		$('#debarred_expiration').val('');
53
        $('#debarred_expiration').val('');
54
		$('#add_debarment').val(0);
54
        $('#add_debarment').val(0);
55
		$('#debarred_comment').val('');
55
        $('#debarred_comment').val('');
56
		mrlink.show();
56
        mrlink.show();
57
		mrform.hide();
57
        mrform.hide();
58
		e.preventDefault();
58
        e.preventDefault();
59
	});
59
    });
60
});
60
});
61
61
62
function clear_entry(node) {
62
function clear_entry(node) {
63
	var original = $(node).parent();
63
    var original = $(node).parent();
64
	$("textarea", original).attr('value', '');
64
    $("textarea", original).attr('value', '');
65
	$("select", original).attr('value', '');
65
    $("select", original).attr('value', '');
66
}
66
}
67
67
68
function clone_entry(node) {
68
function clone_entry(node) {
69
	var original = $(node).parent();
69
    var original = $(node).parent();
70
	var clone = original.clone();
70
    var clone = original.clone();
71
71
72
	var newId = 50 + parseInt(Math.random() * 100000);
72
    var newId = 50 + parseInt(Math.random() * 100000);
73
	$("input,select,textarea", clone).attr('id', function() {
73
    $("input,select,textarea", clone).attr('id', function() {
74
		return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
74
        return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
75
	});
75
    });
76
	$("input,select,textarea", clone).attr('name', function() {
76
    $("input,select,textarea", clone).attr('name', function() {
77
		return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
77
        return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
78
	});
78
    });
79
	$("label", clone).attr('for', function() {
79
    $("label", clone).attr('for', function() {
80
		return $(this).attr("for").replace(/patron_attr_\d+/, 'patron_attr_' + newId);
80
        return $(this).attr("for").replace(/patron_attr_\d+/, 'patron_attr_' + newId);
81
	});
81
    });
82
	$("input#patron_attr_" + newId, clone).attr('value','');
82
    $("input#patron_attr_" + newId, clone).attr('value','');
83
	$("select#patron_attr_" + newId, clone).attr('value','');
83
    $("select#patron_attr_" + newId, clone).attr('value','');
84
	$(original).after(clone);
84
    $(original).after(clone);
85
	return false;
85
    return false;
86
}
86
}
87
87
88
function update_category_code(category_code) {
88
function update_category_code(category_code) {
89
	if ( $(category_code).is("select") ) {
89
    if ( $(category_code).is("select") ) {
90
		category_code = $("#categorycode_entry").find("option:selected").val();
90
        category_code = $("#categorycode_entry").find("option:selected").val();
91
	}
91
    }
92
	var mytables = $(".attributes_table");
92
    var mytables = $(".attributes_table");
93
	$(mytables).find("li").hide();
93
    $(mytables).find("li").hide();
94
	$(mytables).find(" li[data-category_code='"+category_code+"']").show();
94
    $(mytables).find(" li[data-category_code='"+category_code+"']").show();
95
	$(mytables).find(" li[data-category_code='']").show();
95
    $(mytables).find(" li[data-category_code='']").show();
96
}
96
}
97
97
98
function select_user(borrowernumber, borrower) {
98
function select_user(borrowernumber, borrower) {
99
	var form = $('#entryform').get(0);
99
    var form = $('#entryform').get(0);
100
	if (form.guarantorid.value) {
100
    if (form.guarantorid.value) {
101
		$("#contact-details").find('a').remove();
101
        $("#contact-details").find('a').remove();
102
		$("#contactname, #contactfirstname").parent().find('span').remove();
102
        $("#contactname, #contactfirstname").parent().find('span').remove();
103
	}
103
    }
104
104
105
	var id = borrower.borrowernumber;
105
    var id = borrower.borrowernumber;
106
	form.guarantorid.value = id;
106
    form.guarantorid.value = id;
107
	$('#contact-details')
107
    $('#contact-details')
108
		.show()
108
        .show()
109
		.find('span')
109
        .find('span')
110
		.after('<a target="blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=' + id + '">' + id + '</a>');
110
        .after('<a target="blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=' + id + '">' + id + '</a>');
111
111
112
	$(form.contactname)
112
    $(form.contactname)
113
		.val(borrower.surname)
113
        .val(borrower.surname)
114
		.before('<span>' + borrower.surname + '</span>').get(0).type = 'hidden';
114
        .before('<span>' + borrower.surname + '</span>').get(0).type = 'hidden';
115
	$(form.contactfirstname)
115
    $(form.contactfirstname)
116
		.val(borrower.firstname)
116
        .val(borrower.firstname)
117
		.before('<span>' + borrower.firstname + '</span>').get(0).type = 'hidden';
117
        .before('<span>' + borrower.firstname + '</span>').get(0).type = 'hidden';
118
118
119
	form.streetnumber.value = borrower.streetnumber;
119
    form.streetnumber.value = borrower.streetnumber;
120
	form.address.value = borrower.address;
120
    form.address.value = borrower.address;
121
	form.address2.value = borrower.address2;
121
    form.address2.value = borrower.address2;
122
	form.city.value = borrower.city;
122
    form.city.value = borrower.city;
123
	form.state.value = borrower.state;
123
    form.state.value = borrower.state;
124
	form.zipcode.value = borrower.zipcode;
124
    form.zipcode.value = borrower.zipcode;
125
	form.country.value = borrower.country;
125
    form.country.value = borrower.country;
126
	form.branchcode.value = borrower.branchcode;
126
    form.branchcode.value = borrower.branchcode;
127
127
128
	form.guarantorsearch.value = _("Change");
128
    form.guarantorsearch.value = _("Change");
129
129
130
	return 0;
130
    return 0;
131
}
131
}
132
132
133
    function write_age() {
133
    function write_age() {
Lines 217-224 $(document).ready(function() { Link Here
217
[% IF ( opadd ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
217
[% IF ( opadd ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
218
218
219
   <div id="bd">
219
   <div id="bd">
220
	<div id="yui-main">
220
    <div id="yui-main">
221
	<div class="yui-b">
221
    <div class="yui-b">
222
    [% IF error_alert %]
222
    [% IF error_alert %]
223
        [% IF ( error_alert == "no_email" ) %]
223
        [% IF ( error_alert == "no_email" ) %]
224
            <div class="error">This member has no email</div>
224
            <div class="error">This member has no email</div>
Lines 230-245 $(document).ready(function() { Link Here
230
        <div class="dialog message">Email has been sent.</div>
230
        <div class="dialog message">Email has been sent.</div>
231
    [% END %]
231
    [% END %]
232
232
233
	[% IF ( no_add ) %]<div class="dialog alert"><h3>Cannot add patron</h3>
233
    [% IF ( no_add ) %]<div class="dialog alert"><h3>Cannot add patron</h3>
234
            [% IF ( no_branches ) %]<p><strong>There are no libraries defined.</strong> [% IF ( CAN_user_parameters ) %]<a href="/cgi-bin/koha/admin/branches.pl">Please add a library.</a>[% ELSE %]An administrator must define at least one library.[% END %]</p>[% END %]
234
            [% IF ( no_branches ) %]<p><strong>There are no libraries defined.</strong> [% IF ( CAN_user_parameters ) %]<a href="/cgi-bin/koha/admin/branches.pl">Please add a library.</a>[% ELSE %]An administrator must define at least one library.[% END %]</p>[% END %]
235
            [% IF ( no_categories ) %]<p><strong>There are no patron categories defined.</strong> [% IF ( CAN_user_parameters ) %]<a href="/cgi-bin/koha/admin/categories.pl">Please add a patron category.</a>[% ELSE %]An administrator must define at least one patron category.</p>[% END %][% END %]</div>[% END %]
235
            [% IF ( no_categories ) %]<p><strong>There are no patron categories defined.</strong> [% IF ( CAN_user_parameters ) %]<a href="/cgi-bin/koha/admin/categories.pl">Please add a patron category.</a>[% ELSE %]An administrator must define at least one patron category.</p>[% END %][% END %]</div>[% END %]
236
236
237
	[% UNLESS ( no_add ) %]
237
    [% UNLESS ( no_add ) %]
238
    <h1>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</h1>
238
    <h1>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</h1>
239
239
240
	[% IF ( check_member ) %]
240
    [% IF ( check_member ) %]
241
			<div class="dialog alert">
241
            <div class="dialog alert">
242
				<h3>Duplicate patron record?</h3>
242
                <h3>Duplicate patron record?</h3>
243
                <p><a class="popup" href="#" onclick="Dopop('moremember.pl?print=brief&amp;borrowernumber=[% check_member %]');return false;" >View existing record</a></p>
243
                <p><a class="popup" href="#" onclick="Dopop('moremember.pl?print=brief&amp;borrowernumber=[% check_member %]');return false;" >View existing record</a></p>
244
                <form action="/cgi-bin/koha/members/memberentry.pl" method="get">
244
                <form action="/cgi-bin/koha/members/memberentry.pl" method="get">
245
                    <input type="hidden" name="op" value="modify" />
245
                    <input type="hidden" name="op" value="modify" />
Lines 249-298 $(document).ready(function() { Link Here
249
                </form>
249
                </form>
250
250
251
                <form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off">
251
                <form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off">
252
				<input type="hidden" name="nodouble" value="1" />
252
                <input type="hidden" name="nodouble" value="1" />
253
                <button type="submit" class="new"><i class="fa fa-plus"></i> Not a duplicate.
253
                <button type="submit" class="new"><i class="fa fa-plus"></i> Not a duplicate.
254
                Save as new record</button>
254
                Save as new record</button>
255
			</div>
255
            </div>
256
	[% END %]
256
    [% END %]
257
257
258
	[% IF ( nok ) %]
258
    [% IF ( nok ) %]
259
		<div class="dialog alert">
259
        <div class="dialog alert">
260
			<p>The following fields are wrong. Please fix them.</p>
260
            <p>The following fields are wrong. Please fix them.</p>
261
			<ul>
261
            <ul>
262
			[% IF ( ERROR_login_exist ) %]
262
            [% IF ( ERROR_login_exist ) %]
263
				<li id="ERROR_login_exist">Username/password already exists.</li>
263
                <li id="ERROR_login_exist">Username/password already exists.</li>
264
			[% END %]
264
            [% END %]
265
            [% IF ERROR_cardnumber_already_exists %]
265
            [% IF ERROR_cardnumber_already_exists %]
266
                <li id="ERROR_cardnumber">Cardnumber already in use.</li>
266
                <li id="ERROR_cardnumber">Cardnumber already in use.</li>
267
            [% END %]
267
            [% END %]
268
            [% IF ERROR_cardnumber_length %]
268
            [% IF ERROR_cardnumber_length %]
269
                <li id="ERROR_cardnumber">Cardnumber length is incorrect.</li>
269
                <li id="ERROR_cardnumber">Cardnumber length is incorrect.</li>
270
            [% END %]
270
            [% END %]
271
			[% IF ( ERROR_age_limitations ) %]
271
            [% IF ( ERROR_age_limitations ) %]
272
				<li id="ERROR_age_limitations">Patron's age is incorrect for their category.
272
                <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
273
                    Ages allowed are [% age_low %]-[% age_high %].</li>
273
                    Ages allowed are [% age_low %]-[% age_high %].</li>
274
			[% END %]
274
            [% END %]
275
			[% IF ( ERROR_branch ) %]
275
            [% IF ( ERROR_branch ) %]
276
				<li id="ERROR_branch">Library is invalid.</li>
276
                <li id="ERROR_branch">Library is invalid.</li>
277
			[% END %]
277
            [% END %]
278
			[% IF ( ERROR_dateofbirth ) %]
278
            [% IF ( ERROR_dateofbirth ) %]
279
				<li id="ERROR_dateofbirth">Date of birth is invalid.</li>
279
                <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
280
			[% END %]
280
            [% END %]
281
			[% IF ( ERROR_dateenrolled ) %]
281
            [% IF ( ERROR_dateenrolled ) %]
282
				<li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
282
                <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
283
			[% END %]
283
            [% END %]
284
			[% IF ( ERROR_dateexpiry ) %]
284
            [% IF ( ERROR_dateexpiry ) %]
285
				<li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
285
                <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
286
			[% END %]
286
            [% END %]
287
			[% IF ( ERROR_short_password ) %]
287
            [% IF ( ERROR_short_password ) %]
288
				<li id="ERROR_short_password">Password must be at least [% minPasswordLength %] characters long.</li>
288
                <li id="ERROR_short_password">Password must be at least [% minPasswordLength %] characters long.</li>
289
			[% END %]
289
            [% END %]
290
			[% IF ( ERROR_password_mismatch ) %]
290
            [% IF ( ERROR_password_mismatch ) %]
291
				<li id="ERROR_password_mismatch">Passwords do not match.</li>
291
                <li id="ERROR_password_mismatch">Passwords do not match.</li>
292
			[% END %]
292
            [% END %]
293
            [% IF ( ERROR_extended_unique_id_failed ) %]
293
            [% IF ( ERROR_extended_unique_id_failed ) %]
294
                <li id="ERROR_extended_unique_id_failed"><strong>[% ERROR_extended_unique_id_failed_description %]</strong> attribute value <i>[% ERROR_extended_unique_id_failed_value %]</i> is already in use by another patron record.</li>
294
                <li id="ERROR_extended_unique_id_failed"><strong>[% ERROR_extended_unique_id_failed_description %]</strong> attribute value <i>[% ERROR_extended_unique_id_failed_value %]</i> is already in use by another patron record.</li>
295
			[% END %]
295
            [% END %]
296
            [% IF ERROR_bad_email %]
296
            [% IF ERROR_bad_email %]
297
                <li id="ERROR_bad_email">The primary email is invalid.</li>
297
                <li id="ERROR_bad_email">The primary email is invalid.</li>
298
            [% END %]
298
            [% END %]
Lines 302-310 $(document).ready(function() { Link Here
302
            [% IF ERROR_bad_email_alternative %]
302
            [% IF ERROR_bad_email_alternative %]
303
                <li id="ERROR_bad_email_alternative">The alternative email is invalid.</li>
303
                <li id="ERROR_bad_email_alternative">The alternative email is invalid.</li>
304
            [% END %]
304
            [% END %]
305
			</ul>
305
            </ul>
306
		</div>
306
        </div>
307
	[% END %]
307
    [% END %]
308
308
309
309
310
[% UNLESS ( check_member ) %]<form name="form" id="entryform"  action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class='toggler' >
310
[% UNLESS ( check_member ) %]<form name="form" id="entryform"  action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class='toggler' >
Lines 333-344 $(document).ready(function() { Link Here
333
333
334
[% IF ( step_1 ) %]
334
[% IF ( step_1 ) %]
335
[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
335
[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
336
	<fieldset class="rows" id="memberentry_identity">
336
    <fieldset class="rows" id="memberentry_identity">
337
		<legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
337
        <legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
338
		<ol>
338
        <ol>
339
		[% UNLESS ( I ) %]
339
        [% UNLESS ( I ) %]
340
        [% UNLESS notitle %]
340
        [% UNLESS notitle %]
341
		[% IF ( title_cgipopup ) %]
341
        [% IF ( title_cgipopup ) %]
342
            <li>
342
            <li>
343
            [% IF ( mandatorytitle ) %]
343
            [% IF ( mandatorytitle ) %]
344
                <label for="btitle" class="required">
344
                <label for="btitle" class="required">
Lines 349-374 $(document).ready(function() { Link Here
349
            [% borrotitlepopup %]
349
            [% borrotitlepopup %]
350
            [% IF ( mandatorytitle ) %]<span class="required">Required</span>[% END %]
350
            [% IF ( mandatorytitle ) %]<span class="required">Required</span>[% END %]
351
            </li>
351
            </li>
352
		[% END %]
353
        [% END %]
352
        [% END %]
354
		[% END %]
353
        [% END %]
354
        [% END %]
355
        [% UNLESS nosurname %]
355
        [% UNLESS nosurname %]
356
		<li>
356
        <li>
357
		[% IF ( mandatorysurname ) %]
357
        [% IF ( mandatorysurname ) %]
358
		<label for="surname" class="required">
358
        <label for="surname" class="required">
359
		[% ELSE %]
359
        [% ELSE %]
360
		<label for="surname">
360
        <label for="surname">
361
		[% END %]
361
        [% END %]
362
		Surname: </label>
362
        Surname: </label>
363
		[% IF ( uppercasesurnames ) %]
363
        [% IF ( uppercasesurnames ) %]
364
            <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="[% surname %]" />
364
            <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="[% surname %]" />
365
		[% ELSE %]
365
        [% ELSE %]
366
            <input type="text" id="surname" name="surname" size="20"  value="[% surname %]" />
366
            <input type="text" id="surname" name="surname" size="20"  value="[% surname %]" />
367
		[% END %]
368
		[% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %]
369
		</li>
370
        [% END %]
367
        [% END %]
371
		[% UNLESS ( I ) %]
368
        [% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %]
369
        </li>
370
        [% END %]
371
        [% UNLESS ( I ) %]
372
        [% UNLESS nofirstname %]
372
        [% UNLESS nofirstname %]
373
            <li>
373
            <li>
374
                [% IF ( mandatoryfirstname ) %]
374
                [% IF ( mandatoryfirstname ) %]
Lines 394-400 $(document).ready(function() { Link Here
394
394
395
        [% IF ( mandatorydateofbirth ) %]<span class="required">Required</span>[% END %]
395
        [% IF ( mandatorydateofbirth ) %]<span class="required">Required</span>[% END %]
396
        [% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %]
396
        [% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %]
397
		<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
397
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
398
            </li>
398
            </li>
399
        [% END %]
399
        [% END %]
400
        [% UNLESS noinitials %]
400
        [% UNLESS noinitials %]
Lines 411-431 $(document).ready(function() { Link Here
411
        [% END %]
411
        [% END %]
412
        [% END %]
412
        [% END %]
413
        [% UNLESS noothernames %]
413
        [% UNLESS noothernames %]
414
		<li>
414
        <li>
415
			[% IF ( mandatoryothernames ) %]
415
            [% IF ( mandatoryothernames ) %]
416
			<label for="othernames" class="required">
416
            <label for="othernames" class="required">
417
			[% ELSE %]
417
            [% ELSE %]
418
			<label for="othernames">
418
            <label for="othernames">
419
			[% END %]
419
            [% END %]
420
            Other name: </label>
420
            Other name: </label>
421
            <input type="text" id="othernames" name="othernames" size="20"  value="[% UNLESS opduplicate %][% othernames %][% END %]" />
421
            <input type="text" id="othernames" name="othernames" size="20"  value="[% UNLESS opduplicate %][% othernames %][% END %]" />
422
[% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %]
422
[% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %]
423
		[% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
423
        [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
424
		</li>
424
        </li>
425
        [% END %]
425
        [% END %]
426
    [% UNLESS ( I ) %]
426
    [% UNLESS ( I ) %]
427
        [% UNLESS nosex %]
427
        [% UNLESS nosex %]
428
		<li class="radio">
428
        <li class="radio">
429
429
430
            [% UNLESS ( opduplicate ) %]
430
            [% UNLESS ( opduplicate ) %]
431
                [% IF ( female ) %]
431
                [% IF ( female ) %]
Lines 449-459 $(document).ready(function() { Link Here
449
                <label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
449
                <label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
450
            [% END %]
450
            [% END %]
451
451
452
       	</li>
452
        </li>
453
        [% END %]
453
        [% END %]
454
    [% END %]
454
    [% END %]
455
		</ol>
455
        </ol>
456
	</fieldset>
456
    </fieldset>
457
[% END # hide fieldset %]
457
[% END # hide fieldset %]
458
458
459
[% IF ( showguarantor ) %]<input type="hidden" id="guarantorid" name="guarantorid"   value="[% guarantorid %]" />
459
[% IF ( showguarantor ) %]<input type="hidden" id="guarantorid" name="guarantorid"   value="[% guarantorid %]" />
Lines 461-482 $(document).ready(function() { Link Here
461
        <legend>Guarantor information</legend>
461
        <legend>Guarantor information</legend>
462
        <ol>
462
        <ol>
463
[% IF ( P ) %]
463
[% IF ( P ) %]
464
	        [% IF ( guarantorid ) %]
464
            [% IF ( guarantorid ) %]
465
	        <li id="contact-details">
465
            <li id="contact-details">
466
	        [% ELSE %]
466
            [% ELSE %]
467
	        <li id="contact-details" style="display: none">
467
            <li id="contact-details" style="display: none">
468
	        [% END %]
468
            [% END %]
469
	            <span class="label">Organization #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
469
                <span class="label">Organization #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
470
	        </li>
470
            </li>
471
	        <li>
471
            <li>
472
	            <label for="contactname">Organization name: </label>
472
                <label for="contactname">Organization name: </label>
473
	            [% IF ( guarantorid ) %]
473
                [% IF ( guarantorid ) %]
474
	            <span>[% contactname %]</span>
474
                <span>[% contactname %]</span>
475
	            <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
475
                <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
476
	            [% ELSE %]
476
                [% ELSE %]
477
                    <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" />
477
                    <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" />
478
	            [% END %]
478
                [% END %]
479
	        </li>
479
            </li>
480
[% ELSE %]
480
[% ELSE %]
481
 [% IF ( C ) %]
481
 [% IF ( C ) %]
482
 [% IF ( guarantorid ) %]
482
 [% IF ( guarantorid ) %]
Lines 572-578 $(document).ready(function() { Link Here
572
      [% END %]
572
      [% END %]
573
      Primary phone: </label>
573
      Primary phone: </label>
574
        <input type="text" id="phone" name="phone" value="[% phone %]" />
574
        <input type="text" id="phone" name="phone" value="[% phone %]" />
575
	  [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
575
      [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
576
576
577
    </li>
577
    </li>
578
        [% END %]
578
        [% END %]
Lines 585-591 $(document).ready(function() { Link Here
585
      [% END %]
585
      [% END %]
586
      Secondary phone: </label>
586
      Secondary phone: </label>
587
    <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]" />
587
    <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]" />
588
	  [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
588
      [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
589
    </li>
589
    </li>
590
        [% END %]
590
        [% END %]
591
        [% UNLESS nomobile %]
591
        [% UNLESS nomobile %]
Lines 597-603 $(document).ready(function() { Link Here
597
      [% END %]
597
      [% END %]
598
      Other phone: </label>
598
      Other phone: </label>
599
        <input type="text" id="mobile" name="mobile" value="[% mobile %]" />
599
        <input type="text" id="mobile" name="mobile" value="[% mobile %]" />
600
	  [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
600
      [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
601
    </li>
601
    </li>
602
        [% END %]
602
        [% END %]
603
        [% UNLESS noemail %]
603
        [% UNLESS noemail %]
Lines 609-615 $(document).ready(function() { Link Here
609
      [% END %]
609
      [% END %]
610
      Primary email: </label>
610
      Primary email: </label>
611
        <input type="text" id="email" name="email" size="45" value="[% email %]" />
611
        <input type="text" id="email" name="email" size="45" value="[% email %]" />
612
	  [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
612
      [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
613
613
614
    </li>
614
    </li>
615
        [% END %]
615
        [% END %]
Lines 622-628 $(document).ready(function() { Link Here
622
      [% END %]
622
      [% END %]
623
      Secondary email: </label>
623
      Secondary email: </label>
624
        <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]" />
624
        <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]" />
625
	  [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
625
      [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
626
    </li>
626
    </li>
627
        [% END %]
627
        [% END %]
628
        [% UNLESS nofax %]
628
        [% UNLESS nofax %]
Lines 634-643 $(document).ready(function() { Link Here
634
      [% END %]
634
      [% END %]
635
      Fax: </label>
635
      Fax: </label>
636
        <input type="text" id="fax" name="fax" value="[% fax %]" />
636
        <input type="text" id="fax" name="fax" value="[% fax %]" />
637
	  [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
637
      [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
638
    </li>
638
    </li>
639
        [% END %]
639
        [% END %]
640
	</ol>
640
    </ol>
641
  </fieldset>
641
  </fieldset>
642
[%END # hide fieldset %]
642
[%END # hide fieldset %]
643
643
Lines 771-1010 $(document).ready(function() { Link Here
771
            [% END %]
771
            [% END %]
772
        </li>
772
        </li>
773
    [% END %]
773
    [% END %]
774
	</ol>
774
    </ol>
775
  </fieldset>
775
  </fieldset>
776
    [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
776
    [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
777
	<fieldset class="rows" id="memberentry_subscription">
777
    <fieldset class="rows" id="memberentry_subscription">
778
	<legend id="library_setup_lgd">Library set-up</legend><ol>
778
    <legend id="library_setup_lgd">Library set-up</legend><ol>
779
        [% UNLESS nodateenrolled %]
779
        [% UNLESS nodateenrolled %]
780
		<li>
780
        <li>
781
			[% IF ( mandatorydateenrolled ) %]
781
            [% IF ( mandatorydateenrolled ) %]
782
            <label for="from" class="required">
782
            <label for="from" class="required">
783
			[% ELSE %]
783
            [% ELSE %]
784
            <label for="from">
784
            <label for="from">
785
			[% END %]
785
            [% END %]
786
			Registration date: </label>
786
            Registration date: </label>
787
            [% IF ( dateformat == "metric" ) %]
787
            [% IF ( dateformat == "metric" ) %]
788
                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" class="datepickerfrom" />
788
                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" class="datepickerfrom" />
789
            [% ELSE %]
789
            [% ELSE %]
790
                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled %]" class="datepickerfrom" />
790
                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled %]" class="datepickerfrom" />
791
            [% END %]
791
            [% END %]
792
		[% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %]
792
        [% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %]
793
		[% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %]
793
        [% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %]
794
		<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
794
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
795
		</li>
795
        </li>
796
        [% END %]
796
        [% END %]
797
        [% UNLESS nodateexpiry %]
797
        [% UNLESS nodateexpiry %]
798
		<li>
798
        <li>
799
        [% ELSE %]
799
        [% ELSE %]
800
                <li style="display:none">
800
                <li style="display:none">
801
        [% END %]
801
        [% END %]
802
			[% IF ( mandatorydateexpiry ) %]
802
            [% IF ( mandatorydateexpiry ) %]
803
            <label for="to" class="required">
803
            <label for="to" class="required">
804
			[% ELSE %]
804
            [% ELSE %]
805
            <label for="to">
805
            <label for="to">
806
			[% END %]
806
            [% END %]
807
			Expiry date (leave blank for auto calc): </label>
807
            Expiry date (leave blank for auto calc): </label>
808
            [% IF ( dateformat == "metric" ) %]
808
            [% IF ( dateformat == "metric" ) %]
809
				[% UNLESS ( opadd ) %]
809
                [% UNLESS ( opadd ) %]
810
                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% UNLESS opduplicate %][% dateexpiry %][% END %]" class="datepickerto" />
810
                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% UNLESS opduplicate %][% dateexpiry %][% END %]" class="datepickerto" />
811
				[% ELSE %]
811
                [% ELSE %]
812
                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" />
812
                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" />
813
				[% END %]
813
                [% END %]
814
			[% ELSE %]
814
            [% ELSE %]
815
				[% UNLESS ( opadd ) %]
815
                [% UNLESS ( opadd ) %]
816
                <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% UNLESS opduplicate %][% dateexpiry %][% END %]" class="datepickerto" />
816
                <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% UNLESS opduplicate %][% dateexpiry %][% END %]" class="datepickerto" />
817
				[% ELSE %]
817
                [% ELSE %]
818
                <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" class="datepickerto" />
818
                <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" class="datepickerto" />
819
				[% END %]
819
                [% END %]
820
			[% END %]
820
            [% END %]
821
		[% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %]
821
        [% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %]
822
		[% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %]
822
        [% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %]
823
		<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
823
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
824
		</li>
824
        </li>
825
        [% UNLESS noopacnote %]
825
        [% UNLESS noopacnote %]
826
		<li>
826
        <li>
827
			[% IF ( mandatoryopacnote ) %]
827
            [% IF ( mandatoryopacnote ) %]
828
				<label for="opacnote" class="required">
828
                <label for="opacnote" class="required">
829
			[% ELSE %]
829
            [% ELSE %]
830
				<label for="opacnote">
830
                <label for="opacnote">
831
			[% END %]
831
            [% END %]
832
			OPAC note: </label>
832
            OPAC note: </label>
833
            <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% UNLESS opduplicate %][% opacnote %][% END %]</textarea>
833
            <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% UNLESS opduplicate %][% opacnote %][% END %]</textarea>
834
			<div class="hint">This message appears on this patron's user page in the OPAC</div>
834
            <div class="hint">This message appears on this patron's user page in the OPAC</div>
835
	  [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %]
835
      [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %]
836
		</li>
836
        </li>
837
        [% END %]
837
        [% END %]
838
        [% UNLESS noborrowernotes %]
838
        [% UNLESS noborrowernotes %]
839
		<li>
839
        <li>
840
			[% IF ( mandatoryborrowernotes ) %]
840
            [% IF ( mandatoryborrowernotes ) %]
841
				<label for="borrowernotes" class="required">
841
                <label for="borrowernotes" class="required">
842
			[% ELSE %]
842
            [% ELSE %]
843
				<label for="borrowernotes">
843
                <label for="borrowernotes">
844
			[% END %]
844
            [% END %]
845
			Circulation note: </label>
845
            Circulation note: </label>
846
            <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% UNLESS opduplicate %][% borrowernotes %][% END %]</textarea>
846
            <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% UNLESS opduplicate %][% borrowernotes %][% END %]</textarea>
847
			<div class="hint">This message displays when checking out to this patron</div>
847
            <div class="hint">This message displays when checking out to this patron</div>
848
	  [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %]
848
      [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %]
849
		</li>
849
        </li>
850
        [% END %]
850
        [% END %]
851
		</ol>
851
        </ol>
852
	</fieldset>
852
    </fieldset>
853
    [% END # hide fieldset %]
853
    [% END # hide fieldset %]
854
854
855
    [% UNLESS nouserid && nopassword %]
855
    [% UNLESS nouserid && nopassword %]
856
	<fieldset class="rows" id="memberentry_userid">
856
    <fieldset class="rows" id="memberentry_userid">
857
        <legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol>
857
        <legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol>
858
        [% UNLESS nouserid %]
858
        [% UNLESS nouserid %]
859
		<li>
859
        <li>
860
			[% IF ( mandatoryuserid ) %]
860
            [% IF ( mandatoryuserid ) %]
861
			<label for="userid" class="required">
861
            <label for="userid" class="required">
862
			[% ELSE %]
862
            [% ELSE %]
863
			<label for="userid">
863
            <label for="userid">
864
			[% END %]
864
            [% END %]
865
			Username: </label>
865
            Username: </label>
866
866
867
[% IF ( NoUpdateLogin ) %]
867
[% IF ( NoUpdateLogin ) %]
868
	[% IF ( opduplicate ) %]
868
    [% IF ( opduplicate ) %]
869
		<input type="text" id="userid" name="userid" size="20" disabled="disabled" />
869
        <input type="text" id="userid" name="userid" size="20" disabled="disabled" />
870
	[% ELSE %]
870
    [% ELSE %]
871
		<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid %]" />
871
        <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid %]" />
872
	[% END %]
872
    [% END %]
873
[% ELSE %]
873
[% ELSE %]
874
	[% IF ( opduplicate ) %]
874
    [% IF ( opduplicate ) %]
875
		<input type="text" id="userid" name="userid" size="20" value="" />
875
        <input type="text" id="userid" name="userid" size="20" value="" />
876
	[% ELSE %]
876
    [% ELSE %]
877
		<input type="text" id="userid" name="userid" size="20" value="[% userid %]" />
877
        <input type="text" id="userid" name="userid" size="20" value="[% userid %]" />
878
	[% END %]
878
    [% END %]
879
[% END %]
879
[% END %]
880
880
881
[%# Dummy input to avoid Firefox from using userid/password saved for authentication %]
881
[%# Dummy input to avoid Firefox from using userid/password saved for authentication %]
882
<input type="text" disabled="disabled" style="display:none" />
882
<input type="text" disabled="disabled" style="display:none" />
883
883
884
	  [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
884
      [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
885
		</li>
885
        </li>
886
        [%END %]
886
        [%END %]
887
        [% UNLESS nopassword %]
887
        [% UNLESS nopassword %]
888
		<li>
888
        <li>
889
			[% IF ( mandatorypassword ) %]
889
            [% IF ( mandatorypassword ) %]
890
			<label for="password" class="required">
890
            <label for="password" class="required">
891
			[% ELSE %]
891
            [% ELSE %]
892
			<label for="password">
892
            <label for="password">
893
			[% END %]
893
            [% END %]
894
			Password: </label>
894
            Password: </label>
895
			[% IF ( opadd ) %]
895
            [% IF ( opadd ) %]
896
			[% IF ( NoUpdateLogin ) %]
896
            [% IF ( NoUpdateLogin ) %]
897
				[% IF ( opduplicate ) %]
897
                [% IF ( opduplicate ) %]
898
					<input type="password" id="password" name="password" size="20"  disabled="disabled" />
898
                    <input type="password" id="password" name="password" size="20"  disabled="disabled" />
899
				[% ELSE %]
899
                [% ELSE %]
900
					<input type="password" id="password" name="password" size="20"  disabled="disabled" value="[% password %]" />
900
                    <input type="password" id="password" name="password" size="20"  disabled="disabled" value="[% password %]" />
901
				[% END %]
901
                [% END %]
902
[% ELSE %]
902
[% ELSE %]
903
				[% IF ( opduplicate ) %]
903
                [% IF ( opduplicate ) %]
904
					<input type="password" id="password" name="password" size="20" />
904
                    <input type="password" id="password" name="password" size="20" />
905
				[% ELSE %]
905
                [% ELSE %]
906
					<input type="password" id="password" name="password" size="20" value="[% password %]" />
906
                    <input type="password" id="password" name="password" size="20" value="[% password %]" />
907
				[% END %]
907
                [% END %]
908
[% END %]
908
[% END %]
909
			[% ELSE %]
909
            [% ELSE %]
910
			[% IF ( password ) %]
910
            [% IF ( password ) %]
911
				[% IF ( NoUpdateLogin ) %]
911
                [% IF ( NoUpdateLogin ) %]
912
					<input type="password" id="password" name="password" size="20"  disabled="disabled" value="****" />
912
                    <input type="password" id="password" name="password" size="20"  disabled="disabled" value="****" />
913
				[% ELSE %]
913
                [% ELSE %]
914
					[% IF ( opduplicate ) %]
914
                    [% IF ( opduplicate ) %]
915
						<input type="password" id="password" name="password" size="20" />
915
                        <input type="password" id="password" name="password" size="20" />
916
					[% ELSE %]
916
                    [% ELSE %]
917
						<input type="password" id="password" name="password" size="20" value="****" />
917
                        <input type="password" id="password" name="password" size="20" value="****" />
918
					[% END %]
918
                    [% END %]
919
				[% END %]
919
                [% END %]
920
			[% ELSE %]
920
            [% ELSE %]
921
				[% IF ( NoUpdateLogin ) %]
921
                [% IF ( NoUpdateLogin ) %]
922
					<input type="password" id="password" name="password" size="20"  disabled="disabled" value="" />
922
                    <input type="password" id="password" name="password" size="20"  disabled="disabled" value="" />
923
				[% ELSE %]
923
                [% ELSE %]
924
					<input type="password" id="password" name="password" size="20" value="" />
924
                    <input type="password" id="password" name="password" size="20" value="" />
925
				[% END %]
925
                [% END %]
926
			[% END %]
926
            [% END %]
927
			[% END %]
927
            [% END %]
928
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_short_password ) %]<span class="required">Password is too short</span>[% END %]
928
      [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_short_password ) %]<span class="required">Password is too short</span>[% END %]
929
[% IF ( minPasswordLength ) %]<div class="hint">Minimum password length: [% minPasswordLength %]</div>[% END %]
929
[% IF ( minPasswordLength ) %]<div class="hint">Minimum password length: [% minPasswordLength %]</div>[% END %]
930
		</li>
930
        </li>
931
		<li>
931
        <li>
932
			[% IF ( mandatorypassword ) %]
932
            [% IF ( mandatorypassword ) %]
933
			<label for="password2" class="required">
933
            <label for="password2" class="required">
934
			[% ELSE %]
934
            [% ELSE %]
935
			<label for="password2">
935
            <label for="password2">
936
			[% END %]
936
            [% END %]
937
			Confirm password: </label>
937
            Confirm password: </label>
938
			[% IF ( opadd ) %]
938
            [% IF ( opadd ) %]
939
			[% IF ( NoUpdateLogin ) %]
939
            [% IF ( NoUpdateLogin ) %]
940
				[% IF ( opduplicate ) %]
940
                [% IF ( opduplicate ) %]
941
					<input type="password" id="password2" name="password2" size="20"  disabled="disabled" />
941
                    <input type="password" id="password2" name="password2" size="20"  disabled="disabled" />
942
				[% ELSE %]
942
                [% ELSE %]
943
					<input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="[% password %]" />
943
                    <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="[% password %]" />
944
				[% END %]
944
                [% END %]
945
[% ELSE %]
945
[% ELSE %]
946
				[% IF ( opduplicate ) %]
946
                [% IF ( opduplicate ) %]
947
					<input type="password" id="password2" name="password2" size="20" />
947
                    <input type="password" id="password2" name="password2" size="20" />
948
				[% ELSE %]
948
                [% ELSE %]
949
					<input type="password" id="password2" name="password2" size="20" value="[% password %]" />
949
                    <input type="password" id="password2" name="password2" size="20" value="[% password %]" />
950
				[% END %]
950
                [% END %]
951
[% END %]
951
[% END %]
952
			[% ELSE %]
952
            [% ELSE %]
953
			[% IF ( password ) %]
953
            [% IF ( password ) %]
954
				[% IF ( NoUpdateLogin ) %]
954
                [% IF ( NoUpdateLogin ) %]
955
					<input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="****" />
955
                    <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="****" />
956
				[% ELSE %]
956
                [% ELSE %]
957
					[% IF ( opduplicate ) %]
957
                    [% IF ( opduplicate ) %]
958
						<input type="password" id="password2" name="password2" size="20" />
958
                        <input type="password" id="password2" name="password2" size="20" />
959
					[% ELSE %]
959
                    [% ELSE %]
960
						<input type="password" id="password2" name="password2" size="20" value="****" />
960
                        <input type="password" id="password2" name="password2" size="20" value="****" />
961
					[% END %]
961
                    [% END %]
962
				[% END %]
962
                [% END %]
963
			[% ELSE %]
963
            [% ELSE %]
964
				[% IF ( NoUpdateLogin ) %]
964
                [% IF ( NoUpdateLogin ) %]
965
					<input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="" />
965
                    <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="" />
966
				[% ELSE %]
966
                [% ELSE %]
967
					<input type="password" id="password2" name="password2" size="20" value="" />
967
                    <input type="password" id="password2" name="password2" size="20" value="" />
968
				[% END %]
968
                [% END %]
969
			[% END %]
969
            [% END %]
970
			[% END %]
970
            [% END %]
971
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
971
      [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
972
		</li>
972
        </li>
973
		</ol>
973
        </ol>
974
		</fieldset>
974
        </fieldset>
975
        [% END # hide fieldset %][% END %]
975
        [% END # hide fieldset %][% END %]
976
		<!--this zones are not necessary in modif mode -->
976
        <!--this zones are not necessary in modif mode -->
977
        [% UNLESS ( opadd || opduplicate ) %]
977
        [% UNLESS ( opadd || opduplicate ) %]
978
		<fieldset class="rows">
978
        <fieldset class="rows">
979
            <legend>Patron account flags</legend>
979
            <legend>Patron account flags</legend>
980
			<ol class="radio">
980
            <ol class="radio">
981
			[% FOREACH flagloo IN flagloop %]
981
            [% FOREACH flagloo IN flagloop %]
982
				<li><label class="radio" for="yes[% flagloo.name %]">
982
                <li><label class="radio" for="yes[% flagloo.name %]">
983
                [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %]
983
                [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %]
984
                [% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %]
984
                [% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %]
985
                </label>
985
                </label>
986
                [% IF CAN_user_circulate_manage_restrictions %]
986
                [% IF CAN_user_circulate_manage_restrictions %]
987
				<label for="yes[% flagloo.name %]">Yes </label>
987
                <label for="yes[% flagloo.name %]">Yes </label>
988
				[% IF ( flagloo.yes ) %]
988
                [% IF ( flagloo.yes ) %]
989
				<input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" checked="checked" />
989
                <input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" checked="checked" />
990
				[% ELSE %]
990
                [% ELSE %]
991
				<input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" />
991
                <input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" />
992
				[% END %]
992
                [% END %]
993
				<label for="no[% flagloo.name %]">No </label>
993
                <label for="no[% flagloo.name %]">No </label>
994
				[% IF ( flagloo.no ) %]
994
                [% IF ( flagloo.no ) %]
995
				<input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" checked="checked"/>
995
                <input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" checked="checked"/>
996
				[% ELSE %]
996
                [% ELSE %]
997
				<input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" />
997
                <input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" />
998
				[% END %]
998
                [% END %]
999
                [% ELSE %]
999
                [% ELSE %]
1000
                  [% IF flagloo.yes %]Yes[% ELSE %]No[% END %]
1000
                  [% IF flagloo.yes %]Yes[% ELSE %]No[% END %]
1001
                [% END %]
1001
                [% END %]
1002
1002
1003
            </li>
1003
            </li>
1004
			[% END %]
1004
            [% END %]
1005
1005
1006
			</ol>
1006
            </ol>
1007
			</fieldset>
1007
            </fieldset>
1008
1008
1009
              <fieldset class="rows">
1009
              <fieldset class="rows">
1010
                <legend>Patron restrictions</legend>
1010
                <legend>Patron restrictions</legend>
Lines 1058-1064 $(document).ready(function() { Link Here
1058
                    </fieldset>
1058
                    </fieldset>
1059
                [% END %]
1059
                [% END %]
1060
            </fieldset>
1060
            </fieldset>
1061
		[% END %]
1061
        [% END %]
1062
1062
1063
[% END %]
1063
[% END %]
1064
1064
Lines 1190-1198 $(document).ready(function() { Link Here
1190
        <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
1190
        <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
1191
     [% IF ( opadd ) %]
1191
     [% IF ( opadd ) %]
1192
       <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
1192
       <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
1193
	   [% ELSE %]
1193
       [% ELSE %]
1194
	  <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a>
1194
      <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a>
1195
	   [% END %]
1195
       [% END %]
1196
    </fieldset>
1196
    </fieldset>
1197
[% END %]
1197
[% END %]
1198
1198
1199
- 

Return to bug 3534