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"> </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