Skip to content

Commit

Permalink
fix: refactor question fields to reflect sti (hitobito_youth#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosteiner committed Sep 26, 2024
1 parent c470310 commit 0b76a5e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- question = f.object
- if question.derived? && !question.derived_from_question.customize_derived
= f.labeled(:question) do
= f.hidden_field(:question)
%p.py-2= question.question

- else
= f.labeled_input_field(:question)

0 comments on commit 0b76a5e

Please sign in to comment.