Sha256: 926b5bf591a23d0fca5e3e62536e7879cb77a64ff2836955e3141c1d00062127

Contents?: true

Size: 1.41 KB

Versions: 20

Compression:

Stored size: 1.41 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" style="display:none"></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="new_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

20 entries across 20 versions & 1 rubygems

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