Sha256: 766987c9dca6c39da944477e8f3f01c3b222ef6a019674bec85cf4dbae3a3595
Contents?: true
Size: 1.16 KB
Versions: 7
Compression:
Stored size: 1.16 KB
Contents
<%= simple_form_for @page, :html => { :class => 'activa-page' } do |f| %> <div id="activa-title-wrapper"> <%= f.input :title %> <a href="javascript:;" title="Permalink"></a> </div> <% unless @page.root? %> <%= f.input :slug, :as => :slug, :wrapper_html => { :class => 'hidden' } %> <%= f.input :parent_id, :as => :pages_tree, :page => @page %> <% end %> <%= f.input :article, :as => :editor %> <div class="actions"> <%= f.button :submit, t('views.pages.shared.save_as_draft'), :name => :save_as_draft %> <%= t('views.pages.shared.or') %> <%= link_to t('views.pages.shared.back_link'), pages_path %> <%= f.button :submit, :id => 'commit-button' %> </div> <% end %> <script> $(function() { var activa; return activa = new Activa({ title_input: $('#page_title'), slug_input: $('#page_slug'), toggle_btn: $('#activa-title-wrapper a'), toggle_wrapper: $('form.activa-page div.slug'), done_btn: $('form.activa-page button'), cancel_btn: $('form.activa-page a.cancel'), update_uri: '<%= slug_pages_path(:format => :json) %>', persisted: <%= @page.persisted? %> }); }); </script>
Version data entries
7 entries across 7 versions & 1 rubygems