diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-03 21:51:27 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-03 21:51:27 -0700 |
| commit | ffd510c781a76c97172f369ce54db1322fd49791 (patch) | |
| tree | a366e13f934899d3353bf9ffcf4eea78caffedb7 /app/views/agents | |
| parent | 2e606951fa8ec259f41820192e768566fae1804f (diff) | |
add foundation classes and nav.
Diffstat (limited to 'app/views/agents')
| -rw-r--r-- | app/views/agents/edit.html.erb | 12 | ||||
| -rw-r--r-- | app/views/agents/index.html.erb | 52 | ||||
| -rw-r--r-- | app/views/agents/new.html.erb | 10 | ||||
| -rw-r--r-- | app/views/agents/show.html.erb | 19 |
4 files changed, 53 insertions, 40 deletions
diff --git a/app/views/agents/edit.html.erb b/app/views/agents/edit.html.erb index bed9b23..7e8b939 100644 --- a/app/views/agents/edit.html.erb +++ b/app/views/agents/edit.html.erb @@ -1,6 +1,10 @@ -<h1>Editing Agent</h1> +<div class="row"> + <div class="small-12 columns"> + <h1>Editing Agent</h1> -<%= render 'form' %> + <%= render 'form' %> -<%= link_to 'Show', @agent %> | -<%= link_to 'Back', agents_path %> + <%= link_to 'Show', @agent %> | + <%= link_to 'Back', agents_path %> + </div> +</div> diff --git a/app/views/agents/index.html.erb b/app/views/agents/index.html.erb index 48a36e2..3a6b738 100644 --- a/app/views/agents/index.html.erb +++ b/app/views/agents/index.html.erb @@ -1,28 +1,28 @@ -<p id="notice"><%= notice %></p> +<div class="row"> + <div class="small-12 columns"> + <p id="notice"><%= notice %></p> -<h1>Listing Agents</h1> + <h1>Listing Agents</h1> + <%= link_to 'New Agent', new_agent_path, class: 'button' %> -<table> - <thead> - <tr> - <th>Hostname</th> - <th colspan="4"></th> - </tr> - </thead> - - <tbody> - <% @agents.each do |agent| %> - <tr> - <td><%= agent.hostname %></td> - <td><%= link_to 'Events', agent_events_path(agent) %></td> - <td><%= link_to 'Show', agent %></td> - <td><%= link_to 'Edit', edit_agent_path(agent) %></td> - <td><%= link_to 'Destroy', agent, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> - -<br> - -<%= link_to 'New Agent', new_agent_path %> + <table> + <thead> + <tr> + <th>Hostname</th> + <th colspan="4"></th> + </tr> + </thead> + <tbody> + <% @agents.each do |agent| %> + <tr> + <td><%= agent.hostname %></td> + <td><%= link_to 'Events', agent_events_path(agent) %></td> + <td><%= link_to 'Show', agent %></td> + <td><%= link_to 'Edit', edit_agent_path(agent) %></td> + <td><%= link_to 'Destroy', agent, method: :delete, data: { confirm: 'Are you sure?' } %></td> + </tr> + <% end %> + </tbody> + </table> + </div> +</div> diff --git a/app/views/agents/new.html.erb b/app/views/agents/new.html.erb index 782236f..ce5d37a 100644 --- a/app/views/agents/new.html.erb +++ b/app/views/agents/new.html.erb @@ -1,5 +1,9 @@ -<h1>New Agent</h1> +<div class="row"> + <div class="small-12 columns"> + <h1>New Agent</h1> -<%= render 'form' %> + <%= render 'form' %> -<%= link_to 'Back', agents_path %> + <%= link_to 'Back', agents_path %> + </div> +</div> diff --git a/app/views/agents/show.html.erb b/app/views/agents/show.html.erb index 0e7a061..61fad2c 100644 --- a/app/views/agents/show.html.erb +++ b/app/views/agents/show.html.erb @@ -1,9 +1,14 @@ -<p id="notice"><%= notice %></p> +<div class="row"> + <div class="small-12 columns"> + <p id="notice"><%= notice %></p> -<p> - <strong>Hostname:</strong> - <%= @agent.hostname %> -</p> + <p> + <strong>Hostname:</strong> + <%= @agent.hostname %> + </p> -<%= link_to 'Edit', edit_agent_path(@agent) %> | -<%= link_to 'Back', agents_path %> + <%= link_to 'Edit', edit_agent_path(@agent) %> | + <%= link_to 'Events', agent_events_path(@agent) %> | + <%= link_to 'Back', agents_path %> + </div> +</div> |
