Skip to content

Commit

Permalink
fix form and css
Browse files Browse the repository at this point in the history
  • Loading branch information
barthezslavik committed Dec 22, 2012
1 parent 181dea7 commit 3b30866
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 79 deletions.
11 changes: 11 additions & 0 deletions app/assets/stylesheets/main.css.sass
@@ -0,0 +1,11 @@
p, a
font-family: Verdana
font-size: 13px


.simple_form label
font-size: 12px
font-weight: bold
float: left
width: 150px
margin: 5px 10px 4px 0
69 changes: 0 additions & 69 deletions app/assets/stylesheets/scaffolds.css.scss

This file was deleted.

10 changes: 6 additions & 4 deletions app/views/samples/_form.html.haml
@@ -1,5 +1,7 @@
= simple_form_for @sample do |f|
= f.input :name
= f.input :description
= f.input :screenshot, :as => :file
= f.submit 'Save'
.inputs.clearfix
= f.input :name
= f.input :description
= f.input :screenshot, :as => :file
.actions.clearfix
= f.submit 'Save'
3 changes: 1 addition & 2 deletions app/views/samples/index.html.haml
Expand Up @@ -3,8 +3,7 @@
%tr
%td
- screenshot = image_tag sample.screenshot.url(:medium) if sample.screenshot
- if sample.screenshot_file_name?
= screenshot
= screenshot
%td= link_to sample.name, sample, data:{ push: true }
/= link_to 'Edit', edit_sample_path(sample)
/= link_to 'Destroy', sample, :confirm => 'Are you sure?', :method => :delete
Expand Down
5 changes: 1 addition & 4 deletions app/views/samples/new.html.haml
@@ -1,5 +1,2 @@
%h1 New sample

= render 'form'

= link_to 'Back', samples_path
/= link_to 'Back', samples_path
Binary file added public/screenshots/medium/missing.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3b30866

Please sign in to comment.