You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.5 KiB
45 lines
1.5 KiB
<h2>Profil bearbeiten</h2>
|
|
|
|
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
|
<div class="mb-3">
|
|
<%= f.label :email, "E-Mail", class: "form-label" %>
|
|
<%= f.email_field :email, class: "form-control" %>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<h3>🔧 Praktikumsziele</h3>
|
|
|
|
<div class="mb-3">
|
|
<%= f.label :total_required_hours, "Zielstunden insgesamt", class: "form-label" %>
|
|
<%= f.number_field :total_required_hours, class: "form-control", min: 1 %>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<%= f.label :weekly_target_hours, "Stunden pro Woche", class: "form-label" %>
|
|
<%= f.number_field :weekly_target_hours, class: "form-control", min: 1 %>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<h3>🔐 Passwort ändern (optional)</h3>
|
|
|
|
<div class="mb-3">
|
|
<%= f.label :password, "Neues Passwort", class: "form-label" %>
|
|
<%= f.password_field :password, autocomplete: "new-password", class: "form-control", placeholder: "••••••••" %>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<%= f.label :password_confirmation, "Passwort bestätigen", class: "form-label" %>
|
|
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-control" %>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<%= f.label :current_password, "Aktuelles Passwort", class: "form-label" %>
|
|
<%= f.password_field :current_password, autocomplete: "current-password", class: "form-control" %>
|
|
</div>
|
|
|
|
<%= f.submit "Profil aktualisieren", class: "btn btn-primary" %>
|
|
<% end %>
|
|
|
|
<%= link_to "Zurück", entries_path, class: "btn btn-link mt-3" %>
|