Sha256: 79b434ecff246deb7ed1384a7aecf64564cdf0f59cfc1baac72ec3b869e31946

Contents?: true

Size: 840 Bytes

Versions: 9

Compression:

Stored size: 840 Bytes

Contents

- @page_title = @page.breadcrumb.reverse.map(&:title).join(" - ")

%section.content.edit-article
  = documentation_breadcrumb_for @page
  = form_for @page, :url => @page.new_record? ? new_page_path(@page.parent ? @page.parent.full_permalink : nil) : edit_page_path(@page.full_permalink), :html => {:class => 'pageForm'} do |f|
    = error_messages_for @page
    %p.title= f.text_field :title, :placeholder => t('.title_placeholder')
    %p.content= f.text_area :content, :placeholder => t('.content_placeholder')
    %dl
      %dt= f.label :permalink
      %dd= f.text_field :permalink, :placeholder => t('.permalink_placeholder')

    %p.submit
      - if authorizer.can_upload?(@page)
        = link_to t('.add_screenshot'), upload_screenshot_path, :class => 'button preview js-screenshot'
      = f.submit t('.save'), :class => 'button'

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
documentation-1.0.9 app/views/documentation/pages/form.html.haml
documentation-1.0.8 app/views/documentation/pages/form.html.haml
documentation-1.0.7 app/views/documentation/pages/form.html.haml
documentation-1.0.6 app/views/documentation/pages/form.html.haml
local_documentation-1.0.0 app/views/documentation/pages/form.html.haml
documentation-1.0.5 app/views/documentation/pages/form.html.haml
documentation-1.0.4 app/views/documentation/pages/form.html.haml
documentation-1.0.3 app/views/documentation/pages/form.html.haml
documentation-1.0.2 app/views/documentation/pages/form.html.haml