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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt (-3 / +15 lines)
Lines 131-136 Link Here
131
        </div>
131
        </div>
132
    </form>
132
    </form>
133
[% ELSIF ( writeoff_individual ) %]
133
[% ELSIF ( writeoff_individual ) %]
134
135
    [% IF CAN_user_updatecharges_writeoff %]
136
        <p class="alert">You do not have the permissions required to write off this charge.</p>
137
    [% END %]
138
134
    <form name="woindivfine" id="woindivfine" action="/cgi-bin/koha/members/pay.pl" method="post" >
139
    <form name="woindivfine" id="woindivfine" action="/cgi-bin/koha/members/pay.pl" method="post" >
135
    <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
140
    <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
136
    <fieldset class="rows">
141
    <fieldset class="rows">
Lines 171-182 Link Here
171
            </ol>
176
            </ol>
172
        </fieldset>
177
        </fieldset>
173
        <div class="action">
178
        <div class="action">
174
            <input type="submit" value="Write off this charge" />
179
            [% IF CAN_user_updatecharges_writeoff %]
180
                <input type="submit" value="Write off this charge" />
181
            [% END %]
175
            <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a>
182
            <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a>
176
        </div>
183
        </div>
177
    </form>
184
    </form>
178
[% ELSE %]
185
[% ELSE %]
179
186
187
    [% IF !CAN_user_updatecharges_writeoff %]
188
        <p class="alert">You do not have the permissions required to write off this charge.</p>
189
    [% END %]
190
180
    <form name="payfine" id="payfine" method="post" action="/cgi-bin/koha/members/paycollect.pl">
191
    <form name="payfine" id="payfine" method="post" action="/cgi-bin/koha/members/paycollect.pl">
181
    <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
192
    <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
182
    <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
193
    <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
Lines 235-241 Link Here
235
    </ol>
246
    </ol>
236
    </fieldset>
247
    </fieldset>
237
    <div class="action">
248
    <div class="action">
238
        <input type="submit" name="submitbutton" value="Confirm" />
249
        [% IF CAN_user_updatecharges_writeoff %]
250
            <input type="submit" name="submitbutton" value="Confirm" />
251
        [% END %]
239
        <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a>
252
        <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a>
240
    </div>
253
    </div>
241
    </form>
254
    </form>
242
- 

Return to bug 22724