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 2786-2788 div[class$="_table_controls"] { Link Here
2786
#borrower_message {
2786
#borrower_message {
2787
    margin-top: 10px;
2787
    margin-top: 10px;
2788
}
2788
}
2789
2790
.form-group {
2791
   margin-bottom: 10px;
2792
}
2793
2794
.form-group label {
2795
    font-weight: bold;
2796
}
2797
2798
.modal-textarea {
2799
    width: 98%;
2800
}
(-)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 | html %] [% surname | html %]</option>
226
                    <option value="B">OPAC - [% firstname | html %] [% surname | html %]</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 (-3 / +2 lines)
Lines 856-862 No patron matched <span class="ex">[% message | html %]</span> Link Here
856
                        <span class="circ-hlt">
856
                        <span class="circ-hlt">
857
                    [% ELSE %]
857
                    [% ELSE %]
858
                        <span>
858
                        <span>
859
                    [% END %]>
859
                    [% END %]
860
                        [% message.message_date | $KohaDates %]
860
                        [% message.message_date | $KohaDates %]
861
                        [% Branches.GetName( message.branchcode ) %]
861
                        [% Branches.GetName( message.branchcode ) %]
862
                        [% IF message.manager_id %]
862
                        [% IF message.manager_id %]
Lines 865-871 No patron matched <span class="ex">[% message | html %]</span> Link Here
865
                        <i>"[% message.message %]"</i>
865
                        <i>"[% message.message %]"</i>
866
                    </span>
866
                    </span>
867
                    [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
867
                    [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
868
                        [<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>]
868
                        <a class="btn-small" 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>
869
                    [% END %]
869
                    [% END %]
870
                </li>
870
                </li>
871
            [% END %]
871
            [% END %]
872
- 

Return to bug 17398