From 78c43a88217357b51785976534b26be1d8f98512 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Mon, 9 Aug 2010 10:37:00 -0700 Subject: [PATCH] [#4178] Added Contract title bar to the deliverable form. --- app/views/deliverables/edit.html.erb | 2 ++ app/views/deliverables/new.html.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/views/deliverables/edit.html.erb b/app/views/deliverables/edit.html.erb index 3ce2da9..b8f2bc4 100644 --- a/app/views/deliverables/edit.html.erb +++ b/app/views/deliverables/edit.html.erb @@ -1,3 +1,5 @@ +<%= render :partial => 'contracts/title', :locals => {:contract => @contract} %> + <%= content_tag(:h2, h(l(:text_edit_deliverable_title, :title => resource.title))) %> <% semantic_form_for [@project, @contract, setup_nested_deliverable_records(resource)], :url => contract_deliverable_path(@project, @contract, resource), :html => {:class => 'deliverable tabular'} do |form| %> diff --git a/app/views/deliverables/new.html.erb b/app/views/deliverables/new.html.erb index 601e052..4b6a32a 100644 --- a/app/views/deliverables/new.html.erb +++ b/app/views/deliverables/new.html.erb @@ -1,3 +1,5 @@ +<%= render :partial => 'contracts/title', :locals => {:contract => @contract} %> + <%= content_tag(:h2, l(:text_new_deliverable)) %> <% semantic_form_for [@project, @contract, setup_nested_deliverable_records(resource)], :url => contract_deliverables_path(@project, @contract), :html => {:class => 'deliverable tabular'} do |form| %>