Skip to content

Commit

Permalink
Fix items form
Browse files Browse the repository at this point in the history
  • Loading branch information
Brice Sanchez authored and bricesanchez committed Jul 23, 2015
1 parent d7c0db8 commit 872c629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/refinery/portfolio/admin/items/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
<%= f.label :gallery_id, t('gallery', :scope => 'refinery.portfolio.admin.items.item') -%>
<%= refinery_help_tag t('gallery_help', :scope => 'refinery.portfolio.admin.items.item') -%>
</span>
<%= f.select :gallery_id, nested_set_options(::Refinery::Portfolio::Gallery, @gallery) { |i| "#{'-' * i.level} #{i.title}" }, :include_blank => true %>
<%= f.select :gallery_id, nested_set_options(::Refinery::Portfolio::Gallery) { |i| "#{'-' * i.level} #{i.title}" }, :include_blank => true %>
</div>

<%= render '/refinery/admin/form_actions', :f => f,
:continue_editing => false,
:delete_title =>t('delete', :scope => 'refinery.portfolio.admin.items.item'),
:delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @item.title),
:cancel_url => refinery.portfolio_admin_gallery_items_path(@item.gallery) %>
:cancel_url => @item.gallery ? refinery.portfolio_admin_gallery_items_path(@item.gallery) : refinery.portfolio_admin_items_path %>
<% end -%>
<% content_for :javascripts do %>
Expand All @@ -58,4 +58,4 @@
page_options.init(false, '', '');
});
</script>
<% end %>
<% end %>

0 comments on commit 872c629

Please sign in to comment.