Skip to content

Commit

Permalink
fix manno#71: allows editing of attachment title and public state
Browse files Browse the repository at this point in the history
  • Loading branch information
manno committed Mar 22, 2014
1 parent 28f1f3e commit 2eace20
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/views/cfp/events/_form.html.haml
Expand Up @@ -5,7 +5,7 @@
= f.input :event_type, :collection => translated_options(Event::TYPES)
= f.input :track, :collection => @conference.tracks
= f.input :time_slots, :as => :select, :collection => timeslots, :hint => t("cfp.event_time_slots_hint")
= f.input :language, :as => :language, :only => @conference.language_codes, :include_blank => ""
= f.input :language, :as => :bootstrap_language, :only => @conference.language_codes, :include_blank => ""
= f.input :logo
= f.inputs :name => t("cfp.detailed_description") do
= f.input :abstract, :input_html => {:rows => 4}, :hint => t("cfp.event_abstract_hint")
Expand Down
14 changes: 0 additions & 14 deletions app/views/shared/_event_attachment_fields.html.erb

This file was deleted.

12 changes: 12 additions & 0 deletions app/views/shared/_event_attachment_fields.html.haml
@@ -0,0 +1,12 @@
%div.nested-fields
= f.inputs do
- if f.object.new_record?
= f.input :title
= f.input :public, :as => :boolean, :hint => "Is this attachment visible to the public?"
= f.input :attachment
- else
= f.input :title
= f.input :public, :as => :boolean, :hint => "Is this attachment visible to the public?"
%div.input
= link_to f.object.attachment_file_name, f.object.attachment.url, style: 'float:left'
= remove_association_link :event_attachment, f

0 comments on commit 2eace20

Please sign in to comment.