Sha256: 1f2b5d029c5d539d14ea88fcf0774305385923eaa3eea9191e9a6e4695632310

Contents?: true

Size: 1006 Bytes

Versions: 5

Compression:

Stored size: 1006 Bytes

Contents

= form_for @page, :html => {:class => 'edit page', :remote => true, :data => {:type => :html}} do |f|

  %p
    = f.text_field :title, :placeholder => t(:page_title), :class => 'pagetitle'

  %p
    = f.text_field :slug, :placeholder => t(:page_slug), :class => 'slug'
    %br
    %span.formnote
      = t :page_slug_explanation

  %p
    = f.text_area :summary, :placeholder => t(:page_summary), :class => 'small'
    %br
    %span.formnote
      = t :page_summary_explanation

  %p
    = f.text_area :body, :placeholder => t(:page_body), :class => 'large'

  %p
    = f.text_field :video_id, :placeholder => t(:page_video_id), :class => 'youtube'
    %br
    %span.formnote
      = t :page_youtube_explanation

  .controls
    .save.button
      = f.submit t(:save), :class => "submit"
      / = link_to t(:save), '#', :class => 'submit'
    .cancel.button
      - if @page.new_record?
        = link_to t(:cancel), pages_url
      - else
        = link_to t(:cancel), droom.help_page_url(@page.slug)
  

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
droom-0.4.3 app/views/droom/pages/_form.html.haml
droom-0.4.2 app/views/droom/pages/_form.html.haml
droom-0.4.1 app/views/droom/pages/_form.html.haml
droom-0.2.1 app/views/droom/pages/_form.html.haml
droom-0.0.1 app/views/droom/pages/_form.html.haml