Sha256: a846af6111a2df75667e9dccf48acec29ea37cd5dfa4f6c3ebac27de66bea2b5

Contents?: true

Size: 918 Bytes

Versions: 60

Compression:

Stored size: 918 Bytes

Contents

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

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
alchemy_cms-7.0.16 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.15 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-6.1.10 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.14 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.13 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.12 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.11 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.10 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.9 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.8 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.7 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.6 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.5 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.4 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.3 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-6.1.9 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.2 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-6.1.8 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-6.1.7 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-7.0.1 app/views/alchemy/admin/elements/new.html.erb