Adds max lengths in views

This commit is contained in:
kikito
2015-09-09 18:34:26 +02:00
parent 5e7a5b57de
commit ada03c8474
5 changed files with 7 additions and 7 deletions

View File

@@ -4,12 +4,12 @@
<div class="row">
<div class="small-12 column">
<%= f.label :title, t("debates.form.debate_title") %>
<%= f.text_field :title, maxlength: Debate::TITLE_LENGTH, placeholder: t("debates.form.debate_title"), label: false %>
<%= f.text_field :title, maxlength: Debate::TITLE_LENGTH[:maximum], placeholder: t("debates.form.debate_title"), label: false %>
</div>
<div class="ckeditor small-12 column">
<%= f.label :description, t("debates.form.debate_text") %>
<%= f.cktext_area :description, ckeditor: { language: I18n.locale }, label: false %>
<%= f.cktext_area :description, maxlength: Debate::DESCRIPTION_LENGTH[:maximum], ckeditor: { language: I18n.locale }, label: false %>
</div>
<div class="small-12 column">