[#4178] Fixed the Contract form's submit button layout.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<div class="box tabular">
|
||||
<% form.inputs :name => l(:text_general_legend) do %>
|
||||
<%= form.input :name, :required => true %>
|
||||
<%= form.input :account_executive, :required => true, :collection => @project.users.sort %>
|
||||
@@ -22,10 +23,15 @@
|
||||
<%= form.input :client_ap_contact_information, :input_html => {:class => 'wiki-edit', :rows => '5'} %>
|
||||
<%= form.input :client_point_of_contact, :input_html => {:class => 'wiki-edit', :rows => '5'} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% form.buttons do %>
|
||||
<%= form.commit_button %>
|
||||
<%# TODO: needs to be on one line. %>
|
||||
<%= link_to(l(:button_cancel), cancel_path) %>
|
||||
<ol>
|
||||
<li class="commit">
|
||||
<%= submit_tag(l(:text_save_contract)) %>
|
||||
<%= link_to(l(:button_cancel), cancel_path) %>
|
||||
</li>
|
||||
</ol>
|
||||
<% end %>
|
||||
|
||||
<%= wikitoolbar_for 'contract_discount_note' %>
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
<%= content_tag(:h2, h(l(:text_edit_contract_name, :name => resource.name))) %>
|
||||
|
||||
<div class="box tabular">
|
||||
<% semantic_form_for resource, :url => contract_path(@project, resource), :html => {:class => 'tabular'} do |form| %>
|
||||
<%= render :partial => 'form', :object => form, :locals => {:cancel_path => contract_path(@project, resource)} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -43,6 +43,10 @@ span.contract-details-label { font-weight: bold; }
|
||||
padding-left: 120px; /*width of left column containing the label elements*/
|
||||
}
|
||||
|
||||
.tabular li.commit {
|
||||
padding-left: 0px; /* Don't pad submit buttons */
|
||||
}
|
||||
|
||||
#content .error_msg{
|
||||
background: #ffd5d5;
|
||||
color: #a40000;
|
||||
|
||||
@@ -58,3 +58,5 @@ en:
|
||||
text_general_legend: "General"
|
||||
text_budget_legend: "Budget"
|
||||
text_account_legend: "Account Management"
|
||||
text_save_contract: "Save Contract"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user