Skip to content
Myr

upload.html.haml

This file

Path

examples/upload/views/upload.html.haml

18 lines · 552 bytes

Last changed by

Merge branch 'better-haml'visionmediabefore adoptionbdf9f88

History of this file

Take it

1- if (typeof images !== 'undefined')2  .images3    - each img in images4      %img{ src: img }56%h2 Singles7%form{ method: 'post', enctype: 'multipart/form-data' }8  %input{ type: 'file', name: 'images[0]' }9  %input{ type: 'file', name: 'images[1]' }10  %input{ type: 'file', name: 'images[2]' }11  %div.panel12    %input{ type: 'submit', value: 'Upload' }13    14%h2 Multiple15%form{ method: 'post', enctype: 'multipart/form-data' }16  %input{ type: 'file', name: 'images[]', multiple: 'multiple' }17  %div.panel18    %input{ type: 'submit', value: 'Upload' }