Fix numbers autoincrement
All checks were successful
/ Run tests (push) Successful in 2m16s
/ Run system tests (push) Successful in 2m29s
/ Build, push and deploy image (push) Successful in 1m37s

This commit is contained in:
david 2024-09-12 01:18:04 +02:00
parent 63590c9e92
commit 1cdf5048c3
6 changed files with 16 additions and 5 deletions

View file

@ -1,7 +1,7 @@
= bootstrap_form_with(model: check, remote: true) do |form|
h2 Details
= multilang_form_field(form, :name)
= form.text_field :number
= form.text_field :number, required: false
.row
= form.collection_radio_buttons(:principle_id, Principle.all.sort_by(&:t_name), :id, :t_name) { |b| b.label(class: "col-md-2") { b.radio_button + b.text } }
= form.collection_check_boxes :standard_ids, Standard.all.sort_by{ _1.t_name.downcase }, :id, :t_name, include_blank: true