Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Comment < ActiveRecord::Base
}

validates :title, presence: { message: "Le titre est obligatoire" },
length: { maximum: 100, message: "Le titre est trop long" }
length: { maximum: 160, message: "Le titre est trop long" }
validates :wiki_body, presence: { message: "Vous ne pouvez pas poster un commentaire vide" }

wikify_attr :body
Expand Down
2 changes: 1 addition & 1 deletion app/views/comments/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

%p
= form.label :title, "Sujet du commentaire"
= form.text_field :title, autocomplete: 'off', required: 'required', spellcheck: 'true', maxlength: 100
= form.text_field :title, autocomplete: 'off', required: 'required', spellcheck: 'true', maxlength: 160
%p
= form.label :wiki_body, "Commentaire complet"
= form.text_area :wiki_body, required: 'required', spellcheck: 'true', class: 'markItUp', placeholder: "Vous pouvez écrire votre commentaire ici.\n\nMerci de rester poli et courtois, on compte sur vous !"
Expand Down
2 changes: 1 addition & 1 deletion app/views/redaction/news/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
= form.label :section_id, "Section"
= form.collection_select :section_id, Section.published, :id, :title
= form.label :title, "Titre"
= form.text_field :title, autocomplete: 'off', required: 'required', spellcheck: 'true', maxlength: 100
= form.text_field :title, autocomplete: 'off', required: 'required', spellcheck: 'true', maxlength: 160
%button.cancel(type="button") Annuler
= form.submit "OK"
2 changes: 1 addition & 1 deletion app/views/redaction/news/reorganize.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
= form.collection_select :section_id, Section.published, :id, :title
%p
= form.label :title, "Titre"
= form.text_field :title, autocomplete: 'off', required: 'required', spellcheck: 'true', maxlength: 100
= form.text_field :title, autocomplete: 'off', required: 'required', spellcheck: 'true', maxlength: 160
%p
= form.label :wiki_body, "Chapeau"
= form.text_area :wiki_body, required: 'required', spellcheck: 'true', class: 'markItUp'
Expand Down