Sha256: 9cd313ab86ff23f5d4afd380646ad2506626d11baadca6d5126801f97edd3c8a

Contents?: true

Size: 1.15 KB

Versions: 20

Compression:

Stored size: 1.15 KB

Contents

<%- if clipboard_empty?('elements') -%>
<%= render :partial => '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 :partial => 'new_element_form' %>
  </div>
  <div id="paste_element_tab">
    <%= form_for([:admin, @element], :remote => true, :id => 'paste_element_form') do |f| %>
      <div id="errors" style="display: none"></div>
      <table>
        <tr>
          <td class="label">
            <label for="paste_from_clipboard"><%= t("Element") %></label>
          </td>
          <td class="select">
            <%= clipboard_select_tag(@clipboard_items) %>
          </td>
        </tr>
        <tr>
          <td colspan="2" class="submit">
            <%= f.hidden_field(:page_id) %>
            <%= f.button t("paste"), :class => 'button' %>
          </td>
        </tr>
      </table>
    <% end %>
  </div>
</div>
<script type="text/javascript" charset="utf-8">

  jQuery(function() {
    jQuery("#overlay_tabs").tabs();
  });

</script>
<%- end -%>

Version data entries

20 entries across 20 versions & 1 rubygems

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