shows valuator description in admin edit form

This commit is contained in:
Juanjo Bazán
2016-03-18 19:44:18 +01:00
parent b8dea9cd2a
commit f4010bc77d
4 changed files with 30 additions and 1 deletions

View File

@@ -32,7 +32,7 @@
<%= f.label :valuator_ids, t("admin.spending_proposals.edit.assigned_valuators") %>
<%= f.collection_check_boxes :valuator_ids, @valuators, :id, :email do |b| %>
<%= b.label(title: [b.object.name, b.object.description].compact.join(' : ')) { b.check_box + b.text} %>
<%= b.label(title: valuator_label(b.object)) { b.check_box + truncate(b.object.description_or_email, length: 60) } %>
<% end %>
<p class="clear">