Skip to content

Commit

Permalink
upgrade views to bootstrap 5
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi committed Nov 7, 2023
1 parent edff563 commit 5322928
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions app/views/census_evaluation/base/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

= render 'infos'

#main.row-fluid
#main.row
-if @total
-if @sub_groups
%article.span6
%article.col-6
= render 'totals'
%article.span6
%article.col-6
= render 'details'

-else
Expand Down
2 changes: 1 addition & 1 deletion app/views/member_counts/_table_header.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- classes ||= nil
- id ||= nil

%table.table.table-striped{style: 'width: auto;', class: classes, id: id}
%table.table.table-striped.w-auto{class: classes, id: id}
%thead
%tr
- before_columns.each do |c|
Expand Down
6 changes: 3 additions & 3 deletions app/views/member_counts/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
= fields_for 'member_count[]', count, builder: StandardFormBuilder do |f|
%tr
%td
%span{style: 'padding-right: 5px;'}= format_member_count_born_in(count)
%td= f.input_field :person_f, class: 'span1'
%td= f.input_field :person_m, class: 'span1'
%span.pe-2= format_member_count_born_in(count)
%td= f.input_field :person_f
%td= f.input_field :person_m

#member_counts_fields_blueprint{style: 'display: none', data: { blueprint: member_counts_fields_blueprint } }
= link_to 'Eintrag hinzufügen', 'javascript:void(0);', class: 'add_nested_fields', data: { association: 'member_counts', 'blueprint-id' => 'member_counts_fields_blueprint' }
Expand Down
20 changes: 10 additions & 10 deletions app/views/people/_fields_cevi.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,40 @@
= f.labeled_collection_select :salutation, possible_person_salutations,
:id,
:to_s,
{ include_blank: true },
class: 'span6'
{ include_blank: "" },
class: 'form-select form-select-sm'

= f.labeled_input_field :correspondence_language,
placeholder: t('.correspondence_language.placeholder'),
data: { provide: :typeahead, source: existing_person_correspondence_languages }

= f.labeled(:canton) do
.span6.shown{style: 'margin-left: 0px'}
.shown.ms-0
= f.collection_select :canton,
possible_person_cantons,
:id,
:to_s,
{ include_blank: true },
class: 'chosen-select',
{ include_blank: "" },
class: 'form-select form-select-sm',
data: { placeholder: ' ',
chosen_no_results: t('global.chosen_no_results') }

= f.labeled_collection_select :confession,
possible_person_confessions,
:id,
:to_s,
{ include_blank: true },
class: 'span6'
{ include_blank: "" },
class: 'form-select form-select-sm'

= f.labeled_input_field :old_data if can?(:update_old_data, entry)

= f.labeled(:ortsgruppe_id) do
.span6.shown{style: 'margin-left: 0px'}
.shown.ms-0
= f.collection_select :ortsgruppe_id,
Group::Ortsgruppe.without_deleted.order(:name),
:id,
:to_s,
{ include_blank: true },
class: 'chosen-select',
{ include_blank: "" },
class: 'form-select form-select-sm',
data: { placeholder: ' ',
chosen_no_results: t('global.chosen_no_results') }

0 comments on commit 5322928

Please sign in to comment.