Browse files

Removing unused content_form stuff until i can make it more factorable

  • Loading branch information...
1 parent 9974ab2 commit eb8e629f2666d8441d5db93f35c27bc6d8ae2591 @quirkey committed Oct 27, 2009
View
36 lib/qadmin/assets/form_builder.rb
@@ -1,36 +0,0 @@
-module Qadmin
- module Assets
- module FormBuilder
-
- def asset_selector(method, options = {})
-
- id = "#{object_name}_#{method}"
- form_name = "#{object_name}[#{method}]"
-
- options.reverse_merge!({
- :id => id,
- :form_name => form_name,
- :name => object_name,
- :method => method,
- :object => object,
- :current => object.send(method),
- :label => false,
- :resize_type => object_name.tableize,
- :multiple => true
- })
- @template.render(:partial => 'assets/asset_selector', :locals => options)
- end
-
- def asset_browser(id, options = {})
- options.reverse_merge!({
- :id => id,
- :label => false,
- :resize_type => ''
- })
- @template.render(:partial => 'shared/file_browser', :locals => options)
- end
-
- end
-
- end
-end
View
6 lib/qadmin/form_builder.rb
@@ -1,11 +1,5 @@
module Qadmin
class FormBuilder < ::ActionView::Helpers::FormBuilder
- include Qadmin::Assets::FormBuilder
-
- def content_form(form_name, options = {})
- locals = options.reverse_merge({:content_type => object_name, :content => object, :f => self, :options => options})
- @template.render(:partial => "content_forms/#{form_name}_form", :locals => locals)
- end
def text_field_with_hint(method, options = {})
if object.send(method).blank?
View
0 lib/qadmin/views/content_forms/_attachments_form.erb
No changes.
View
4 lib/qadmin/views/content_forms/_photos_form.erb
@@ -1,4 +0,0 @@
-<fieldset>
- <legend>Photos</legend>
- <%= f.asset_selector(:photos, options) %>
-</fieldset>
View
0 lib/qadmin/views/content_forms/_videos_form.erb
No changes.

0 comments on commit eb8e629

Please sign in to comment.