From ae33a485a761fb44da13ccce97964287b1ffbf38 Mon Sep 17 00:00:00 2001 From: Jim Gay Date: Wed, 4 Aug 2010 13:49:20 -0400 Subject: [PATCH] upload form for stylesheets --- views/admin/stylesheets/index.haml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/views/admin/stylesheets/index.haml b/views/admin/stylesheets/index.haml index 30eb534..b61b914 100644 --- a/views/admin/stylesheets/index.haml +++ b/views/admin/stylesheets/index.haml @@ -30,4 +30,10 @@ #actions %ul %li= link_to image('plus.png') + " New Stylesheet", "/admin/stylesheets/new" - %li= link_to "Upload", "#" \ No newline at end of file + %li + = link_to 'Upload', '#uploader', :class => 'replace' + %form{:method=>"post", :action=>"/admin/stylesheets/", "data-onsubmit_status"=>"Saving changes…", :id => 'uploader', :class => 'button_form'} + %span + %label{:for=>"upload"} Upload + %input{:type => 'file', :name=>"uploaded_stylesheet", :id=>"upload"}/ + %input{:type => 'submit', :value => 'Create Stylesheet'} \ No newline at end of file