Sha256: 8773a4c86f7a9dbeb4f5e6710e59301da3920153340355be9b1844306bfb47aa
Contents?: true
Size: 1.63 KB
Versions: 6
Compression:
Stored size: 1.63 KB
Contents
= error_messages_for @page - url = @page.new_record? ? comable.admin_pages_path : comable.admin_page_path(@page) = form_for @page, url: url do |f| .hidden = f.submit fieldset .col-md-3 legend = Comable.t('admin.nav.pages.general') .col-md-9 .form-group = f.label :title = f.text_field :title .form-group = f.label :content = f.text_area :content, rows: (f.object.content ? f.object.content.lines.count : nil) hr fieldset .col-md-3 legend = Comable.t('admin.nav.pages.seo') .col-md-9 .form-group = f.label :page_title = f.text_field :page_title .form-group = f.label :meta_description = f.text_field :meta_description .form-group = f.label :meta_keywords = f.text_field :meta_keywords .form-group = f.label :slug .slug .slug-url span = comable.page_url(id: '') .slug-body = f.text_field :slug hr fieldset .col-md-3 legend = Comable.t('admin.nav.pages.visibility') .col-md-9 .form-group .radio-inline label = f.radio_button :published_at, :published, checked: @page.published_at.present? = Comable.t('admin.nav.pages.published') .radio-inline label = f.radio_button :published_at, :unpublished, checked: @page.published_at.blank? = Comable.t('admin.nav.pages.unpublished') = f.text_field :published_at, value: @page.published_at.try(:strftime, '%Y-%m-%d %H:%M'), class: 'datetimepicker'
Version data entries
6 entries across 6 versions & 2 rubygems