+ <%= form.label :praktikums_typ, '🔧 Praktikumstyp', class: 'form-label' %>
+ <%= form.select :praktikums_typ,
+ current_user.praepedeutikum_abgeschlossen? ?
+ Entry::PRAKTIKUMSTYPEN.reject { |typ| typ == 'propädeutikum' } :
+ Entry::PRAKTIKUMSTYPEN,
+ {}, class: 'form-select' %>
+
-
- <%= form.label :praktikums_typ, 'Praktikumstyp', class: 'form-label' %>
- <%= form.select :praktikums_typ,
- current_user.praepedeutikum_abgeschlossen? ?
- Entry::PRAKTIKUMSTYPEN.reject { |typ| typ == 'propädeutikum' } :
- Entry::PRAKTIKUMSTYPEN,
- {},
- class: 'form-select' %>
-
+
+ <%= form.label :entry_art, '📚 Art', class: 'form-label' %>
+ <%= form.select :entry_art, Entry::ENTRY_ARTEN, {}, class: 'form-select', id: 'entry_art_select' %>
+
-
- <%= form.label :entry_art, 'Art', class: 'form-label' %>
- <%= form.select :entry_art, Entry::ENTRY_ARTEN, {}, class: 'form-select', id: 'entry_art_select' %>
-
+
+ <%= form.label :distance_km, '🚗 Entfernung (km)', class: 'form-label' %>
+ <%= form.number_field :distance_km, class: 'form-control', min: 0, value: form.object.distance_km || 0 %>
+
-
- <%= form.label :distance_km, 'Entfernung (km) Gesamt', class: 'form-label' %>
- <%= form.number_field :distance_km,
- class: 'form-control',
- min: 0,
- value: form.object.distance_km || 0 %>
-
+
+ <%= form.label :beschreibung, '📝 Beschreibung', class: 'form-label' %>
+ <%= form.text_field :beschreibung, class: 'form-control' %>
+
-
- <%= form.label :beschreibung, 'Beschreibung', class: 'form-label' %>
- <%= form.text_field :beschreibung, class: 'form-control' %>
-
+
+ <%= form.label :kosten, '💸 Kosten', class: 'form-label' %>
+ <%= form.number_field :kosten, class: 'form-control', min: 0, step: 0.01 %>
+
-
- <%= form.label :kosten, 'Kosten (z. B. Teilnahmegebühr)', class: 'form-label' %>
- <%= form.number_field :kosten, class: 'form-control', min: 0, step: 0.01 %>
-
-
-
-
-
+
+ <%= form.submit '💾 Speichern', class: 'btn btn-success' %>
+ <%= link_to '🔙 Zurück', entries_path, class: 'btn btn-outline-secondary ms-2' %>
+
+ <% end %>
+
- <%= form.submit 'Speichern', class: 'btn btn-primary' %>
- <%= link_to 'Zurück', entries_path, class: 'btn btn-secondary ms-2' %>
-