Sha256: f6cc489dc34381efc6244c880878209642bbf01c4c3e4e1ebad6cff9e75554ec

Contents?: true

Size: 524 Bytes

Versions: 21

Compression:

Stored size: 524 Bytes

Contents

module Blog::Views
  def _form(post, opts)
    p { "You are logged in as #{@user.username} | #{a 'Logout', :href => R(Logout)}" }
    form({:method => 'post'}.merge(opts)) do
      label 'Title', :for => 'post_title'; br
      input :name => 'post_title', :type => 'text',
            :value => post.title; br

      label 'Body', :for => 'post_body'; br
      textarea post.body, :name => 'post_body'; br

      input :type => 'hidden', :name => 'post_id', :value => post.id
      input :type => 'submit'
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
bivouac-0.0.7 examples/blog_goh/app/views/_form.rb
bivouac-0.0.3 examples/blog_goh/app/views/_form.rb
bivouac-0.0.4 examples/blog_goh/app/views/_form.rb
bivouac-0.0.5 examples/blog_goh/app/views/_form.rb
bivouac-0.0.6 examples/blog_goh/app/views/_form.rb
bivouac-0.0.8 examples/blog_goh/app/views/_form.rb
bivouac-0.0.9 examples/blog_goh/app/views/_form.rb
bivouac-0.1.0 examples/blog_goh/app/views/_form.rb
bivouac-0.1.1 examples/blog_goh/app/views/_form.rb
bivouac-0.1.3 examples/blog_goh/app/views/_form.rb
bivouac-0.1.5 examples/blog_goh/app/views/_form.rb
bivouac-0.1.2 examples/blog_goh/app/views/_form.rb
bivouac-0.1.4 examples/blog_goh/app/views/_form.rb
bivouac-0.1.6 examples/blog_goh/app/views/_form.rb
bivouac-0.2.0 examples/blog_goh/app/views/_form.rb
bivouac-0.2.2 examples/blog_goh/app/views/_form.rb
bivouac-0.2.1 examples/blog_goh/app/views/_form.rb
bivouac-0.2.3 examples/blog_goh/app/views/_form.rb
bivouac-0.2.4 examples/blog_goh/app/views/_form.rb
bivouac-0.2.5 examples/blog_goh/app/views/_form.rb