adds complete Booth management to admin

This commit is contained in:
Juanjo Bazán
2016-12-02 14:28:39 +01:00
parent 6f986f3750
commit f67f058b57
11 changed files with 58 additions and 142 deletions

View File

@@ -1,7 +1,7 @@
<%= render 'shared/back_link' %>
<%= back_link_to admin_booths_path %>
<h2><%= t("admin.booths.edit.title", poll: @poll.name) %>: <%= t("admin.booths.edit.subtitle") %></h2>
<h2><%= t("admin.booths.edit.title") %></h2>
<%= form_for @booth, url: admin_poll_booth_path(@poll, @booth) do |f| %>
<%= form_for @booth, url: admin_booth_path(@booth) do |f| %>
<%= render "form", f: f %>
<% end %>