Sha256: abcdeceddc22772d32e936fce0cd1ac13a821ecd2edcb4608ed93098842c6563

Contents?: true

Size: 1.91 KB

Versions: 25

Compression:

Stored size: 1.91 KB

Contents

<div class="table-responsive"> 
	<table class="table table-hover members-table middle-align">
	  <thead> 
			<tr> 
				<th style="text-align: center;width:60px">#</th> 
				<th>UUID</th>
				<th>Status</th>
				<th>Device Name</th>
				<th>Device Type</th>
				<% if display_delete_links? %>
				<th style="text-align: center;" colspan="2">Actions</th> 
				<% end %>
			</tr>  
		</thead>
		
	  <tbody>
	  	<% @devices.each_with_index do |device, i| %>
	  			
	  		<tr id="tr_device_<%= device.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="device-name" style="font-weight:bold;"><%= link_to device.uuid, registration_device_path(registration_id: device.registration_id, id: device.id), remote: true %></td>
					<td>
						<% if device.pending? %>
							<span class="ml-5 mt-5 label label-default">Pending</span>
						<% elsif device.verified? %>
							<span class="ml-5 mt-5 label label-success">Verified</span>
						<% elsif device.blocked? %>
							<span class="ml-5 mt-5 label label-danger">Blocked</span>
						<% end %>
					</td>

					<td class="device-name"><%= device.device_name %></td>
					<td class="device-name"><%= device.device_type %></td>
					
					<% if display_delete_links? %>
					<% delete_link = registration_device_path(@registration, device) %>
					<td class="action-links" style="width:10%"> -->

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

		      </td>
		      <% end %>

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

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
usman-0.3.34 app/views/usman/registration_devices/_index.html.erb
usman-0.3.33 app/views/usman/registration_devices/_index.html.erb
usman-0.3.32 app/views/usman/registration_devices/_index.html.erb
usman-0.3.31 app/views/usman/registration_devices/_index.html.erb
usman-0.3.30 app/views/usman/registration_devices/_index.html.erb
usman-0.3.29 app/views/usman/registration_devices/_index.html.erb
usman-0.3.28 app/views/usman/registration_devices/_index.html.erb
usman-0.3.27 app/views/usman/registration_devices/_index.html.erb
usman-0.3.26 app/views/usman/registration_devices/_index.html.erb
usman-0.3.25 app/views/usman/registration_devices/_index.html.erb
usman-0.3.24 app/views/usman/registration_devices/_index.html.erb
usman-0.3.23 app/views/usman/registration_devices/_index.html.erb
usman-0.3.22 app/views/usman/registration_devices/_index.html.erb
usman-0.3.21 app/views/usman/registration_devices/_index.html.erb
usman-0.3.20 app/views/usman/registration_devices/_index.html.erb
usman-0.3.19 app/views/usman/registration_devices/_index.html.erb
usman-0.3.18 app/views/usman/registration_devices/_index.html.erb
usman-0.3.17 app/views/usman/registration_devices/_index.html.erb
usman-0.3.16 app/views/usman/registration_devices/_index.html.erb
usman-0.3.15 app/views/usman/registration_devices/_index.html.erb