Sha256: 63dd9a92f5f3d1432e66e1d02aada0b8a7cc4e218c58a0d385de4d5d08ee6b15

Contents?: true

Size: 870 Bytes

Versions: 10

Compression:

Stored size: 870 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' %>
		<%= f.input :short_title, hint: 'ideally one word only, used for the menu' %>
		<%= f.input :parent_page_title,
								as: :string,
								label: 'parent page title',
								:input_html => { class: 'typeahead',
																: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 } %>
	</div>
	
  <div class="form-actions">
    <%= f.button :submit, :class => 'btn btn-primary' %>
  </div>

<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tkh_content-0.1.15 app/views/pages/_form.html.erb
tkh_content-0.1.14 app/views/pages/_form.html.erb
tkh_content-0.1.13 app/views/pages/_form.html.erb
tkh_content-0.1.12 app/views/pages/_form.html.erb
tkh_content-0.1.11 app/views/pages/_form.html.erb
tkh_content-0.1.10 app/views/pages/_form.html.erb
tkh_content-0.1.9.3 app/views/pages/_form.html.erb
tkh_content-0.1.9.2 app/views/pages/_form.html.erb
tkh_content-0.1.9.1 app/views/pages/_form.html.erb
tkh_content-0.1.9 app/views/pages/_form.html.erb