noosfero | Block edit modes (#463)

Daniela Feitosa gitlab at gitlab.com
Tue Feb 10 12:33:14 BRST 2015


New comment for Merge Request 463

https://gitlab.com/noosfero/noosfero/merge_requests/463#note_848790


Daniela Feitosa

The label should identify the select field.. you can use the "labelled_form_field" to display the "select_tag" too, like:
```
<%= labelled_form_field _('Edit modes:'), select_tag('block[edit_modes]', options_from_collection_for_select(@block.edit_modes_options, :first, :last, @block.edit_modes)) %>
```

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150210/0bac7f4f/attachment.html>


More information about the Noosfero-dev mailing list