Permalink
Browse files

Fix card form hints on edit

  • Loading branch information...
1 parent 94e8137 commit 26a731c9638b891073d7e6ee58c98cdfe36f4e91 @knewter knewter committed Apr 10, 2012
Showing with 4 additions and 3 deletions.
  1. +3 −3 app/views/cards/_form.html.haml
  2. +1 −0 config/locales/en.yml
@@ -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
@@ -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:

0 comments on commit 26a731c

Please sign in to comment.