created template selecting

This commit is contained in:
Senad Uka
2016-02-21 11:59:13 +01:00
parent 7af44a6245
commit 709ce3e38c
46 changed files with 584 additions and 20 deletions

View File

@@ -1,23 +1,26 @@
<div class="row">
<div class="col-md-11">
<div class="col-md-10">
<h2>Servers</h2>
</div>
<div class="col-md-1 text-right">
<%= link_to(new_server_path) do %>
<button class="btn btn-default pull-right">Add Server</button>
<%= button_to(new_server_path, method: :get, class: "btn btn-default pull-right") do %>
Add Server
<% end %>
</dev>
</div>
<div class="row">
<% @page.items.each do |server| %>
<div class="col-md-2 col-xs-6 text-md-center server-thumbnail">
<div class="col-md-3 col-xs-6 text-md-center server-thumbnail">
<%= link_to(server_path(server)) do %>
<div class="thumbnail">
<%= image_tag('ubuntu.png', size: '128', class:"img-responsive" ) %>
<div class="caption text-md-center" >
<div class="caption text-md-center">
<h3 class="server-name"><%= server.name %></h3>
</div>
</div>
<% end %>
</div>
<br /><br />
<% end %>
</div>