diff --git a/app/controllers/deliverables_controller.rb b/app/controllers/deliverables_controller.rb index 820ffa2..ec46a3b 100644 --- a/app/controllers/deliverables_controller.rb +++ b/app/controllers/deliverables_controller.rb @@ -27,6 +27,8 @@ class DeliverablesController < ApplicationController @budget = Budget.new(@project.id) + @display_form = params[:new].present? + respond_to do |format| format.html { render :action => 'index', :layout => !request.xhr? } end diff --git a/app/views/deliverables/index.html.erb b/app/views/deliverables/index.html.erb index aff93a3..fa7f601 100644 --- a/app/views/deliverables/index.html.erb +++ b/app/views/deliverables/index.html.erb @@ -3,7 +3,7 @@ <% if allowed_management? %> -