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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc (-25 / +5 lines)
Lines 63-75 function update_child() { Link Here
63
	
63
	
64
		var moremenu = [
64
		var moremenu = [
65
			{ text: _("Renew Patron"),  onclick: { fn: confirm_reregistration } },
65
			{ text: _("Renew Patron"),  onclick: { fn: confirm_reregistration } },
66
            { text: _("Set Permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"
66
			{ text: _("Set Permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"[% UNLESS CAN_user_permissions %], disabled: true[% END %]},
67
                [% IF ( CAN_user_permissions ) %][% IF ( StaffMember ) %]
67
            { text: _("Delete"), [% UNLESS CAN_user_borrowers %]disabled: true, [% END %] onclick: { fn: confirm_deletion } },
68
                    [% UNLESS ( CAN_user_staffaccess ) %], disabled: true[% END %]
68
			{ text: _("Update Child to Adult Patron") , onclick: { fn: update_child }[% UNLESS is_child" %], disabled: true[% END %]}
69
                    [% ELSE %][% END %]
70
                [% ELSE %], disabled: true[% END %]},
71
            { text: _("Delete"), [% IF ( StaffMember ) %][% UNLESS ( CAN_user_staffaccess ) %]disabled: true, [% END %][% ELSE %][% UNLESS ( CAN_user_borrowers ) %]disabled: true, [% END %][% END %] onclick: { fn: confirm_deletion } },
72
			{ text: _("Update Child to Adult Patron") , onclick: { fn: update_child }[% UNLESS ( is_child ) %], disabled: true[% END %]}
73
		];
69
		];
74
70
75
	    new YAHOO.widget.Button({
71
	    new YAHOO.widget.Button({
Lines 97-119 function update_child() { Link Here
97
	    [% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %]
93
	    [% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %]
98
	    new YAHOO.widget.Button("editpatron");
94
	    new YAHOO.widget.Button("editpatron");
99
	    new YAHOO.widget.Button("addnote");
95
	    new YAHOO.widget.Button("addnote");
100
        [% IF ( StaffMember ) %][% IF ( CAN_user_staffaccess ) %] new YAHOO.widget.Button("changepassword");  [% END %]
96
        [% IF CAN_user_staffaccess %] new YAHOO.widget.Button("changepassword");  [% END %]
101
            [% ELSE %] new YAHOO.widget.Button("changepassword"); [% END %]
102
	    new YAHOO.widget.Button("duplicate");
103
	    new YAHOO.widget.Button("printslip");
97
	    new YAHOO.widget.Button("printslip");
104
		new YAHOO.widget.Button("printpage");
98
		new YAHOO.widget.Button("printpage");
105
	    new YAHOO.widget.Button("renewpatron");
106
        [% IF ( CAN_user_permissions ) %]
107
          [% IF ( StaffMember ) %]
108
            [% IF ( CAN_user_staffaccess ) %]
109
              new YAHOO.widget.Button("patronflags");
110
            [% END %]
111
          [% ELSE %]
112
          new YAHOO.widget.Button("patronflags");
113
          [% END %]
114
        [% END %]
115
        [% IF ( StaffMember ) %][% UNLESS ( CAN_user_staffaccess ) %]new YAHOO.widget.Button("deletepatron");[% END %]
116
            [% ELSE %]new YAHOO.widget.Button("deletepatron");[% END %]
117
	}
99
	}
118
100
119
	//]]>
101
	//]]>
Lines 136-144 function update_child() { Link Here
136
	[% END %]
118
	[% END %]
137
	[% IF ( CAN_user_borrowers ) %]
119
	[% IF ( CAN_user_borrowers ) %]
138
	[% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
120
	[% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
139
[% IF ( StaffMember ) %][% IF ( CAN_user_staffaccess ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %]
121
	[% CAN_user_staffaccess %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %]
140
          [% ELSE %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %]	
141
	  [% END %]
142
	<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
122
	<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
143
	<li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print Page</a></li>
123
	<li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print Page</a></li>
144
	<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print Slip</a></li>
124
	<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print Slip</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-7 / +2 lines)
Lines 91-104 function update_child() { Link Here
91
	    [% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %]
91
	    [% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %]
92
	    new YAHOO.widget.Button("editpatron");
92
	    new YAHOO.widget.Button("editpatron");
93
	    new YAHOO.widget.Button("addnote");
93
	    new YAHOO.widget.Button("addnote");
94
	    new YAHOO.widget.Button("changepassword");
94
            [% IF CAN_user_staffaccess %]new YAHOO.widget.Button("changepassword");  [% END %]
95
	    new YAHOO.widget.Button("duplicate");
95
	    new YAHOO.widget.Button("duplicate");
96
	    new YAHOO.widget.Button("printslip");
96
	    new YAHOO.widget.Button("printslip");
97
		new YAHOO.widget.Button("printpage");
97
		new YAHOO.widget.Button("printpage");
98
	    new YAHOO.widget.Button("renewpatron");
99
		new YAHOO.widget.Button("patronflags");
100
		new YAHOO.widget.Button("deletepatron");
101
		new YAHOO.widget.Button("updatechild");
102
	}
98
	}
103
99
104
	//]]>
100
	//]]>
Lines 119-125 function update_child() { Link Here
119
            [% END %]
115
            [% END %]
120
        [% END %]
116
        [% END %]
121
	[% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
117
	[% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
122
	<li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>
118
	[% IF CAN_user_staffaccess %]<li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li> [% END %]
123
	<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
119
	<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
124
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print Page</a></li>
120
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print Page</a></li>
125
	<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print Slip</a></li>
121
	<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print Slip</a></li>
126
- 

Return to bug 5974