Sha256: 656e7fcf58d089ff40488bb8e99b8331c5247179e6d17d0cfcba7e79f8558e38

Contents?: true

Size: 827 Bytes

Versions: 25

Compression:

Stored size: 827 Bytes

Contents

<%- if @clipboard_items.blank? -%>
  <%= render 'new_element_form' %>
<%- else -%>
<div id="overlay_tabs">
  <ul>
    <li><a href="#create_element_tab"><%= _t('New') %></a></li>
    <li><a href="#paste_element_tab"><%= _t('Paste from clipboard') %></a></li>
  </ul>
  <div id="create_element_tab">
    <%= render 'new_element_form' %>
  </div>
  <div id="paste_element_tab">
    <%= alchemy_form_for([:admin, @element]) do |f| %>
      <%= f.hidden_field(:page_id) %>
      <div class="input select">
        <label for="paste_from_clipboard" class="control-label"><%= _t("Element") %></label>
        <%= select_tag 'paste_from_clipboard',
          clipboard_select_tag_options(@clipboard_items),
          class: 'alchemy_selectbox' %>
      </div>
      <%= f.submit _t(:paste) %>
    <% end %>
  </div>
</div>
<%- end -%>

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/elements/new.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/elements/new.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/elements/new.html.erb