Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
The short summary textbox now physically limits the text size to 255 …
Browse files Browse the repository at this point in the history
…characters
  • Loading branch information
michdsouza committed Sep 4, 2012
1 parent 18bc93c commit 1ac071b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/petition.css.scss
Expand Up @@ -338,6 +338,9 @@
.image-help-text {
margin-left: 10px;
}
.summary-help-text {
margin-left: 160px;
}
}
.petitionlist {
.petition {
Expand Down
3 changes: 2 additions & 1 deletion app/views/petitions/_form.html.haml
Expand Up @@ -2,7 +2,8 @@

= simple_form_for(@petition, html: {class: 'form-horizontal petition-form' }) do |f|
= f.input :title, as: :string
= f.input :short_summary, as: :string
%span.summary-help-text (The summary can only be 255 characters long)
= f.input :short_summary, as: :string, :input_html => { :maxlength => 255 }
= f.input :description
- if is_admin
= f.input :to_send, label: 'Feature this petition'
Expand Down

0 comments on commit 1ac071b

Please sign in to comment.