/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
- <% content_for :title do %>Sk?ín?<% end %>
- <h2>Sk?ín?</h2>
- <% @panels.each do |panel| %>
- <a href="<%= to("/panels/#{panel[:_id]}") %>"><%= panel[:name] %></a>
- <% end %>
- <hr>
- <h3>Nová sk?í?</h3>
- <form method="post" action="<%= to("/panels") %>">
- <input type="hidden" name="_method" value="PUT">
- <input type="text" name="name">
- <select name="footprint_id">
- <% @footprints.each do |footprint| %>
- <option value="<%= footprint[:_id] %>"><%= footprint[:name] %></option>
- <% end %>
- </select>
- <input type="submit" value="Vytvo?it">
- </form>