Skip to content

Commit

Permalink
Add Markdown link to description helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePletch committed Dec 22, 2023
1 parent c7b33a2 commit 0421855
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/events/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
= form.hidden_field :address_id, id: 'existing_address_id'
= render "addresses/form", parent_form: form
.form-group
= form.text_area :description, class: 'form-control', style: "height: 10em;", floating: true
= form.text_area :description, class: 'form-control', style: "height: 10em;", floating: true, help: t('event.form.description_uses_markdown_html', link: link_to(t('event.form.description_uses_markdown_name'), 'https://www.markdownguide.org/basic-syntax/'))
.actions
= form.primary
2 changes: 2 additions & 0 deletions config/locales/models/event/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ en:
Be sure to explain how to send you evidence of a negative test in your event description.
header_photo_help: Photos are scaled and cropped to full-screen width (1900px by 500px).
header_photo_crop_prompt: Click and drag the header image above to change how your header image will be cropped.
description_uses_markdown_html: You can format the event description with %{link} to make text bold, add links, or organize things into bullet points.
description_uses_markdown_name: Markdown
labels:
covid_testing: Require COVID testing
secret: Make this event secret
Expand Down
2 changes: 2 additions & 0 deletions config/locales/models/event/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ es:
prueba. Asegúrese de explicar cómo enviarle evidencia de una prueba negativa en la descripción del evento.
header_photo_help: Fotos se escalan y recortan al ancho de pantalla completo (1900px por 500px).
header_photo_crop_prompt: Haga clic y arrastre la imagen de arriba para cambiar cómo se recortará su foto.
description_uses_markdown_html: Se puede formatear la descripción del evento con %{link} para poner el texto en negrita, agregar enlaces, o organizar cosas en viñetas.
description_uses_markdown_name: Markdown
labels:
secret: Haz que este evento sea secreto
rsvp_list:
Expand Down

0 comments on commit 0421855

Please sign in to comment.