Sha256: 5e06d4ecdf206b836001c910b4424bb0ef5169ef7727c4c8bb50e87099d6669f
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
<%= simple_form_for @page, :html => { class: 'form-horizontal' } do |f| %> <%= f.error_notification %> <div class="form-inputs"> <%= f.input :title, label: t('activerecord.attributes.pages.title'), hint: t('pages.hint.title') %> <%= f.input :for_blog, label: t('activerecord.attributes.pages.for_the_blog') %> <%= f.input :tag_list, hint: 'space separated', :wrapper_html => { :id => 'page-tag-list' } %> <%= f.input :short_title, label: t('activerecord.attributes.pages.short_title'), hint: t('pages.hint.short_title'), :wrapper_html => { :id => 'page-short-title' } %> <%= f.input :parent_page_title, as: :string, :wrapper_html => { :id => 'parent-page-title' }, label: t('activerecord.attributes.pages.parent_title'), :input_html => { :autocomplete => 'off', :data => { provide: 'typeahead', source: Page.not_for_blog.by_title.map(&:title).to_json } } %> <%= f.input :description, label: t('activerecord.attributes.pages.description'), :input_html => { :rows => 3 } %> <%= f.input :body, label: t('activerecord.attributes.pages.body'), :input_html => { :rows => 35, :class => 'ckeditor' } %> </div> <div class="form-actions"> <%= f.button :submit, :class => 'btn btn-primary' %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tkh_content-0.4.3 | app/views/pages/_form.html.erb |