Sha256: ccbcfad73cd339390490de12d4889bedc235e2e7de701f6b187e71d7078795a8

Contents?: true

Size: 1.16 KB

Versions: 17

Compression:

Stored size: 1.16 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="paste_element_errors" class="errors"></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

17 entries across 17 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.9.0 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.8.3 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.6.3 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.6.2.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.6.2 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.6.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.6.0 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.6.0.rc5 app/views/alchemy/admin/elements/new.html.erb