Sha256: e6f873d58ac2e5093153a125c885d9af6acdeef6999c2d1ab3afa9aa7cca10d9

Contents?: true

Size: 820 Bytes

Versions: 60

Compression:

Stored size: 820 Bytes

Contents

:css
  #image_gallery li {
    display: inline;
    list-style: none;
    width: 300px;
    min-height: 300px;
    float: left;
    margin: 0 10px 10px 0;
    text-align: center;
  }
= form_for @gallery do |f|
  %h2 Gallery Name:
  = f.text_field :name
  = f.submit "Save Gallery"

%ul#image_gallery
  - paginated_images_for(@gallery).each do |image|
    %li
      = image_tag image.image.url(:medium)

= will_paginate paginated_images_for(@gallery)

#upload_form
  = form_for [@gallery, Image.new(:gallery=>@gallery)], :html=>{:id=>'upload', :multipart=>true} do |f|
    - params.slice(:CKEditor, :CKEditorFuncNum, :langCode).each do |key, val|
      = hidden_field_tag key, val
    .upload_field= f.file_field :image
    .tag_field= f.text_field :tag_list
    = f.submit "Upload Image", :disable_with=>"Uploading..."

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
wheels-0.1.30 app/views/galleries/_form.html.haml
wheels-0.1.28 app/views/galleries/_form.html.haml
wheels-0.1.27 app/views/galleries/_form.html.haml
wheels-0.1.25 app/views/galleries/_form.html.haml
wheels-0.1.24 app/views/galleries/_form.html.haml
wheels-0.1.23 app/views/galleries/_form.html.haml
wheels-0.1.22 app/views/galleries/_form.html.haml
wheels-0.1.21 app/views/galleries/_form.html.haml
wheels-0.1.20 app/views/galleries/_form.html.haml
wheels-0.1.19 app/views/galleries/_form.html.haml
wheels-0.1.18 app/views/galleries/_form.html.haml
wheels-0.1.17 app/views/galleries/_form.html.haml
wheels-0.1.16 app/views/galleries/_form.html.haml
wheels-0.1.15 app/views/galleries/_form.html.haml
wheels-0.1.14 app/views/galleries/_form.html.haml
wheels-0.1.13 app/views/galleries/_form.html.haml
wheels-0.1.12 app/views/galleries/_form.html.haml
wheels-0.1.10 app/views/galleries/_form.html.haml
wheels-0.1.9 app/views/galleries/_form.html.haml
wheels-0.1.8 app/views/galleries/_form.html.haml