Booths and shifts index pages minor fixes
Showing only actions to assign and edit shifits in shifts index, and option to create a new booth in booths index.
This commit is contained in:
@@ -6,11 +6,13 @@
|
|||||||
<%= booth.location %>
|
<%= booth.location %>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<%= link_to t("admin.booths.booth.shifts"),
|
<% if controller_name == "shifts" || controller_name == "booths" && action_name == "available" %>
|
||||||
new_admin_booth_shift_path(booth),
|
<%= link_to t("admin.booths.booth.shifts"),
|
||||||
class: "button hollow" %>
|
new_admin_booth_shift_path(booth),
|
||||||
<%= link_to t("admin.actions.edit"),
|
class: "button hollow" %>
|
||||||
edit_admin_booth_path(booth),
|
<%= link_to t("admin.actions.edit"),
|
||||||
class: "button hollow" %>
|
edit_admin_booth_path(booth),
|
||||||
|
class: "button hollow" %>
|
||||||
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
<h2 class="inline-block"><%= t("admin.booths.index.title") %></h2>
|
<h2 class="inline-block"><%= t("admin.booths.index.title") %></h2>
|
||||||
|
|
||||||
<%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path,
|
<% if controller_name == "booths" && action_name != "available" %>
|
||||||
class: "button success float-right" %>
|
<%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path, class: "button success float-right" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% if @booths.empty? %>
|
<% if @booths.empty? %>
|
||||||
<div class="callout primary">
|
<div class="callout primary">
|
||||||
|
|||||||
Reference in New Issue
Block a user