diff --git a/app/models/legislation/annotation.rb b/app/models/legislation/annotation.rb
index 2bdfb3fca..b038b5e51 100644
--- a/app/models/legislation/annotation.rb
+++ b/app/models/legislation/annotation.rb
@@ -1,4 +1,5 @@
class Legislation::Annotation < ActiveRecord::Base
+ COMMENTS_PAGE_SIZE = 5
acts_as_paranoid column: :hidden_at
include ActsAsParanoidAliases
diff --git a/app/views/admin/legislation/draft_versions/_form.html.erb b/app/views/admin/legislation/draft_versions/_form.html.erb
index 1f221cd76..a29a93ea4 100644
--- a/app/views/admin/legislation/draft_versions/_form.html.erb
+++ b/app/views/admin/legislation/draft_versions/_form.html.erb
@@ -20,7 +20,7 @@
<%= f.label :title %>
- <%= f.text_field :title, label: false %>
+ <%= f.text_field :title, label: false, placeholder: t('admin.legislation.draft_versions.form.title_placeholder') %>
@@ -30,7 +30,7 @@
<%= t('admin.legislation.draft_versions.form.use_markdown') %>
- <%= f.text_area :changelog, label: false, rows: 5 %>
+ <%= f.text_area :changelog, label: false, rows: 5, placeholder: t('admin.legislation.draft_versions.form.changelog_placeholder') %>
@@ -77,7 +77,7 @@
<% end %>
- <%= f.text_area :body, label: false %>
+ <%= f.text_area :body, label: false, placeholder: t('admin.legislation.draft_versions.form.body_placeholder') %>
diff --git a/app/views/admin/legislation/processes/_form.html.erb b/app/views/admin/legislation/processes/_form.html.erb
index 8f8ee348f..b796049e1 100644
--- a/app/views/admin/legislation/processes/_form.html.erb
+++ b/app/views/admin/legislation/processes/_form.html.erb
@@ -119,7 +119,8 @@
<%= f.text_field :title,
- label: false %>
+ label: false,
+ placeholder: t('admin.legislation.processes.form.title_placeholder') %>
@@ -131,7 +132,8 @@
<%= f.text_area :description,
label: false,
- rows: 5 %>
+ rows: 5,
+ placeholder: t('admin.legislation.processes.form.description_placeholder') %>
@@ -143,7 +145,8 @@
<%= f.text_area :target,
label: false,
- rows: 5 %>
+ rows: 5,
+ placeholder: t('admin.legislation.processes.form.target_placeholder') %>
@@ -155,7 +158,8 @@
<%= f.text_area :how_to_participate,
label: false,
- rows: 5 %>
+ rows: 5,
+ placeholder: t('admin.legislation.processes.form.how_to_participate_placeholder') %>
@@ -167,7 +171,8 @@
<%= f.text_area :additional_info,
label: false,
- rows: 10 %>
+ rows: 10,
+ placeholder: t('admin.legislation.processes.form.additional_info_placeholder') %>
diff --git a/app/views/admin/legislation/questions/_form.html.erb b/app/views/admin/legislation/questions/_form.html.erb
index 9608f3d7d..4b0cf8ce5 100644
--- a/app/views/admin/legislation/questions/_form.html.erb
+++ b/app/views/admin/legislation/questions/_form.html.erb
@@ -20,7 +20,7 @@
<%= f.label :title %>
- <%= f.text_area :title, rows: 5, label: false %>
+ <%= f.text_area :title, rows: 5, label: false, placeholder: t('admin.legislation.questions.form.title_placeholder') %>
diff --git a/app/views/admin/legislation/questions/_question_option_fields.html.erb b/app/views/admin/legislation/questions/_question_option_fields.html.erb
index 0578e65ae..ef77872fa 100644
--- a/app/views/admin/legislation/questions/_question_option_fields.html.erb
+++ b/app/views/admin/legislation/questions/_question_option_fields.html.erb
@@ -2,7 +2,7 @@
- <%= f.text_field :value, label: false %>
+ <%= f.text_field :value, label: false, placeholder: t('admin.legislation.questions.form.value_placeholder') %>
<%= link_to_remove_association " #{t('.remove_option')}".html_safe, f %>
diff --git a/app/views/legislation/annotations/_comments_box.html.erb b/app/views/legislation/annotations/_comments_box.html.erb
index 24e87b141..4f33d45ef 100644
--- a/app/views/legislation/annotations/_comments_box.html.erb
+++ b/app/views/legislation/annotations/_comments_box.html.erb
@@ -6,20 +6,22 @@
<% end %>
<%= comment.body %>
+<%= truncate comment.body, length: 250 %>