Fix some code wrapping; remove trailing whitespace
This commit is contained in:
parent
825387cc6f
commit
f4c34d8e4e
14
stoptime.rb
14
stoptime.rb
|
@ -2319,14 +2319,16 @@ module StopTime::Views
|
||||||
end if @task.billed?
|
end if @task.billed?
|
||||||
div.row do
|
div.row do
|
||||||
div.col_md_6.col_xs_12 do
|
div.col_md_6.col_xs_12 do
|
||||||
form.form_horizontal.form_condensed action: R(*@target), method: :post do
|
form.form_horizontal.form_condensed action: R(*@target),
|
||||||
|
method: :post do
|
||||||
div.form_group do
|
div.form_group do
|
||||||
label.control_label.col_sm_3.col_xs_4 "Customer", for: "customer"
|
label.control_label.col_sm_3.col_xs_4 "Customer", for: "customer"
|
||||||
div.col_sm_4.col_xs_8 do
|
div.col_sm_4.col_xs_8 do
|
||||||
_form_select("customer", @customer_list)
|
_form_select("customer", @customer_list)
|
||||||
end
|
end
|
||||||
div.col_sm_offset_2.col_sm_3.hidden_xs do
|
div.col_sm_offset_2.col_sm_3.hidden_xs do
|
||||||
a.btn.btn_default role: "button", href: R(CustomersN, @customer.id) do
|
a.btn.btn_default role: "button",
|
||||||
|
href: R(CustomersN, @customer.id) do
|
||||||
_icon("user")
|
_icon("user")
|
||||||
span "Show customer"
|
span "Show customer"
|
||||||
end
|
end
|
||||||
|
@ -2341,7 +2343,8 @@ module StopTime::Views
|
||||||
_form_input_radio("type", "hourly_rate", true)
|
_form_input_radio("type", "hourly_rate", true)
|
||||||
text!("Hourly rate: ")
|
text!("Hourly rate: ")
|
||||||
div.input_group do
|
div.input_group do
|
||||||
_form_input("hourly_rate", :number, "Hourly rate", min: "0.00", step: "0.01")
|
_form_input("hourly_rate", :number, "Hourly rate",
|
||||||
|
min: "0.00", step: "0.01")
|
||||||
span.input_group_addon "€ / h"
|
span.input_group_addon "€ / h"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -2351,7 +2354,8 @@ module StopTime::Views
|
||||||
_form_input_radio("type", "fixed_cost")
|
_form_input_radio("type", "fixed_cost")
|
||||||
text!("Fixed cost: ")
|
text!("Fixed cost: ")
|
||||||
div.input_group do
|
div.input_group do
|
||||||
_form_input("fixed_cost", :number, "Fixed cost", min: "0.00", step: "0.01")
|
_form_input("fixed_cost", :number, "Fixed cost",
|
||||||
|
min: "0.00", step: "0.01")
|
||||||
span.input_group_addon "€"
|
span.input_group_addon "€"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -2755,7 +2759,7 @@ module StopTime::Views
|
||||||
button.btn.btn_primary "Create invoice", type: :submit,
|
button.btn.btn_primary "Create invoice", type: :submit,
|
||||||
name: "create", value: "Create invoice",
|
name: "create", value: "Create invoice",
|
||||||
disabled: @none_found
|
disabled: @none_found
|
||||||
button.btn.btn_default "Cancel", type: :submit, name: "cancel",
|
button.btn.btn_default "Cancel", type: :submit, name: "cancel",
|
||||||
value: "Cancel"
|
value: "Cancel"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue