Mercurial > hg > soundsoftware-site
comparison app/views/custom_fields/formats/_user.html.erb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
1 <p> | |
2 <label><%= l(:label_role) %></label> | |
3 <label class="block"> | |
4 <%= radio_button_tag 'status', 1, custom_field.user_role.blank?, :id => 'custom_field_user_role_all', | |
5 :data => {:disables => '.custom_field_user_role input'} %> | |
6 <%= l(:label_all) %> | |
7 </label> | |
8 <label class="block"> | |
9 <%= radio_button_tag 'status', 0, custom_field.user_role.present?, :id => 'custom_field_user_role_only', | |
10 :data => {:enables => '.custom_field_user_role input'} %> | |
11 <%= l(:label_only) %>: | |
12 </label> | |
13 <% Role.givable.sorted.each do |role| %> | |
14 <label class="block custom_field_user_role" style="padding-left:2em;"> | |
15 <%= check_box_tag 'custom_field[user_role][]', | |
16 role.id, | |
17 custom_field.user_role.is_a?(Array) && custom_field.user_role.include?(role.id.to_s), | |
18 :id => nil %> | |
19 <%= role.name %> | |
20 </label> | |
21 <% end %> | |
22 <%= hidden_field_tag 'custom_field[user_role][]', '' %> | |
23 </p> | |
24 <p><%= edit_tag_style_tag f %></p> |