Sha256: cda3c81ead60644a092ae4ef15df89ae4b158babd79042265e6584639a2d6546
Contents?: true
Size: 1.42 KB
Versions: 2
Compression:
Stored size: 1.42 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 :menu_type, :collection => Activa::Page::MENU_TYPES.map {|menu_type| [t("simple_form.options.page.menu_type.#{menu_type}"), menu_type] }, :include_blank => false %> <%= 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 %> <% content_for :javascript do %> <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> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activa-0.0.14 | app/views/activa/pages/_form.html.erb |
activa-0.0.13 | app/views/activa/pages/_form.html.erb |