diff --git a/app/views/install/_form.html.erb b/app/views/install/_form.html.erb index c4520cd6..682143c8 100755 --- a/app/views/install/_form.html.erb +++ b/app/views/install/_form.html.erb @@ -1,4 +1,4 @@ -
+<%= form_tag activate_path, class: "row" do %>
@@ -27,11 +27,11 @@
- +
- +
@@ -41,4 +41,4 @@
- +<% end %> diff --git a/app/views/layouts/_left_sidebar.html.erb b/app/views/layouts/_left_sidebar.html.erb index 1dbb3b98..4ca2f1ad 100644 --- a/app/views/layouts/_left_sidebar.html.erb +++ b/app/views/layouts/_left_sidebar.html.erb @@ -51,8 +51,18 @@ <% end %> <% if can? :index, :home %> <% if current_login_employee.role != "kitchen" %> + <% if current_user.role == "cashier" + shift = ShiftSale.current_open_shift(current_user.id) + if !shift.nil? + path = origami_dashboard_path + else + path = new_origami_shift_path + end + else current_user.role == "administrator" + path = origami_dashboard_path + end %>