Set name from current user to new jobs in form

This commit is contained in:
2024-09-05 12:30:13 +02:00
parent 68ced40cbf
commit 26ccaa9bb4
3 changed files with 7 additions and 3 deletions

View File

@@ -12,11 +12,11 @@
<% end %>
<div class="my-5">
<%= form.label :costumer_firstname, 'Vorname' %>
<%= form.text_field :costumer_firstname, class: "block shadow-lg rounded-md border border-hsrm-gray outline-none px-3 py-2 mt-2 w-full" %>
<%= form.text_field :costumer_firstname, disabled: !is_admin_or_operator? ,class: "block shadow-lg rounded-md border border-hsrm-gray outline-none px-3 py-2 mt-2 w-full" %>
</div>
<div class="my-5">
<%= form.label :costumer_lastname, 'Nachname' %>
<%= form.text_field :costumer_lastname, class: "block shadow-lg rounded-md border border-hsrm-gray outline-none px-3 py-2 mt-2 w-full" %>
<%= form.text_field :costumer_lastname, disabled: !is_admin_or_operator? ,class: "block shadow-lg rounded-md border border-hsrm-gray outline-none px-3 py-2 mt-2 w-full" %>
</div>
<div>
<%= form.label :pdf, "Plan auswählen (PDF-Format)" %>