Skip to content
Browse files

add form

  • Loading branch information...
1 parent 4c4fe09 commit e0653008c6acd5ab0db7d097ae4bd746b17afe1b @barthezslavik committed Dec 23, 2012
View
7 app/assets/stylesheets/main.css.sass
@@ -11,16 +11,17 @@ p, a
margin: 5px 10px 4px 0
.left
- width: 500px
+ width: 800px
float: left
.right
- width: 300px
+ width: 100px
float: left
+ text-align: right
.both
clear: both
pre
background: #D7E7EF
- width: 500px
+ width: 900px
View
5 app/views/samples/_form.html.haml
@@ -1,14 +1,9 @@
= simple_form_for @sample do |f|
.inputs.clearfix
= f.input :name
- %br
= f.input :description
- %br
= f.input :screenshot, :as => :file
- %br
= f.input :demo
- %br
= f.association :category, :collection => Category.all(:order => 'name'), :prompt => "Choose a Category"
- %br
.actions.clearfix
= f.submit 'Save'
View
BIN public/system/samples/screenshots/000/000/005/large/form
Binary file not shown.
View
BIN public/system/samples/screenshots/000/000/005/medium/form
Binary file not shown.
View
BIN public/system/samples/screenshots/000/000/005/original/form
Binary file not shown.
View
BIN public/system/samples/screenshots/000/000/005/thumb/form
Binary file not shown.

0 comments on commit e065300

Please sign in to comment.
Something went wrong with that request. Please try again.