Skip to content

Commit

Permalink
Add datetime field type
Browse files Browse the repository at this point in the history
  • Loading branch information
benhutton committed Nov 15, 2014
1 parent 4478b98 commit 05a8be6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/rails_admin/main/_globalize_field.haml
Expand Up @@ -45,6 +45,9 @@
= render :partial => "file_upload", :locals => { form: form, field: field } #if false
=# link_to("EDIT", rails_admin.edit_path(object.class.to_s.gsub("::","~").underscore,object.id), :target=>"_blank")

- elsif field.type == :datetime
= render :partial => "rails_admin/main/form_datetime", :locals => { form: form, field: field }

- else
= form.send(field.view_helper, field.method_name, field.html_attributes)

Expand Down

0 comments on commit 05a8be6

Please sign in to comment.