Sha256: fc799693a8e587b0959aae6887208c2704cb620b6f47f97f8fe6ad02b844cce4

Contents?: true

Size: 1.01 KB

Versions: 8

Compression:

Stored size: 1.01 KB

Contents

<div class="element_editor<%= element.folded ? ' folded' : '' %> <%= defined?(draggable) && !draggable ? 'not-draggable' : 'draggable'  %>" id="element_<%= element.id %>" data-element-id="<%= element.id %>">
  <%= render :partial => "admin/elements/element_head", :locals => {:element => element} %>
  <%- if !element.folded? -%>
    <%= form_for(
      [:admin, element],
      :remote => true,
      :onsubmit => "Alchemy.saveElement(this)",
      :id => "element_#{element.id}_form"
    ) do %>
      <div id="element_<%= element.id %>_errors" class="element_errors" style="display: none"></div>
      <div id="element_<%= element.id %>_content" class="element_content">
        <%= render_editor(element) %>
      </div>
      <%- if element.has_validations? -%>
      <p class="validation_notice">
        <span class="validation_indicator">*</span> <%= _('Mandatory') %>
      </p>
      <%- end -%>
      <%= render :partial => 'admin/elements/element_foot', :locals => {:element => element} %>
    <% end %>
  <%- end -%>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-2.0.7 app/views/admin/elements/_element.html.erb
alchemy_cms-2.0.6.1 app/views/admin/elements/_element.html.erb
alchemy_cms-2.0.5 app/views/admin/elements/_element.html.erb
alchemy_cms-2.0.4 app/views/admin/elements/_element.html.erb
alchemy_cms-2.0.3.1 app/views/admin/elements/_element.html.erb
alchemy_cms-2.0.3 app/views/admin/elements/_element.html.erb
alchemy_cms-2.0.2 app/views/admin/elements/_element.html.erb
alchemy_cms-2.0.1 app/views/admin/elements/_element.html.erb