From eb2c22bd692b9b88c2ecd85a91c536cb6e36470e Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 20 May 2008 16:53:03 -0700 Subject: [PATCH] Setting up basic UI. #1135 --- app/views/deliverables/_sidebar.html.erb | 3 ++ app/views/deliverables/index.html.erb | 48 +++++++++++++++++++++++- assets/stylesheets/budget.css | 2 + 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 app/views/deliverables/_sidebar.html.erb create mode 100644 assets/stylesheets/budget.css diff --git a/app/views/deliverables/_sidebar.html.erb b/app/views/deliverables/_sidebar.html.erb new file mode 100644 index 0000000..c1773c9 --- /dev/null +++ b/app/views/deliverables/_sidebar.html.erb @@ -0,0 +1,3 @@ +

Budget

+<%= link_to l(:label_issue_view_all), { :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 } %>
+<%= link_to_function "New Deliverable", "$('new-deliverable').toggle();" %>
diff --git a/app/views/deliverables/index.html.erb b/app/views/deliverables/index.html.erb index 9cd09c9..35935cb 100644 --- a/app/views/deliverables/index.html.erb +++ b/app/views/deliverables/index.html.erb @@ -1 +1,47 @@ -

Deliverables

+
+

Budget

+ +

+ Project Budget: TODO +

+

+ Budget Spent: TODO +

+

+ Budget Remaining: TODO +

+

+ Progress: TODO +

+

+ Budget Score: TODO +

+

+ Overruns: TODO +

+

+ Next Due Date: TODO +

+

+ Completion: TODO +

+

+ Profit: TODO +

+
+ + + +
+ +
+ +<% content_for :sidebar do %> + <%= render :partial => 'deliverables/sidebar' %> +<% end %> + +<% content_for :header_tags do %> + <%= stylesheet_link_tag "budget.css", :plugin => "budget_plugin", :media => "screen" %> +<% end %> diff --git a/assets/stylesheets/budget.css b/assets/stylesheets/budget.css new file mode 100644 index 0000000..ee90ea5 --- /dev/null +++ b/assets/stylesheets/budget.css @@ -0,0 +1,2 @@ +#budget-summary { background-color:#507AAA;padding:10px; } +#budget-list { }