Sha256: 39af3300d8ae1a412b1e3ce1f854de84cec163da55f81ab44d5ee583af1d10e0

Contents?: true

Size: 1.39 KB

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-2.4.1 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.5.0.b5 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.5.0.b2 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.4.0 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.4.rc4 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.4.rc2 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.4.rc1 app/views/alchemy/admin/pages/new.html.erb
alchemy_cms-2.4.beta2 app/views/alchemy/admin/pages/new.html.erb