<% if any_resources or user_can_modify_resources %>
<%= render 'existing_resource' if any_resources %>
<% if user_can_modify_resources %>
>
<%= render 'form', :insert => true %>
<% end %>
<% else %>
<% flash.now[:error] = t('.no_files') %>
<%= render '/refinery/admin/form_actions', :f => nil,
:cancel_url => '',
:hide_cancel => false,
:hide_delete => true,
:hide_submit => true,
:cancel_button_text => t('close', :scope => 'refinery.admin.form_actions'),
:cancel_title => nil %>
<% end %>