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

(-)a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css (+12 lines)
Lines 2778-2780 div[class$="_table_controls"] { Link Here
2778
#borrower_message {
2778
#borrower_message {
2779
    margin-top: 10px;
2779
    margin-top: 10px;
2780
}
2780
}
2781
2782
.form-group {
2783
   margin-bottom: 10px;
2784
}
2785
2786
.form-group label {
2787
    font-weight: bold;
2788
}
2789
2790
.modal-textarea {
2791
    width: 98%;
2792
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-35 / +33 lines)
Lines 214-255 function searchToHold(){ Link Here
214
214
215
<!-- Modal -->
215
<!-- Modal -->
216
<div id="add_message_form" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addnewmessageLabel" aria-hidden="true">
216
<div id="add_message_form" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addnewmessageLabel" aria-hidden="true">
217
    <div class="modal-body">
217
    <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
218
        <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
218
        <div class="modal-header">
219
        <fieldset id="borrower_messages" class="brief">
219
            <h3>Leave a message</h3>
220
            <legend>Leave a message</legend>
220
        </div>
221
            <ol>
221
        <div class="modal-body">
222
                <li>
222
            <div class="form-group">
223
                    <label for="message_type">Add a message for:</label>
223
                <label for="message_type">Add a message for:</label>
224
                    <select name="message_type" id="message_type">
224
                <select name="message_type" id="message_type">
225
                        <option value="L">Staff - Internal note</option>
225
                    <option value="L">Staff - Internal note</option>
226
                        <option value="B">OPAC - [% firstname %] [% surname %]</option>
226
                    <option value="B">OPAC - [% firstname %] [% surname %]</option>
227
                    </select>
227
                </select>
228
                </li>
228
            </div>
229
                [% bor_notes = AuthorisedValues.Get( 'BOR_NOTES' ) %]
229
            [% bor_notes = AuthorisedValues.Get( 'BOR_NOTES' ) %]
230
                [% IF bor_notes %]
230
            [% IF bor_notes %]
231
                    <li>
231
            <div class="form-group">
232
                        <label for="select_patron_messages">Predefined notes: </label>
232
                <label for="select_patron_messages">Predefined notes: </label>
233
                        <select name="type" id="select_patron_messages">
233
                <select name="type" id="select_patron_messages">
234
                            <option value="">Select note</option>
234
                    <option value="">Select note</option>
235
                            [% FOREACH bor_note IN bor_notes %]
235
                    [% FOREACH bor_note IN bor_notes %]
236
                                <option value="[% bor_note.lib %]">[% bor_note.lib %]</option>
236
                        <option value="[% bor_note.lib %]">[% bor_note.lib %]</option>
237
                            [% END %]
237
                    [% END %]
238
                        </select>
238
                </select>
239
                    </li>
239
            </div>
240
                [% END %]
240
            [% END %]
241
                <li>
241
            <div class="form-group">
242
                    <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
242
                <textarea rows="3" class="modal-textarea" name="borrower_message" id="borrower_message" ></textarea>
243
                </li>
243
            </div>
244
            </ol>
245
            <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
244
            <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
246
            <input type="hidden" name="batch" value="[% batch %]" />
245
            <input type="hidden" name="batch" value="[% batch %]" />
247
            <input type="hidden" name="branchcode" value="[% LoginBranchcode %]" />
246
            <input type="hidden" name="branchcode" value="[% LoginBranchcode %]" />
248
        </fieldset>
247
        </div>
249
    </div>
248
        <div class="modal-footer">
250
    <div class="modal-footer">
249
            <button class="btn approve" type="submit"><i class="fa fa-check"></i> Save</button>
251
        <fieldset class="action">
250
            <button class="btn deny" href="#" class="cancel" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button>
252
            <input type="submit" value="Save" /> </form><a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
251
        </div>
253
        </fieldset>
252
    </form>
254
    </div>
255
</div>
253
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +1 lines)
Lines 863-869 No patron matched <span class="ex">[% message | html %]</span> Link Here
863
                        <i>"[% message.message %]"</i>
863
                        <i>"[% message.message %]"</i>
864
                    </span>
864
                    </span>
865
                    [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
865
                    [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
866
                        [<a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&amp;borrowernumber=[% message.borrowernumber %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>]
866
                        <a class="btn btn-mini" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&amp;borrowernumber=[% message.borrowernumber %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
867
                    [% END %]
867
                    [% END %]
868
                </li>
868
                </li>
869
            [% END %]
869
            [% END %]
870
- 

Return to bug 17398