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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-3 / +18 lines)
Lines 1-4 Link Here
1
[% IF ( opduplicate ) %][% SET focusAction = "clearDupe" %][% END %]
1
[% IF ( opduplicate ) %][% SET focusAction = "clearDupe" %][% END %]
2
[% USE Koha %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Patrons &rsaquo; 
5
<title>Koha &rsaquo; Patrons &rsaquo; 
Lines 103-108 Link Here
103
        $(mytables).find(" li[data-category_code='']").show();
104
        $(mytables).find(" li[data-category_code='']").show();
104
    }
105
    }
105
106
107
    function checkAcctMail() {
108
        if ( $("#mailacctdetails").length ) { // does it exist?
109
            $("#mailacctdetails").prop('checked', true);
110
        }
111
    }
112
106
        var MSG_SEPARATOR = _("Separator must be / in field %s");
113
        var MSG_SEPARATOR = _("Separator must be / in field %s");
107
        var MSG_INCORRECT_DAY = _("Invalid day entered in field %s");
114
        var MSG_INCORRECT_DAY = _("Invalid day entered in field %s");
108
        var MSG_INCORRECT_MONTH = _("Invalid month entered in field %s");
115
        var MSG_INCORRECT_MONTH = _("Invalid month entered in field %s");
Lines 1076-1082 Link Here
1076
	[% IF ( opduplicate ) %]
1083
	[% IF ( opduplicate ) %]
1077
		<input type="text" id="userid" name="userid" size="20" value="" />
1084
		<input type="text" id="userid" name="userid" size="20" value="" />
1078
	[% ELSE %]
1085
	[% ELSE %]
1079
		<input type="text" id="userid" name="userid" size="20" value="[% userid %]" />
1086
        <input type="text" id="userid" name="userid" size="20" value="[% userid %]" onchange="checkAcctMail();" />
1080
	[% END %]
1087
	[% END %]
1081
[% END %]
1088
[% END %]
1082
1089
Lines 1113-1119 Link Here
1113
					[% IF ( opduplicate ) %]
1120
					[% IF ( opduplicate ) %]
1114
						<input type="password" id="password" name="password" size="20" />
1121
						<input type="password" id="password" name="password" size="20" />
1115
					[% ELSE %]
1122
					[% ELSE %]
1116
						<input type="password" id="password" name="password" size="20" value="****" />
1123
                        <input type="password" id="password" name="password" size="20" value="****" onchange="checkAcctMail();" />
1117
					[% END %]
1124
					[% END %]
1118
				[% END %]
1125
				[% END %]
1119
			[% ELSE %]
1126
			[% ELSE %]
Lines 1169-1174 Link Here
1169
			[% END %]
1176
			[% END %]
1170
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
1177
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
1171
		</li>
1178
		</li>
1179
        [% IF Koha.Preference('AutoEmailOpacUser') %]
1180
            [% IF opadd || opduplicate # will already trigger automatic mail %]
1181
            [% ELSE %]
1182
                <li>
1183
                    <label for="mailacctdetails">&nbsp;</label>
1184
                    <input type="checkbox" id="mailacctdetails" name="mailacctdetails"> Mail account details to patron when saving this record</input>
1185
                </li>
1186
            [% END %]
1187
        [% END %]
1172
		</ol>
1188
		</ol>
1173
		</fieldset>
1189
		</fieldset>
1174
        [% END # hide fieldset %][% END %]
1190
        [% END # hide fieldset %][% END %]
1175
- 

Return to bug 13096