Sha256: 7525dc3c731e7e7401a254fe234b4d8d94bce8df42dbd40022926fd9776a6d01
Contents?: true
Size: 1.31 KB
Versions: 13
Compression:
Stored size: 1.31 KB
Contents
<%- if @clipboard_items.blank? -%> <%= render :partial => 'new_page_form' %> <%- else -%> <div id="overlay_tabs"> <ul> <li><a href="#create_page_tab"><%= _('New page') %></a></li> <li><a href="#paste_page_tab"><%= _('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 very_long"> <label for="paste_from_clipboard"><%= _("Page") %></label> </td> <td class="input"> <%= clipboard_select_tag(@clipboard_items, :class => 'long') %> </td> </tr> <tr> <td class="label"> <%= f.label(:name, _("Name")) %> </td> <td class="input"> <%= f.text_field(:name, :size => 15, :class => "thin_border long") %> </td> </tr> <tr> <td class="label"> </td> <td class="submit"> <%= f.button _("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
13 entries across 13 versions & 1 rubygems