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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-4 / +11 lines)
Lines 293-303 Link Here
293
                                        <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
293
                                        <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
294
                                        <input type="hidden" id="borrowernumber" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
294
                                        <input type="hidden" id="borrowernumber" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
295
                                        <button type="submit" class="btn btn-default btn-xs" name="op" value="cud-Upload"><i class="fa fa-upload"></i> Upload photo</button>
295
                                        <button type="submit" class="btn btn-default btn-xs" name="op" value="cud-Upload"><i class="fa fa-upload"></i> Upload photo</button>
296
                                        [% IF ( patron.image ) %]
297
                                        <button id="delpicture" type="submit" class="btn btn-default btn-xs delete" name="op" value="cud-Delete"><i class="fa fa-trash-can"></i> Delete</button>
298
                                        [% END %]
299
                                    </div> <!-- /.action -->
296
                                    </div> <!-- /.action -->
300
                                </form> <!-- /#picture-upload -->
297
                                </form> <!-- /#picture-upload -->
298
                                [% IF ( patron.image ) %]
299
                                    <form method="post" id="picture-delete" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
300
                                        <div class="action" style="padding-top:0px;">
301
                                            [% INCLUDE 'csrf-token.inc' %]
302
                                            <input type="hidden" id="image" name="filetype" value="image" />
303
                                            <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
304
                                            <input type="hidden" id="borrowernumber" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
305
                                            <button id="delpicture" type="submit" class="btn btn-default btn-xs delete" name="op" value="cud-Delete"><i class="fa fa-trash-can"></i> Delete</button>
306
                                        </div> <!-- /.action -->
307
                                    </form> <!-- /#picture-delete -->
308
                                [% END %]
301
                            </div> <!-- /#upload-patron-image -->
309
                            </div> <!-- /#upload-patron-image -->
302
                            <div id="capture-patron-image" class="patroninfo-section">
310
                            <div id="capture-patron-image" class="patroninfo-section">
303
                                <h5>Take patron photo</h5>
311
                                <h5>Take patron photo</h5>
304
- 

Return to bug 37489