Sha256: ccc3f6308fa5d3e4b87bc991b9568dadebb47692c2f945a9ee55dcb0ebb537cc

Contents?: true

Size: 1.55 KB

Versions: 11

Compression:

Stored size: 1.55 KB

Contents

<div class="table-responsive"> 
	<table class="table table-hover members-table middle-align">
	  <thead> 
			<tr> 
				<th style=";width:60px" class="hidden-sm hidden-xs">#</th> 
				<th>Name</th>
				<% if display_manage_links? %>
				<th style="text-align: center;" class="hidden-sm hidden-xs">Actions</th>
				<% end %>
			</tr>
		</thead>
		
	  <tbody>
	  	<% @roles.each_with_index do |role, i| %>
	  		
	  		<% edit_link = edit_role_path(id: role.id) %>
				<% delete_link = role_path(id: role.id) %>
				
		    <tr id="tr_role_<%= role.id %>">
		      
		      <th scope="row" style="" class="hidden-sm hidden-xs">
						<% if i < 0 %>
							<i class="fa fa-check text-success"></i>
						<% else %>
							<%= i + 1 + (@per_page.to_i * (@current_page.to_i - 1)) %>
						<% end %>
					</th>

		      <td class="role-name"><%= link_to role.name, role_path(role), remote: true %></td>

					<% if display_manage_links? %>

				  <td class="action-links hidden-xs hidden-sm" style="width:10%">
				    <%= link_to raw("<i class=\"fa-pencil\"></i> Edit Role"), edit_link, :remote=>true, class: "edit" if role.can_be_edited? and display_edit_links? %>

				    <%= link_to raw("<i class=\"fa-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" if role.can_be_deleted? and display_delete_links? %>
				  </td>

				  <% end %>

		    </tr>
		  <% end %>
	  </tbody>
	</table>
</div>

<div class="row">
  <div class="col-sm-12">
    <%= paginate_kuppayam(@roles) %>
  </div>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
usman-0.4.10.pre.materialize app/views/usman/roles/_index.html.erb
usman-0.4.9.pre.materialize app/views/usman/roles/_index.html.erb
usman-0.4.8.pre.materialize app/views/usman/roles/_index.html.erb
usman-0.4.7.pre.materialize app/views/usman/roles/_index.html.erb
usman-0.4.6.pre.materialize app/views/usman/roles/_index.html.erb
usman-0.4.5.pre.materialize app/views/usman/roles/_index.html.erb
usman-0.4.4.pre.materialize app/views/usman/roles/_index.html.erb
usman-0.4.3.pre.materialize app/views/usman/roles/_index.html.erb
usman-0.4.2.pre.materialize app/views/usman/roles/_index.html.erb
usman-0.4.1.pre.materialize app/views/usman/roles/_index.html.erb
usman-0.4.0.pre.materialize app/views/usman/roles/_index.html.erb