Updated job view and edit

This commit is contained in:
2024-09-11 11:25:51 +02:00
parent 7d328368e9
commit 3899048349
5 changed files with 29 additions and 33 deletions

View File

@@ -18,33 +18,33 @@
<%= 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" %>
</div>
<div class="my-5">
<%= form.label :intern %>
<%= form.check_box :intern, class: "block mt-2 h-5 w-5" %>
<div class="my-5 inline">
<%= form.check_box :intern, class: "pr-2 h-5 w-5" %>
<%= form.label :intern, "Interne Umbuchung" %>
</div>
<div class="my-5">
<%= form.label :cost_center %>
<%= form.label :cost_center, "Kostenstelle/Auftragsnummer" %>
<%= form.text_field :cost_center, class: "block shadow-lg rounded-md border border-hsrm-gray outline-none px-3 py-2 mt-2 w-full" %>
</div>
<% if edit_form? %>
<div class="my-5">
<%= form.label :number_of_plans_a0 %>
<%= form.label :number_of_plans_a0, "Anzahl A0 Pläne" %>
<%= form.number_field :number_of_plans_a0, 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 :number_of_plans_a1 %>
<%= form.label :number_of_plans_a1, "Anzahl A1 Pläne" %>
<%= form.number_field :number_of_plans_a1, 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 :number_of_plans_a2 %>
<%= form.label :number_of_plans_a2, "Anzahl A2 Pläne" %>
<%= form.number_field :number_of_plans_a2, 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 :number_of_plans_a3 %>
<%= form.label :number_of_plans_a3, "Anzahl A3 Pläne" %>
<%= form.number_field :number_of_plans_a3, 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 :costum_qm_plan %>
<%= form.label :costum_qm_plan, "Quatratmeter noDin" %>
<%= form.number_field :costum_qm_plan, in: 0..20.0, step: 0.01 ,class: "block shadow-lg rounded-md border border-hsrm-gray outline-none px-3 py-2 mt-2 w-full" %>
</div>
<% else %>