Unifies styles and views for admin voting booths section
This commit is contained in:
@@ -1,20 +1,16 @@
|
||||
<div class="row">
|
||||
<div class="small-12 medium-6 column">
|
||||
<%= f.text_field :name,
|
||||
placeholder: t('admin.booths.new.name'),
|
||||
label: t("admin.booths.new.name") %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 column">
|
||||
<%= f.text_field :location,
|
||||
placeholder: t("admin.booths.new.location"),
|
||||
label: t("admin.booths.new.location") %>
|
||||
</div>
|
||||
<div class="small-12 medium-6 column">
|
||||
<%= f.text_field :name,
|
||||
placeholder: t('admin.booths.new.name'),
|
||||
label: t("admin.booths.new.name") %>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="small-12 medium-4 column">
|
||||
<%= f.submit t("admin.booths.#{admin_submit_action(@booth)}.submit_button"),
|
||||
class: "button success expanded" %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="small-12 medium-6 column clear">
|
||||
<%= f.text_field :location,
|
||||
placeholder: t("admin.booths.new.location"),
|
||||
label: t("admin.booths.new.location") %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-4 large-3 column clear end">
|
||||
<%= f.submit t("admin.booths.#{admin_submit_action(@booth)}.submit_button"),
|
||||
class: "button success expanded" %>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<%= back_link_to admin_booths_path %>
|
||||
|
||||
<h2><%= t("admin.booths.edit.title") %></h2>
|
||||
<div class="small-12 column">
|
||||
<h2><%= t("admin.booths.edit.title") %></h2>
|
||||
</div>
|
||||
|
||||
<%= form_for @booth, url: admin_booth_path(@booth) do |f| %>
|
||||
<%= render "form", f: f %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<h2 class="inline-block"><%= t("admin.booths.index.title") %></h2>
|
||||
|
||||
<% if controller_name == "booths" && action_name != "available" %>
|
||||
<%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path, class: "button success float-right" %>
|
||||
<%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path, class: "button float-right" %>
|
||||
<% end %>
|
||||
|
||||
<% if @booths.empty? %>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<%= back_link_to admin_booths_path %>
|
||||
|
||||
<h2><%= t("admin.booths.new.title") %></h2>
|
||||
<div class="small-12 column">
|
||||
<h2><%= t("admin.booths.new.title") %></h2>
|
||||
</div>
|
||||
|
||||
<%= form_for @booth, url: admin_booths_path(@booth) do |f| %>
|
||||
<%= render "form", f: f %>
|
||||
|
||||
Reference in New Issue
Block a user