Sha256: 762d56566e1fd92eb49fca723d5f650fb41f98004bae53c251ddee25329e0d21

Contents?: true

Size: 1.51 KB

Versions: 8

Compression:

Stored size: 1.51 KB

Contents

- in_section :events
- content_for :header do
  =render :partial=>'header'

.row
  .span3
    - in_sub_section :details
    =render :partial=>'menu'
  .span9
    .row-fluid
      .span8
        = render "shared/error_messages", :target => @event

        .instructions.row-fluid
          .span2
            =icon_tag('266-upload@2x', {:alt => "instructions", :align => "left"})
          .span10
            %p
              ="Spruce up this event with an image! This image will be displayed on both #{link_to "your Storefront", store_event_url(@event)} (where patrons will purchase tickets) and within your Artful.ly management pages.".html_safe
            %ul{:style => "list-style-type: circle;"}
              %li Image size is limited to 1 MB
              %li We recommend your image be at least 300 pixels wide
              %li Only .jpg, .jpeg, .gif, and .png file formats are supported
              %li Your image will be displayed with equal height and width
              %li You can come back to this page to change the image at any time
        = form_for( @event, :html => { :multipart => true } ) do |form|
          .control-group
            =form.label :image, "Choose your image:", :class => 'control-label'
            .controls
              =form.file_field :image

          .form-actions
            = form.submit "Upload", :class => 'btn btn-primary'
            = form.submit "Upload & Next".html_safe, :class => 'btn btn-success'

    .image-display
      =image_tag(@event.image.url) if @event.image?        

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.15 app/views/events/image.html.haml
artfully_ose-1.2.0.pre.12 app/views/events/image.html.haml
artfully_ose-1.2.0.pre.11 app/views/events/image.html.haml
artfully_ose-1.2.0.pre.10 app/views/events/image.html.haml
artfully_ose-1.2.0.pre.9 app/views/events/image.html.haml
artfully_ose-1.2.0.pre.8 app/views/events/image.html.haml
artfully_ose-1.2.0.pre.7 app/views/events/image.html.haml
artfully_ose-1.2.0.pre.6 app/views/events/image.html.haml