Sha256: b819a94926b72bda1933bb89414c071713806a802596f7cd6ccca455b042f3fa

Contents?: true

Size: 1.39 KB

Versions: 17

Compression:

Stored size: 1.39 KB

Contents

<%- if @clipboard_items.blank? -%>
<%= render :partial => 'new_page_form' %>
<%- else -%>
<div id="overlay_tabs">
  <ul>
    <li><a href="#create_page_tab"><%= _t('New page') %></a></li>
    <li><a href="#paste_page_tab"><%= _t('Paste from clipboard') %></a></li>
  </ul>
  <div id="errors"></div>
  <div id="create_page_tab">
    <%= render :partial => 'new_page_form' %>
  </div>
  <div id="paste_page_tab">
    <%= form_for([:admin, @page], :remote => true, :html => {:id => 'paste_page_form'}) do |f| %>
      <%= f.hidden_field(:parent_id) %>
      <table id="paste_page_form">
        <tr>
          <td class="label">
            <label for="paste_from_clipboard"><%= _t("Page") %></label>
          </td>
          <td class="select">
            <%= clipboard_select_tag(@clipboard_items) %>
          </td>
        </tr>
        <tr>
          <td class="label">
            <%= f.label :name %>
          </td>
          <td class="input">
            <%= f.text_field(:name, :size => 15, :class => "thin_border") %>
          </td>
        </tr>
        <tr>
          <td class="label">&nbsp;</td>
          <td class="submit">
            <%= f.button _t(:paste), :class => 'button', :name => nil %>
          </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/pages/new.html.erb
alchemy_cms-2.9.0 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.8.3 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.6.3 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.6.2.1 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.6.2 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.6.1 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.6.0 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.6.0.rc5 app/views/alchemy/admin/pages/new.html.erb