pfisjs/views/pcal/edit_vehicle_use.jade

52 lines
2.2 KiB
Plaintext

include ../mixins
include ../mixins_pentryedit
form.form-horizontal.subroot#form_pentry(role="form", method="POST", action="")
.new_flex_zero(style="margin-bottom: 20px;")
.container-fluid
button(class="btn btn-success btn-xs", type="submit")
span(class="glyphicon glyphicon-ok", aria-hidden="true")
span
span Übernehmen
+messageview(messages.other)
.new_flex_one
.container-fluid
.form-group
label(for='edit_kontext', class="col-sm-2 control-label") Kontext
.col-sm-10
.input-group
input(id="edit_kontext_dn", type="hidden", name="punit_dn", value="#{vehicle_use.punit.dn}")
input(id="edit_kontext", type="text", name="punit_name", class="form-control", value="#{vehicle_use.punit.name}", readonly)
span(class="input-group-btn")
button(class="btn btn-default", type="button", onclick="pcal_pentry_edit_manager.save_and_goto('select_pastoralunit', {})") Ändern
.form-group
label(for='combo_vehicle', class="col-sm-2 control-label") Typ
.col-sm-10
select(id='combo_vehicle', name="combo_vehicle", class="form-control")
each v in vehicles
option(value="#{v.id}") <b>#{v.name}</b> (#{v.pretty.unit})
script.
$("#combo_vehicle").val("#{vehicle_use.vehicle_id}")
.form-group
label(for='edit_name', class="col-sm-2 control-label") Kurzbeschreibung
.col-sm-10
input(id='edit_name', type="text", class="form-control noEnterSubmit", name="edit_name", value="#{vehicle_use.name}", required)
.help-block.with-errors
.row
fieldset(class="col-sm-12", style="margin-top: 10px;")
legend(style="font-size: 150%") Beschreibung
textarea(class="form-control", rows="5", id="area_description", name="area_description").
#{vehicle_use.description}
.row(style="margin-bottom: 75px;")
div(class="col-sm-12", style="margin-top: 20px;", id="involved")
fieldset
+involved_list_label("Beteiligte", "font-size: 150%; margin-bottom: 5px;", "font-style: italic;", "")
+involved_list(vehicle_use.involved, "Beteiligte", "")
#messageview_involved_primary
if messages.involved.primary.length > 0
+messageview(messages.involved.primary)