Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix card form hints on edit

  • Loading branch information...
commit 26a731c9638b891073d7e6ee58c98cdfe36f4e91 1 parent 94e8137
@knewter knewter authored
Showing with 4 additions and 3 deletions.
  1. +3 −3 app/views/cards/_form.html.haml
  2. +1 −0  config/locales/en.yml
View
6 app/views/cards/_form.html.haml
@@ -1,8 +1,8 @@
= f.semantic_errors
= f.inputs do
- = f.input :name, hint: t('.name_hint')
- = f.input :front_content, hint: t('.front_content_hint').html_safe, input_html: { class: 'input-xlarge', rows: 5 }
- = f.input :back_content, hint: t('.back_content_hint'), input_html: { class: 'input-xlarge', rows: 5 }
+ = f.input :name, hint: t('cards.new.name_hint')
+ = f.input :front_content, hint: t('cards.new.front_content_hint').html_safe, input_html: { class: 'input-xlarge', rows: 5 }
+ = f.input :back_content, hint: t('cards.new.back_content_hint'), input_html: { class: 'input-xlarge', rows: 5 }
= f.hidden_field :deck_id
= f.actions do
= f.action :submit, button_html: { class: 'primary' }
View
1  config/locales/en.yml
@@ -23,6 +23,7 @@ en:
title: 'New Card'
front_content_hint: "Supports markdown syntax. <a href='http://en.wikipedia.org/wiki/Markdown'>Syntax documentation here.</a>"
back_content_hint: "Supports markdown syntax."
+ name_hint: 'Enter card name'
show:
edit: 'Edit Card'
update:
Please sign in to comment.
Something went wrong with that request. Please try again.