[#4178] Added styles for the Deliverable form.
This commit is contained in:
1 parent
78c43a8821
commit
90d2aeccea
3 files changed
+54
-18
No files matched your search
@@ -1,4 +1,5 @@
|
|||||||
<% form.inputs do %>
|
<div class="box tabular">
|
||||||
|
<% form.inputs :name => l(:text_deliverable_details_legend) do %>
|
||||||
<%= form.input :title, :required => true %>
|
<%= form.input :title, :required => true %>
|
||||||
<% if resource.new_record? %>
|
<% if resource.new_record? %>
|
||||||
<%= form.input(:type, :required => true, :as => :select, :collection => [["Fixed", "FixedDeliverable"],["Hourly", "HourlyDeliverable"]], :include_blank => false, :input_html => {:class => 'type'}) %>
|
<%= form.input(:type, :required => true, :as => :select, :collection => [["Fixed", "FixedDeliverable"],["Hourly", "HourlyDeliverable"]], :include_blank => false, :input_html => {:class => 'type'}) %>
|
||||||
@@ -20,30 +21,66 @@
|
|||||||
<%= check_box resource.class.to_s.underscore, 'warranty_sign_off' %>
|
<%= check_box resource.class.to_s.underscore, 'warranty_sign_off' %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% form.inputs :name => l(:text_deliverable_finances), :id => 'deliverable-finances' do %>
|
<% form.inputs :name => l(:text_deliverable_finances), :id => 'deliverable-finances' do %>
|
||||||
<% form.semantic_fields_for :labor_budgets do |labor_budget| %>
|
<% form.fields_for :labor_budgets do |labor_budget| %>
|
||||||
<% labor_budget.inputs :name => l(:field_labor), :id => 'deliverable-labor' do %>
|
<li class="numeric optional">
|
||||||
<%= labor_budget.input :hours, :label => l(:text_short_hours), :input_html => {:size => 10} %>
|
|
||||||
<%= labor_budget.input :budget, :label => l(:text_dollar_sign), :input_html => {:size => 10} %>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<% form.semantic_fields_for :overhead_budgets do |overhead_budget| %>
|
<%= content_tag(:label, l(:field_labor)) %>
|
||||||
<% overhead_budget.inputs :name => l(:field_overhead), :id => 'deliverable-overhead' do %>
|
<table class="deliverable_finance_table">
|
||||||
<%= overhead_budget.input :hours, :label => l(:text_short_hours), :input_html => {:size => 10} %>
|
<tr>
|
||||||
<%= overhead_budget.input :budget, :label => l(:text_dollar_sign), :input_html => {:size => 10} %>
|
<td></td>
|
||||||
<% end %>
|
<td>
|
||||||
<% end %>
|
<p class="inline-hints"><%= l(:text_short_hours) %></p>
|
||||||
|
<%= labor_budget.text_field(:hours, :size => 10) %>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="inline-hints"><%= l(:text_dollar_sign) %></p>
|
||||||
|
<%= labor_budget.text_field(:budget, :size => 10) %>
|
||||||
|
</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% form.fields_for :overhead_budgets do |overhead_budget| %>
|
||||||
|
<li class="numeric optional">
|
||||||
|
|
||||||
|
<%= content_tag(:label, l(:field_overhead)) %>
|
||||||
|
<table class="deliverable_finance_table">
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td>
|
||||||
|
<p class="inline-hints"><%= l(:text_short_hours) %></p>
|
||||||
|
<%= overhead_budget.text_field(:hours, :size => 10) %>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="inline-hints"><%= l(:text_dollar_sign) %></p>
|
||||||
|
<%= overhead_budget.text_field(:budget, :size => 10) %>
|
||||||
|
</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= form.input :total, :input_html => {:size => 10}, :wrapper_html => {:class => 'deliverable_total_input'}, :hint => l(:text_dollar_sign) %>
|
<%= form.input :total, :input_html => {:size => 10}, :wrapper_html => {:class => 'deliverable_total_input'}, :hint => l(:text_dollar_sign) %>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<% form.buttons do %>
|
<% form.buttons do %>
|
||||||
<%= form.commit_button :label => l(:button_save) %>
|
<ol>
|
||||||
<%= link_to(l(:button_cancel), cancel_path) %>
|
<li class="commit">
|
||||||
|
<%= submit_tag(l(:button_save)) %>
|
||||||
|
<%= link_to(l(:button_cancel), cancel_path) %>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= wikitoolbar_for resource.to_underscore + '_notes' %>
|
<%= wikitoolbar_for resource.to_underscore + '_notes' %>
|
||||||
@@ -29,8 +29,6 @@ html>body .tabular li {overflow:hidden;}
|
|||||||
a.contract-delete {color: red; }
|
a.contract-delete {color: red; }
|
||||||
|
|
||||||
/* Positioning */
|
/* Positioning */
|
||||||
#deliverable-finances ol li { display: inline; }
|
|
||||||
#deliverable-finances ol li label { float: none; margin-left: 0; }
|
|
||||||
|
|
||||||
#deliverables td.labor, #deliverables td.overhead, #deliverables td.fixed { text-align: center; }
|
#deliverables td.labor, #deliverables td.overhead, #deliverables td.fixed { text-align: center; }
|
||||||
#deliverables td.labor div, #deliverables td.overhead div, #deliverables td.fixed div { text-align: right; display: inline; padding: 0 5px; width: 50%; }
|
#deliverables td.labor div, #deliverables td.overhead div, #deliverables td.fixed div { text-align: right; display: inline; padding: 0 5px; width: 50%; }
|
||||||
|
|||||||
@@ -58,5 +58,6 @@ en:
|
|||||||
text_general_legend: "General"
|
text_general_legend: "General"
|
||||||
text_budget_legend: "Budget"
|
text_budget_legend: "Budget"
|
||||||
text_account_legend: "Account Management"
|
text_account_legend: "Account Management"
|
||||||
|
text_deliverable_details_legend: "Deliverable Details"
|
||||||
text_save_contract: "Save Contract"
|
text_save_contract: "Save Contract"
|
||||||
|
|
||||||
Reference in new issue
Block a user