Sha256: ee684fc2df0ddfeba5c183c05e74c84a849c4c68d557f2c882f94acf30d59714

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

<div class="table-responsive"> 
	<table class="table table-hover members-table middle-align">
	  <thead> 
			<tr> 
				<th style="text-align: center;width:20px">#</th> 
				<th>Name</th>
				<th style="text-align: center;">Actions</th>
			</tr> 
		</thead>
		
	  <tbody>
	  	<% @roles.each_with_index do |role, i| %>
	  		
	  		<% edit_link = edit_admin_role_path(id: role.id) %>
				<% delete_link = admin_role_path(id: role.id) %>
				
		    <tr id="tr_role_<%= role.id %>">
		      
		      <th scope="row" style="text-align: center;">
						<% 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, admin_role_path(role), remote: true %></td>

					<td class="action-links" style="width:10%">

		      	<%= link_to raw("<i class=\"linecons-pencil\"></i> Edit Role"), edit_link, :remote=>true, class: "edit" %>

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

		      </td>

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
usman-0.1.5 app/views/usman/admin/roles/_index.html.erb
usman-0.1.4 app/views/usman/admin/roles/_index.html.erb
usman-0.1.3 app/views/usman/admin/roles/_index.html.erb
usman-0.1.2 app/views/usman/admin/roles/_index.html.erb
usman-0.1.1 app/views/usman/admin/roles/_index.html.erb