Sha256: f260736e29a80524fd71fae7c4d354a551eecf4cab00fa676596c8bd259b4b9f

Contents?: true

Size: 1.06 KB

Versions: 7

Compression:

Stored size: 1.06 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 => "alchemy/admin/elements/element_head", :locals => {:element => element} %>
  <%- if !element.folded? -%>
    <%= form_for(
      [:admin, element],
      :remote => true,
      :html => {
        :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> <%= t('Mandatory') %>
      </p>
      <%- end -%>
      <%= render :partial => 'alchemy/admin/elements/element_foot', :locals => {:element => element} %>
    <% end %>
  <%- end -%>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc11 app/views/alchemy/admin/elements/_element.html.erb
alchemy_cms-2.2.rc8 app/views/alchemy/admin/elements/_element.html.erb
alchemy_cms-2.2.rc7 app/views/alchemy/admin/elements/_element.html.erb
alchemy_cms-2.2.rc6 app/views/alchemy/admin/elements/_element.html.erb
alchemy_cms-2.2.rc3 app/views/alchemy/admin/elements/_element.html.erb
alchemy_cms-2.2.rc2 app/views/alchemy/admin/elements/_element.html.erb
alchemy_cms-2.2.rc1 app/views/alchemy/admin/elements/_element.html.erb