Sha256: 5c91fd20777ed88793a2f1779ec61dac6c9e7ee5790eb6708a7c832cd2368454

Contents?: true

Size: 999 Bytes

Versions: 16

Compression:

Stored size: 999 Bytes

Contents

<div class="new_alchemy_element">
<%- if @elements.blank? -%>
  <div class="info with_margin">
    <%= render_icon('info') %>
    <%= t('no_more_elements_to_add') %>
  </div>
<%- else -%>
  <%= form_for [:admin, @element], :remote => true, :class => "add_element_content" do |form| %>
    <div id="errors" style="display: none"></div>
    <table>
      <tr>
        <td class="label">
          <%= form.label :name, t("element_of_type") %>
        </td>
        <td class="select">
          <%= form.select(
            'name',
            @page.can_have_cells? ? grouped_elements_for_select(@elements) : elements_for_select(@elements),
            { :prompt => t('select_element') },
            { :class => "alchemy_selectbox" }
          ) -%>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="submit">
          <%= form.hidden_field 'page_id' %>
          <%= form.button t('add'), :class => 'button' %>
        </td>
      </tr>
    </table>
  <% end %>
<%- end -%>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-2.2.4 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.3.2 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.3.1 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.2 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.1 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.0 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.rc15 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.rc14 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.rc13 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.rc11 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.rc8 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.rc7 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.rc6 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.rc3 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.rc2 app/views/alchemy/admin/elements/_new_element_form.html.erb
alchemy_cms-2.2.rc1 app/views/alchemy/admin/elements/_new_element_form.html.erb