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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-32 / +48 lines)
Lines 99-111 legend:hover { Link Here
99
                        [% IF ( check_member ) %]
99
                        [% IF ( check_member ) %]
100
                            <div class="dialog alert">
100
                            <div class="dialog alert">
101
                                <h3>Duplicate patron record?</h3>
101
                                <h3>Duplicate patron record?</h3>
102
                                <p><a href="#" onclick="Dopop('moremember.pl?print=brief&amp;borrowernumber=[% check_member | uri %]');return false;" ><i class="fa fa-window-restore"></i> View existing record</a></p>
102
                                <p><a class="popup_patronview" href="/cgi-bin/koha/members/moremember.pl?print=brief&amp;borrowernumber=[% check_member | uri %]"><i class="fa fa-window-restore"></i> View existing record</a></p>
103
                                <button id="duplicate" type="submit" class="new">
103
                                <button id="duplicate" type="submit" class="new"> <i class="fa fa-pencil"></i> It is a duplicate. Edit existing record </button>
104
                                    <i class="fa fa-pencil"></i> It is a duplicate. Edit existing record
104
                                <button type="submit" id="not-duplicate" class="new"> <i class="fa fa-plus"></i> Not a duplicate. Save as new record </button>
105
                                </button>
106
                                <button type="submit" id="not-duplicate" class="new">
107
                                    <i class="fa fa-plus"></i> Not a duplicate. Save as new record
108
                                </button>
109
                            </div>
105
                            </div>
110
                        [% END %]
106
                        [% END %]
111
107
Lines 321-327 legend:hover { Link Here
321
                                                        [% END %]
317
                                                        [% END %]
322
                                                        Date of birth:
318
                                                        Date of birth:
323
                                                        </label>
319
                                                        </label>
324
                                                        <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="write_age();" value="[% dateofbirth | html UNLESS opduplicate %]" class="datepicker" />
320
                                                        <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="[% dateofbirth | html UNLESS opduplicate %]" class="datepicker" />
325
                                                         [% IF ( mandatorydateofbirth ) %]
321
                                                         [% IF ( mandatorydateofbirth ) %]
326
                                                            <span class="required">Required</span>
322
                                                            <span class="required">Required</span>
327
                                                        [% END %]
323
                                                        [% END %]
Lines 817-823 legend:hover { Link Here
817
813
818
                                        <li>
814
                                        <li>
819
                                            <label for="categorycode_entry" class="required">Category: </label>
815
                                            <label for="categorycode_entry" class="required">Category: </label>
820
                                            <select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);">
816
                                            <select id="categorycode_entry" name="categorycode">
821
                                                [% FOREACH typeloo IN typeloop %]
817
                                                [% FOREACH typeloo IN typeloop %]
822
                                                    [% FOREACH categoryloo IN typeloo.categoryloop %]
818
                                                    [% FOREACH categoryloo IN typeloo.categoryloop %]
823
                                                        [% IF ( loop.first ) %]
819
                                                        [% IF ( loop.first ) %]
Lines 935-945 legend:hover { Link Here
935
                                                [% END %]
931
                                                [% END %]
936
                                                    Registration date:
932
                                                    Registration date:
937
                                                </label>
933
                                                </label>
938
                                                [% IF ( dateformat == "metric" ) %]
934
                                                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" />
939
                                                    <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled | html %]" class="datepickerfrom" />
940
                                                [% ELSE %]
941
                                                    <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" />
942
                                                [% END %]
943
                                                [% IF ( mandatorydateenrolled ) %]
935
                                                [% IF ( mandatorydateenrolled ) %]
944
                                                    <span class="required">Required</span>
936
                                                    <span class="required">Required</span>
945
                                                [% END %]
937
                                                [% END %]
Lines 962-980 legend:hover { Link Here
962
                                            [% END %]
954
                                            [% END %]
963
                                                    Expiry date (leave blank for auto calc):
955
                                                    Expiry date (leave blank for auto calc):
964
                                                </label>
956
                                                </label>
965
                                                [% IF ( dateformat == "metric" ) %]
957
                                                [% UNLESS ( opadd ) %]
966
                                                    [% UNLESS ( opadd ) %]
958
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" />
967
                                                        <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" />
968
                                                    [% ELSE %]
969
                                                        <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" />
970
                                                    [% END %]
971
                                                [% ELSE %]
959
                                                [% ELSE %]
972
                                                    [% UNLESS ( opadd ) %]
960
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html %]" class="datepickerto" />
973
                                                        <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" />
961
                                                [% END %]
974
                                                    [% ELSE %]
975
                                                        <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html %]" class="datepickerto" />
976
                                                    [% END %]
977
                                                [% END # /IF ( dateformat == "metric" ) %]
978
                                                [% IF ( mandatorydateexpiry ) %]
962
                                                [% IF ( mandatorydateexpiry ) %]
979
                                                    <span class="required">Required</span>
963
                                                    <span class="required">Required</span>
980
                                                [% END %]
964
                                                [% END %]
Lines 1261-1272 legend:hover { Link Here
1261
                                                <ol>
1245
                                                <ol>
1262
                                                    <li>
1246
                                                    <li>
1263
                                                        <label for="debarred_comment">Comment: </label>
1247
                                                        <label for="debarred_comment">Comment: </label>
1264
                                                        <input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" />
1248
                                                        <input type="text" id="debarred_comment" name="debarred_comment" />
1265
                                                    </li>
1249
                                                    </li>
1266
                                                    <li>
1250
                                                    <li>
1267
                                                        <label for="debarred_expiration">Expiration: </label>
1251
                                                        <label for="debarred_expiration">Expiration: </label>
1268
                                                        <input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" />
1252
                                                        <input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" type="text" />
1269
                                                        <a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a>
1253
                                                        <a href="#" id="clear_debarred_expiration">Clear date</a>
1270
                                                    </li>
1254
                                                    </li>
1271
                                                </ol>
1255
                                                </ol>
1272
                                                <p>
1256
                                                <p>
Lines 1354-1362 legend:hover { Link Here
1354
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1338
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1355
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1339
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1356
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1340
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1357
                                                            <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a>
1341
                                                            <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash"></i> Clear</a>
1358
                                                            [% IF ( patron_attribute.repeatable ) %]
1342
                                                            [% IF ( patron_attribute.repeatable ) %]
1359
                                                                <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1343
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1360
                                                            [% END %]
1344
                                                            [% END %]
1361
                                                        </li>
1345
                                                        </li>
1362
                                                    [% END # /FOREACH patron_attribute %]
1346
                                                    [% END # /FOREACH patron_attribute %]
Lines 1619-1624 legend:hover { Link Here
1619
                $("input[name='nodouble']").val('1');
1603
                $("input[name='nodouble']").val('1');
1620
                $('#entryform').submit();
1604
                $('#entryform').submit();
1621
            });
1605
            });
1606
1607
            $(".popup_patronview").on("click", function(e){
1608
                e.preventDefault();
1609
                var url = $(this).attr("href");
1610
                openWindow( url, "patronview" );
1611
            });
1612
1613
            $("#dateofbirth").on("change", function(){
1614
                 write_age();
1615
            });
1616
1617
            $("#debarred_comment, #debarred_expiration").on("change", function(){
1618
                $("#add_debarment").val(1);
1619
            });
1620
1621
            $("#clear_debarred_expiration").on("click", function(e){
1622
                e.preventDefault();
1623
                $('#debarred_expiration').val("");
1624
            });
1625
1626
            $(".clear_attribute").on("click", function(e){
1627
                e.preventDefault();
1628
                clear_entry( this );
1629
            });
1630
1631
            $(".clone_attribute").on("click", function(e){
1632
                e.preventDefault();
1633
                clone_entry( this );
1634
            });
1635
1636
            $("#categorycode_entry").on("change", function(){
1637
                update_category_code(this);
1638
            });
1622
        });
1639
        });
1623
1640
1624
        var MSG_SEPARATOR = _("Separator must be / in field %s");
1641
        var MSG_SEPARATOR = _("Separator must be / in field %s");
1625
- 

Return to bug 16457