Sha256: d235a263fbfc46f3ab7d54dd815356b83a5cc2a7215e53b847d38377d8f6e3d0

Contents?: true

Size: 980 Bytes

Versions: 34

Compression:

Stored size: 980 Bytes

Contents

<p>
  <label><%= l(:label_role) %></label>
  <label class="block">
    <%= radio_button_tag 'status', 1, custom_field.user_role.blank?, :id => 'custom_field_user_role_all',
          :data => {:disables => '.custom_field_user_role input'} %>
    <%= l(:label_all) %>
  </label>
  <label class="block">
    <%= radio_button_tag 'status', 0, custom_field.user_role.present?, :id => 'custom_field_user_role_only',
          :data => {:enables => '.custom_field_user_role input'} %>
    <%= l(:label_only) %>:
  </label>
  <% Role.givable.sorted.each do |role| %>
    <label class="block custom_field_user_role" style="padding-left:2em;">
      <%= check_box_tag 'custom_field[user_role][]',
            role.id, 
            custom_field.user_role.is_a?(Array) && custom_field.user_role.include?(role.id.to_s),
            :id => nil %>
      <%= role.name %>
    </label>
  <% end %>
  <%= hidden_field_tag 'custom_field[user_role][]', '' %>
</p>
<p><%= edit_tag_style_tag f %></p>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.0.38 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.0.37 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.1.11 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.1.10 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.0.36 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.0.34 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.1.09 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.1.07 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.1.06 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.1.05 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.1.04 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.1.03 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.0.33 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.1.02 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.1.01 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.0.29 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.0.28 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.0.27 spec/redmine/app/views/custom_fields/formats/_user.html.erb
redmine_extensions-0.0.24 spec/redmine/app/views/custom_fields/formats/_user.html.erb