ruling_timer/app/views/admin/ruling_timers/_role_card.html.erb

7 lines
330 B
Plaintext
Raw Normal View History

2022-04-18 01:01:57 +00:00
<% checked = false if defined?(checked).nil? %>
<li class="check-item <%=checked ? 'active' : ''%>">
<label>
<span class="user-name"><%= role.title rescue 'noname' %></span>
</label>
<%= check_box_tag "#{@role_params_name}", (role.id rescue nil) , (checked ? true : false) , :id => "role_ids_#{(role.id rescue '')}"%>
</li>