Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcm committed Oct 23, 2012
1 parent e7fd9ef commit 5ad8213
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions app/views/admin/resource_documents/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,34 @@
<%= f.text_field :name, :class => 'larger widest' -%>
</div>

<div class='field'>
<%= f.label :pdf_file_url -%>
<%= f.text_field :pdf_file_url, :class => 'larger widest' -%>
</div>

<div class='field'>
<%= f.label :word_file_url -%>
<%= f.text_field :word_file_url, :class => 'larger widest' -%>
</div>

<div class='field'>
<%= f.label :pdf_file -%>
<%= render :partial => "/shared/admin/resource_picker", :locals => {
:f => f,
:field => :pdf_file_id,
:resource => @resource_document.pdf_file,
} %>

:f => f,
:field => :pdf_file_id,
:resource => @resource_document.pdf_file,
} %>
</div>

<div class='field'>
<%= f.label :word_file -%>
<%= render :partial => "/shared/admin/resource_picker", :locals => {
:f => f,
:field => :word_file_id,
:resource => @resource_document.word_file,
} %>
:f => f,
:field => :word_file_id,
:resource => @resource_document.word_file,
} %>
</div>

<div class='field'>
<%= f.label :resource_category %>
<%= f.collection_select(:resource_category_id, ResourceCategory.all, :id, :title) %>
Expand Down

0 comments on commit 5ad8213

Please sign in to comment.