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 962-972 legend:hover { Link Here
962
                                                [% END %]
958
                                                [% END %]
963
                                                    Registration date:
959
                                                    Registration date:
964
                                                </label>
960
                                                </label>
965
                                                [% IF ( dateformat == "metric" ) %]
961
                                                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" />
966
                                                    <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" />
967
                                                [% ELSE %]
968
                                                    <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" />
969
                                                [% END %]
970
                                                [% IF ( mandatorydateenrolled ) %]
962
                                                [% IF ( mandatorydateenrolled ) %]
971
                                                    <span class="required">Required</span>
963
                                                    <span class="required">Required</span>
972
                                                [% END %]
964
                                                [% END %]
Lines 989-1007 legend:hover { Link Here
989
                                            [% END %]
981
                                            [% END %]
990
                                                    Expiry date (leave blank for auto calc):
982
                                                    Expiry date (leave blank for auto calc):
991
                                                </label>
983
                                                </label>
992
                                                [% IF ( dateformat == "metric" ) %]
984
                                                [% UNLESS ( opadd ) %]
993
                                                    [% UNLESS ( opadd ) %]
985
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" />
994
                                                        <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" />
995
                                                    [% ELSE %]
996
                                                        <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" />
997
                                                    [% END %]
998
                                                [% ELSE %]
986
                                                [% ELSE %]
999
                                                    [% UNLESS ( opadd ) %]
987
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html %]" class="datepickerto" />
1000
                                                        <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" />
988
                                                [% END %]
1001
                                                    [% ELSE %]
1002
                                                        <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html %]" class="datepickerto" />
1003
                                                    [% END %]
1004
                                                [% END # /IF ( dateformat == "metric" ) %]
1005
                                                [% IF ( mandatorydateexpiry ) %]
989
                                                [% IF ( mandatorydateexpiry ) %]
1006
                                                    <span class="required">Required</span>
990
                                                    <span class="required">Required</span>
1007
                                                [% END %]
991
                                                [% END %]
Lines 1288-1299 legend:hover { Link Here
1288
                                                <ol>
1272
                                                <ol>
1289
                                                    <li>
1273
                                                    <li>
1290
                                                        <label for="debarred_comment">Comment: </label>
1274
                                                        <label for="debarred_comment">Comment: </label>
1291
                                                        <input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" />
1275
                                                        <input type="text" id="debarred_comment" name="debarred_comment" />
1292
                                                    </li>
1276
                                                    </li>
1293
                                                    <li>
1277
                                                    <li>
1294
                                                        <label for="debarred_expiration">Expiration: </label>
1278
                                                        <label for="debarred_expiration">Expiration: </label>
1295
                                                        <input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" />
1279
                                                        <input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" type="text" />
1296
                                                        <a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a>
1280
                                                        <a href="#" id="clear_debarred_expiration">Clear date</a>
1297
                                                    </li>
1281
                                                    </li>
1298
                                                </ol>
1282
                                                </ol>
1299
                                                <p>
1283
                                                <p>
Lines 1381-1389 legend:hover { Link Here
1381
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1365
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1382
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1366
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1383
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1367
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1384
                                                            <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a>
1368
                                                            <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash"></i> Clear</a>
1385
                                                            [% IF ( patron_attribute.repeatable ) %]
1369
                                                            [% IF ( patron_attribute.repeatable ) %]
1386
                                                                <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1370
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1387
                                                            [% END %]
1371
                                                            [% END %]
1388
                                                        </li>
1372
                                                        </li>
1389
                                                    [% END # /FOREACH patron_attribute %]
1373
                                                    [% END # /FOREACH patron_attribute %]
Lines 1646-1651 legend:hover { Link Here
1646
                $("input[name='nodouble']").val('1');
1630
                $("input[name='nodouble']").val('1');
1647
                $('#entryform').submit();
1631
                $('#entryform').submit();
1648
            });
1632
            });
1633
1634
            $(".popup_patronview").on("click", function(e){
1635
                e.preventDefault();
1636
                var url = $(this).attr("href");
1637
                openWindow( url, "patronview" );
1638
            });
1639
1640
            $("#dateofbirth").on("change", function(){
1641
                 write_age();
1642
            });
1643
1644
            $("#debarred_comment, #debarred_expiration").on("change", function(){
1645
                $("#add_debarment").val(1);
1646
            });
1647
1648
            $("#clear_debarred_expiration").on("click", function(e){
1649
                e.preventDefault();
1650
                $('#debarred_expiration').val("");
1651
            });
1652
1653
            $(".clear_attribute").on("click", function(e){
1654
                e.preventDefault();
1655
                clear_entry( this );
1656
            });
1657
1658
            $(".clone_attribute").on("click", function(e){
1659
                e.preventDefault();
1660
                clone_entry( this );
1661
            });
1662
1663
            $("#categorycode_entry").on("change", function(){
1664
                update_category_code(this);
1665
            });
1649
        });
1666
        });
1650
1667
1651
        var MSG_SEPARATOR = _("Separator must be / in field %s");
1668
        var MSG_SEPARATOR = _("Separator must be / in field %s");
1652
- 

Return to bug 16457