PageRenderTime 36ms CodeModel.GetById 31ms app.highlight 4ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/smartlib/views/admin/panels.erb

https://bitbucket.org/thrabal/smartlib
Ruby HTML | 21 lines | 17 code | 4 blank | 0 comment | 0 complexity | a1b8b4dc6ed122ebfd668649fd42f8f7 MD5 | raw file
 1<% content_for :title do %>Sk?�n?<% end %>
 2
 3<h2>Sk?�n?</h2>
 4
 5<% @panels.each do |panel| %>
 6    <a href="<%= to("/panels/#{panel[:_id]}") %>"><%= panel[:name] %></a>
 7<% end %>
 8
 9<hr>
10
11<h3>Nov� sk?�?</h3>
12<form method="post" action="<%= to("/panels") %>">
13    <input type="hidden" name="_method" value="PUT">
14    <input type="text" name="name">
15    <select name="footprint_id">
16        <% @footprints.each do |footprint| %>
17            <option value="<%= footprint[:_id] %>"><%= footprint[:name] %></option>
18        <% end %>
19    </select>
20    <input type="submit" value="Vytvo?it">
21</form>