25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
|
<table class="table main-list default footable-loaded">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Server name</th>
|
||
|
<th>IP</th>
|
||
|
<th>Action</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @site_servers.each do |site_server|%>
|
||
|
<tr>
|
||
|
<td><%=site_server.server_name%></td>
|
||
|
<td><%=site_server.ip%></td>
|
||
|
<td>
|
||
|
<a class="btn btn-primary" href = "<%= admin_site_panel_edit_server_info_path+"?id=#{site_server.id.to_s}" %>"><%=t(:edit)%></a>
|
||
|
<a class="btn btn-primary" href = "#" onclick="if(window.confirm('Do you really want to delete <%=site_server.server_name%>?')) { window.location.href = '<%= admin_site_panel_edit_server_info_path+"?id=#{site_server.id.to_s}&type=delete" %>';}"><%=t(:remove)%></a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<div class="bottomnav clearfix">
|
||
|
<div class="pagination pagination-centered"><%=paginate(@site_servers)%></div>
|
||
|
<a class="btn btn-primary pull-right" href="<%=admin_site_panel_edit_server_info_path+"?type=create"%>"><%=t(:add)%></a>
|
||
|
</div>
|