<% if @managed_class.allows? :index %>
  <%= link_to url_for(action:"index", q:params[:q]), class:"button -cancel" do %>
    <%= fontawesome_icon :close %>
    Cancel
  <% end %>
<% end %>

<%= button_tag type:"submit", name:"save_and_review", class:"button -primary -save-and-review", value:"Save & Review" do %>
  <%= fontawesome_icon :check %>
  <%= @resource.persisted?? "Save" : "Create" %>
  <%= "& Review" %>
<% end %>

<%= button_tag type:"submit", name:"save", class:"button -primary -save", value:"Save" do %>
  <%= fontawesome_icon :check %>
  <%= @resource.persisted?? "Save" : "Create" %>
<% end %>



<% if @managed_class.allows? :index %>
  <%= link_to url_for(action:"index", q:params[:q]), class:"button -cancel" do %>
    <%= fontawesome_icon :close %>
    Cancel
  <% end %>
<% end %>

<% if @managed_class.allows? :show %>
  <%= button_tag type:"submit", name:"save_and_review", class:"button -primary -save-and-review", value:"Save & Review" do %>
    <%= fontawesome_icon :check %>
    <%= @resource.persisted?? "Save" : "Create" %>
    <%= "& Review" %>
  <% end %>
<% end %>

<%= button_tag type:"submit", name:"save", class:"button -primary -save", value:"Save" do %>
  <%= fontawesome_icon :check %>
  <%= @resource.persisted?? "Save" : "Create" %>
<% end %>



Hide Save & Review button if the model doesn't allow :show
Hide Save & Review button if the model doesn't allow :show
