Skip to content

Commit

Permalink
réduit taille textera
Browse files Browse the repository at this point in the history
  • Loading branch information
marouria committed Aug 21, 2024
1 parent eb8966d commit deacc68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/admin/question_qcms/_form.html.arb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ active_admin_form_for [:admin, resource] do |f|
f.has_many :transcriptions, allow_destroy: false, new_record: false, heading: false do |t|
if t.object.intitule?
t.input :id, as: :hidden
t.input :ecrit, label: t('.label.intitule')
t.input :ecrit, label: t('.label.intitule'), input_html: { rows: 4 }
t.input :audio, as: :file, label: 'Intitulé audio',
input_html: { accept: 'audio/mpeg, audio/mp4' }
t.input :categorie, as: :hidden, input_html: { value: :intitule }
Expand All @@ -60,7 +60,7 @@ active_admin_form_for [:admin, resource] do |f|
f.has_many :transcriptions, allow_destroy: false, new_record: false, heading: false do |t|
if t.object.modalite_reponse?
t.input :id, as: :hidden
t.input :ecrit, label: t('.label.modalite_reponse')
t.input :ecrit, label: t('.label.modalite_reponse'), input_html: { rows: 4 }
t.input :audio, as: :file, label: t('.label.modalite_reponse_audio'),
input_html: { accept: 'audio/mpeg, audio/mp4' }
t.input :categorie, as: :hidden, input_html: { value: :modalite_reponse }
Expand All @@ -69,7 +69,7 @@ active_admin_form_for [:admin, resource] do |f|
if f.object.transcription_pour(:modalite_reponse).audio.attached?
f.input :supprimer_audio_modalite_reponse,
as: :boolean,
label: t('.label.supprimer_audio_modalite_reponse'),
label: t('.label.supprimer_audio_modalite'),
hint: tag_audio(f.object.transcription_pour(:modalite_reponse))
end
end
Expand Down
1 change: 1 addition & 0 deletions config/locales/views/question_qcms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ fr:
intitule_reponse_audio: Intitulé réponse audio
supprimer_illustration : Supprimer l'illustration actuelle
supprimer_audio_intitule: Supprimer l'audio de l'intitulé actuel
supprimer_audio_modalite: Supprimer l'audio de la consigne actuelle

0 comments on commit deacc68

Please sign in to comment.