<% @block.downloads.each do |download| %>
<%= render :partial => 'download_list', :locals => {:download => download} %>
diff --git a/src/noosfero-spb/software_communities/views/box_organizer/_download_list.html.erb b/src/noosfero-spb/software_communities/views/box_organizer/_download_list.html.erb
index 1cbd524..5565495 100644
--- a/src/noosfero-spb/software_communities/views/box_organizer/_download_list.html.erb
+++ b/src/noosfero-spb/software_communities/views/box_organizer/_download_list.html.erb
@@ -1,10 +1 @@
-
-
- - <%= text_field_tag('block[downloads][][name]', download[:name], :class => "block_download_name") %>
- - <%= text_field_tag('block[downloads][][link]', download[:link], :class => "block_download_link") %>
- - <%= text_field_tag('block[downloads][][software_description]', download[:software_description], :class => "block_download_software_description") %>
- - <%= text_field_tag('block[downloads][][minimum_requirements]', download[:minimum_requirements], :class => "block_download_minimum_requirements") %>
- - <%= text_field_tag('block[downloads][][size]', download[:size], :class => "block_download_size") %>
- - <%= button_without_text(:delete, _('Delete'), "#" , { :onclick => 'softwareDownload.deleteDownload(this); return false', :class=>"delete-link-list-row" }) %>
-
-
+<%= render :partial => 'box_organizer/download_list_template' %>
diff --git a/src/noosfero-spb/software_communities/views/box_organizer/_download_list_template.html.erb b/src/noosfero-spb/software_communities/views/box_organizer/_download_list_template.html.erb
index eb9e4cf..29b6e0a 100644
--- a/src/noosfero-spb/software_communities/views/box_organizer/_download_list_template.html.erb
+++ b/src/noosfero-spb/software_communities/views/box_organizer/_download_list_template.html.erb
@@ -1,10 +1,25 @@
-
-
- - <%= text_field_tag('block[downloads][][name]', '', :class => "block_download_name") %>
- - <%= text_field_tag('block[downloads][][link]', '', :class => "block_download_link") %>
- - <%= text_field_tag('block[downloads][][software_description]', '', :class => "block_download_software_description") %>
- - <%= text_field_tag('block[downloads][][minimum_requirements]', '', :class => "block_download_minimum_requirements") %>
- - <%= text_field_tag('block[downloads][][size]', '', :class => "block_download_size") %>
- - <%= button_without_text(:delete, _('Delete'), "#" , { :onclick => 'softwareDownload.deleteDownload(this); return false', :class=>"delete-link-list-row" }) %>
+-
+
+ -
+ <%= labelled_form_field(_('Name'), text_field_tag('block[downloads][][name]')) %>
+
+
+ -
+ <%= labelled_form_field(_('Link'), text_field_tag('block[downloads][][link]')) %>
+
+
+ -
+ <%= labelled_form_field(_('Platforms'), text_field_tag('block[downloads][][software_description]')) %>
+
+
+ -
+ <%= labelled_form_field(_('Minimum Requirements'), text_field_tag('block[downloads][][minimum_requirements]')) %>
+
+
+ -
+ <%= labelled_form_field(_('Size'), text_field_tag('block[downloads][][size]')) %>
+
+
+ - <%= button_without_text(:delete, _('Delete'), "#" , { :onclick => 'softwareDownload.deleteDownload(this); return false', :class=>"delete-link-list-row" }) %>
--
libgit2 0.21.2