mixin pcalpubsettings(parishid, factoryid, durance, date, publicationsformats) form(class="form-horizontal", role="form", id="form", style="margin-top: 20px;") .form-group label(for='combo_parish', class="col-sm-2 control-label") Pfarrei .col-sm-10 select(id='combo_parish', class="form-control", onchange="update_factories();") - var id=0; - each parish in publicationformats option(value="#{id}") #{parish.name} - id++; script. $("#combo_parish").val("#{parishid}") .form-group label(for='combo_factory', class="col-sm-2 control-label") Veröffentlichungsart .col-sm-10 select(id='combo_factory', class="form-control", onchange="update_buttons();") - var id=0; - each factory in publicationformats[parishid].publicationformats option(value="#{id}") #{factory.name} - id++; script. $("#combo_factory").val("#{factoryid}") .form-group label(for='dpicker', class="col-sm-2 control-label") Ausgangsdatum .col-sm-10 //- http://eternicode.github.io/bootstrap-datepicker/ #datepicker(data-date=date) .form-group label(for='combo_durance', class="col-sm-2 control-label") Dauer .col-sm-10 select(id='combo_durance', class="form-control") option(value="1") 1 Woche option(value="2") 2 Wochen option(value="3") 3 Wochen option(value="4") 4 Wochen option(value="5") 5 Wochen option(value="6") 6 Wochen option(value="7") 7 Wochen script. $("#combo_durance").val("#{durance}") .form-group label(for='fileinput', class="col-sm-2 control-label") 'Hintergrund'-PDF .col-sm-10 input(type="file", id="fileinput", accept=".pdf", class="form-control") div button(type="button", class="btn btn-default btn-xs", onclick="$('#fileinput').val('');", style="display: inline;") Zurücksetzen p#upload_pending_indicator(style='display: none; text-style: italic;') Datei wird hochgeladen... .row .col-sm-4 button.form-control.btn.btn-default#btn_html(type="button", onclick="pcalpub_generate_html();") HTML erstellen (und in neuem Fenster anzeigen) .col-sm-4 button.form-control.btn.btn-default#btn_email(type="button", onclick="pcalpub_send_html_per_email();") per eMail versenden .col-sm-4 button.form-control.btn.btn-default#btn_pdf(type="button", onclick="pcalpub_generate_and_view_document();") Dokument erstellen //- .row(style="padding-right: 15px; padding-left: 15px;") //- .row(style="padding-right: 15px; padding-left: 15px;")