include mixins include mixins_email doctype html html include header link(href="/stylesheets/bootstrap-datepicker.min.css", rel="stylesheet") script(src='/javascripts/bootstrap-datepicker.min.js' ) script(src='/javascripts/bootstrap-datepicker.de.min.js' ) script(src='/javascripts/tinymce/tinymce.min.js' ) script(src="/javascripts/validator.min.js") script(src='/javascripts/pfiswebsocket.js') body +standard_delete_dialog("confirmDelete") .modal.fade(id="sendEmail", role="dialog", aria-labelledby="sendEmailLabel", aria-hidden="true") .modal-dialog(role="document") .modal-content .modal-header h4(class="modal-title", id="sendEmailLabel") eMail versenden .modal-body p(style="font-weight: bold; font-style: italic;") Bitte warten Sie, während die eMail versendet wird ... #sendEmail_message #sendEmail_explanation .modal-footer button#sendEmail_closebutton(type="button", class="btn btn-default", data-dismiss="modal", style="display: none;") Schließen #emailaddresschooser.sidewideoverlay(style="z-index: 5;") .root .new_flex_zero +nav_with_form("PfarrInfoSystem", "PfIS", "entryeditnav") p.pentryedit_headline eMail-Empfänger auswählen .new_flex_one(style="margin-bottom: 15px; padding-left: 15px; padding-right: 15px; overflow: auto;") +email_directinput .parishdbelemspane(style="margin-top: 5px;") for elem in parishdb if elem.type === "person" +email_do_person(elem) if elem.type === "group" +email_do_group(elem) .root .new_flex_zero +nav("PfarrInfoSystem", "dropdown_menu") p.pentryedit_headline eMail versenden button.btn.btn-success.btn-xs#sendbutton(style="margin-left: 15px; margin-right: 5px;", data-toggle="modal" data-target="#sendEmail") Senden span.glyphicon.glyphicon-info-sign#sendbutton_info(aria-hidden="true", style="color: red;", data-toggle="tooltip" data-placement="bottom" title="Sie müssen mindestens einen Empfänger sowie den Betreff angeben!") .new_flex_one(style="margin-bottom: 15px; padding-left: 15px; padding-right: 15px; overflow: auto;") +emaildestinationview([], [], [], true, "history.pushState({direction: 'emailchooser'}, document.title, location.pathname); $('#emailinput').val('peter@halieus.de'); $('#emailaddresschooser').show();") fieldset(id="fieldset_subject") legend(style="font-size: 120%; margin-bottom: 0px;") Betreff //- form#form-subject //- .form-group input(type="text", id="subject", class="control-label col-xs-12", oninput="update_sendbutton();") fieldset(id="fieldset_body", style="margin-top: 5px;") legend(style="font-size: 120%; margin-bottom: 0px;") Nachricht textarea#bodyeditor fieldset(style="margin-top: 5px;") legend(style="font-size: 120%; margin-bottom: 0px;") Anhänge span(style="font-size: 65%; margin-left: 2px;") Zum Hinzufügen auf den Button unten klicken! #attachments_parent p Keine Anhänge vorhanden. //- tr(data-addresses="#{empf.addresses}", data-recipient-name="#{empf.recipient_name}") //- td(class="the_email_recipient", width="90%") !{empf.recipient} //- td //- span( class="glyphicon glyphicon-trash", //- aria-hidden="true", //- style="color: red; padding-right: 10px; padding-left: 10px; cursor: pointer;" //- data-toggle="modal", //- data-target="#confirmDelete", //- data-delete-type="to", data-delete-name="#{empf.recipient_name}") input(type="file", id="fileupload", style="margin-top: 0px;") p#upload_pending_indicator(style='display: none; text-style: italic;') Datei wird hochgeladen... //- button#fileuploadbutton(type="button", class="btn btn-default btn-xs", onclick="do_fileupload();", disabled) Datei hochladen script. $("#sendbutton").prop('disabled', 'true'); $(function () { $('[data-toggle="tooltip"]').tooltip(); }) tinymce.editors=[]; tinymce.init({ selector: '#bodyeditor', resize: false, language: 'de', plugins: 'advlist,autolink,autoresize,lists,link,image,charmap,print,preview,anchor,searchreplace,visualblocks,code,insertdatetime,media,table,contextmenu,paste', toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', autoresize_bottom_margin: 5, autoresize_min_height: 150 }); $("#entryeditnav-form").on('submit', function(e){ console.log('FILTER SUBMIT'); e.preventDefault(); }); function show_searchbar(functiontocall) { $("#entryeditnav-form").append("
" + file.name + "
(" + file.type + ")