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.0.2 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.0.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.0.0 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.0.0.rc8 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-3.0.0.rc5 app/views/alchemy/admin/elements/new.html.erb