Sha256: 41103f4a5d341e92eb6eaa13d2ebf859003aaf7306e4d211550237af9b12732f

Contents?: true

Size: 1.8 KB

Versions: 12

Compression:

Stored size: 1.8 KB

Contents

<%= simple_form_for @page, :html => { role: 'form' } do |f| %>
	<%= f.error_notification %>

		<%= 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,
								label: t('tags.tag_list'),
								hint: t('tags.hint.name'),
								:wrapper_html => { :id => 'page-tag-list' },
								input_html: { size: 25 } %>

		<%= 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 => { cols: 45, rows: 3 } %>
		<%= f.input :body, label: t('activerecord.attributes.pages.body'), :input_html => { :rows => 35, :class => 'ckeditor' } %>

		<% if controller.action_name == 'edit' # the current_user is the page creator in create method %>
			<%= f.input :author_name,
									as: :string,
									:wrapper_html => { :id => 'author-name' },
									label: "author name",
									:input_html => {
																	size: 45,
																	:autocomplete => 'off',
																	:data => { 	source: User.administrators.alphabetically.map(&:formal_name).to_json }
																		} %>
		<% end -%>

    <%= f.button :submit, :class => 'btn btn-primary' %>

<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tkh_content-0.10.7 app/views/pages/_form.html.erb
tkh_content-0.10.6 app/views/pages/_form.html.erb
tkh_content-0.10.5.1 app/views/pages/_form.html.erb
tkh_content-0.10.5 app/views/pages/_form.html.erb
tkh_content-0.10.4 app/views/pages/_form.html.erb
tkh_content-0.10.3 app/views/pages/_form.html.erb
tkh_content-0.10.2 app/views/pages/_form.html.erb
tkh_content-0.10.1 app/views/pages/_form.html.erb
tkh_content-0.10 app/views/pages/_form.html.erb
tkh_content-0.9.20 app/views/pages/_form.html.erb
tkh_content-0.9.19 app/views/pages/_form.html.erb
tkh_content-0.9.18 app/views/pages/_form.html.erb