<%= render "form_javascripts" %>

<%= form_for @item, :url => options, :html => { :class => "resource form-stacked", :multipart => true } do |form| %>

  <%= render "helpers/admin/resources/errors" %>

  <fieldset>
    <%= build_form(fields, form) %>

    <div class="actions">
      <% build_save_options.each do |key, value, special| %>
        <%
          message = Typus::I18n.t(value)
          options = { :name => key,
                      :onclick => "Typus.setConfirmUnload(false);",
                      'data-disable-with' => message,
                      :class => "btn" }
        %>
        <%= submit_tag message, options %>
      <% end %>
    </div>
  </fieldset>

<% end %>

<%= render "form_javascripts" %>

<%= form_for @item, :url => options, :html => { :class => "resource form-stacked", :multipart => true } do |form| %>

  <%= render "helpers/admin/resources/errors" %>

  <fieldset>
    <%= build_form(fields, form) %>

    <div class="actions">
      <% build_save_options.each do |key, value, special| %>
        <% klass = key.eql?("_save") ? 'btn primary' : 'btn'  %>
        <%
          message = Typus::I18n.t(value)
          options = { :name => key,
                      :onclick => "Typus.setConfirmUnload(false);",
                      'data-disable-with' => message,
                      :class => klass }
        %>
        <%= submit_tag message, options %>
      <% end %>
    </div>
  </fieldset>

<% end %>

Mark _save button as primary
Mark _save button as primary
