Skip to content

Commit

Permalink
adjust font-weights of edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Feb 23, 2024
1 parent b4c91c2 commit 1342535
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions app/views/people/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,60 +6,60 @@
%div.pe-5.d-flex
%table
%tbody
%th.fw-light Name
%th.fw-normal Name
%tr
%td= form.text_field :name, class: "w-100 form-control"
%th.fw-light Email
%th.fw-normal Email
%tr
%td= form.text_field :email, class: "w-100, form-control"
%th.fw-light Abschluss
%th.fw-normal Abschluss
%tr
%td= form.text_field :title, class: "w-100, form-control"
%th.fw-light Funktionen
%th.fw-normal Funktionen
- @person.roles.each do |role|
%tr
%td
%div.border.border-dark-subtle.rounded.p-1
%div.border.border-dark-subtle.rounded.p-1.fw-light
Rolle
= form.collection_select :role_ids, Role.order(:name), :id, :name, { selected: role.id }, class: "form-select w-100"
%div
Stufe
%div.d-flex
%div.d-flex.fw-light
= form.collection_select :person_role_level_id, PersonRoleLevel.order(:level), :id, :level, {}, class: "form-select w-50 me-1"
= form.number_field :percent, step: 1, class: "form-control w-50"
%th.fw-light Organisationseinheit :
%th.fw-normal Organisationseinheit :
%tr
%td= form.collection_select :department_id, Department.order(:name), :id, :name, {}, class: "form-select w-100"
%th.fw-light Firma
%th.fw-normal Firma
%tr
%td= form.collection_select :company_id, Company.order(:name), :id, :name, {}, class: "form-select w-100"
%th.fw-light Wohnort (Stadt)
%th.fw-normal Wohnort (Stadt)
%tr
%td= form.text_field :location, class: "form-control w-100"

%div.pe-5
%table
%tbody
%th.fw-light Geburtsdatum
%th.fw-normal Geburtsdatum
%tr
%td= form.date_field :birthdate, class: "form-control w-100"
%th.fw-light Doppelbürger
%th.fw-normal Doppelbürger
%tr
%td= check_box :nationality2?, { checked: @person.nationality2? }
%th.fw-light Erste Nationalität
%th.fw-normal Erste Nationalität
%tr
%td= form.collection_select :nationality, ISO3166::Country.all.sort, :alpha2, :name, {}, class: "form-select w-100"
- if @person.nationality2?
%th.fw-light Zweite Nationalität
%th.fw-normal Zweite Nationalität
%tr
%td= form.collection_select :nationality2, ISO3166::Country.all.sort, :alpha2, :name, {}, class: "form-select w-100"
%th.fw-light Zivilstand
%th.fw-normal Zivilstand
%tr
%td= form.collection_select :marital_status, Person.marital_statuses, :first, :first, { selected: Person.marital_statuses[@person.marital_status] }, class: "form-select w-100"
%div
%div.fw-light Sprachen
%div.fw-normal Sprachen
%div.border.border-dark-subtle.mt-1.p-2.rounded
- @person.language_skills.each do |language|
%div.mb-1= "#{language.language}: #{language.level} - #{language.certificate}"
= form.submit :Submit
= form.submit :Speichern, class: "btn btn-primary"
= link_to "Abbrechen", person_path

0 comments on commit 1342535

Please sign in to comment.