Sha256: 17b708ba114bc25a82050603a9195602d86a8bdeaa88027e0d6f4e8a869b3f5b

Contents?: true

Size: 1.24 KB

Versions: 5

Compression:

Stored size: 1.24 KB

Contents

<% is_partent_url = (request.referer.to_s =~ Regexp.new([request.host_with_port, request.path.gsub(/^(\/\w+).*?$/) { $1 }].join(""))) %>
<% url = resource_path(@resource, :redirect_to => is_partent_url ? request.path : request.referer) -%>
<%= semantic_form_for(@resource, :url => url, :html => {:multipart => true}) do |f| %>
  <div class="mainTitle">
    <%= render_with_fallback_themes "page_header", :page_title_tkey => "cms_admin.Editing %s" % @resource_title_name  %>
    <% if has_permission(:update) %>
      <div class="formSubmit sticky">
        <%= render_with_fallback_themes "save_button", :submit_text => rt("Update") %>
      </div>
      <%= render_with_fallback_themes "publish_hint" %>
      <script type="text/javascript" charset="utf-8">
        $('.sticky').make_sticky();
      </script>
    <% end %>
  </div>

  <%= render_with_fallback_themes "all_error_messages" %>
  <%= render_with_fallback_themes "form", :form => f, :attributes => @resource.resource_attributes_for_settings %>

  <%= render_with_fallback_themes "after_form", :form => f %>

  <% if has_permission(:update) %>
    <div class="bottom-buttons clearfix">
      <%= render_with_fallback_themes "save_button", :submit_text => rt("Update") %>
    </div>
  <% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
qor_layout-0.0.5 app/views/resources/qor_layout/edit.html.erb
qor_layout-0.0.4 app/views/resources/qor_layout/edit.html.erb
qor_layout-0.0.3 app/views/resources/qor_layout/edit.html.erb
qor_layout-0.0.2 app/views/resources/qor_layout/edit.html.erb
qor_layout-0.0.1 app/views/resources/qor_layout/edit.html.erb