Sha256: dd87622cf8654dfc37a938cd3113fa14324588240489e8f02839045c3db3ef50

Contents?: true

Size: 1023 Bytes

Versions: 3

Compression:

Stored size: 1023 Bytes

Contents

<%= simple_form_for @page, :html => { class: 'form-horizontal' } do |f| %>
	<%= f.error_notification %>
	
  <div class="form-inputs">
		<%= f.input :title, hint: 'nice and descriptive' %>
		<%= f.input :for_blog %>
		<%= f.input :tag_list, hint: 'space separated', :wrapper_html => { :id => 'page-tag-list' } %>
		<%= f.input :short_title, hint: 'ideally one word only, used for the menu', :wrapper_html => { :id => 'page-short-title' } %>
		<%= f.input :parent_page_title,
								as: :string,
								:wrapper_html => { :id => 'parent-page-title' },
								label: 'parent page title',
								:input_html => { 
																:data => { 	provide: 'typeahead',
																	 					source: Page.not_for_blog.by_title.map(&:title).to_json } 
																	} %>
	  <%= f.input :description, :input_html => { :rows => 3 } %>
		<%= f.input :body, :input_html => { :rows => 35, :class => 'ckeditor' } %>
	</div>
	
  <div class="form-actions">
    <%= f.button :submit, :class => 'btn btn-primary' %>
  </div>

<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tkh_content-0.3.1 app/views/pages/_form.html.erb
tkh_content-0.3 app/views/pages/_form.html.erb
tkh_content-0.2.1 app/views/pages/_form.html.erb