mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
Added style to show and form
This commit is contained in:
1 parent
51010758c6
commit
bc7c4e26c6
2 files changed
+140
-109
No files matched your search
@@ -1,79 +1,42 @@
|
||||
<%= labelled_form_for @appointment do |f| %>
|
||||
<%= error_messages_for @appointment %>
|
||||
|
||||
<p>
|
||||
<div class="box tabular">
|
||||
<p><%= f.text_field :subject, required: true, style: "width: 95%;" %></p>
|
||||
|
||||
<%= f.text_field :subject %>
|
||||
<p>
|
||||
<%= f.text_field :customer, label: :label_customer, class: "customer-name", autocomplete: "off", data: { autocomplete_url: "/customers/autocomplete" } %>
|
||||
<%= f.hidden_field :customer_id, id: "customer_id", onchange: "this.form.requestSubmit()" %>
|
||||
</p>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :vehicle_id, l(:label_vehicle) %>
|
||||
<%= f.collection_select :vehicle_id, @appointment.customer&.vehicles || [], :id, :name, { include_blank: true }, { label: false } %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<p>
|
||||
<%= f.label :estimate_id, l(:label_estimate) %>
|
||||
<%= f.collection_select :estimate_id, @appointment.customer&.estimates || [], :id, :name, { include_blank: true }, { label: false } %>
|
||||
</p>
|
||||
|
||||
<%= f.text_field :customer, class: "customer-name", autocomplete: "off", data: { autocomplete_url: "/customers/autocomplete"} %>
|
||||
<%= f.hidden_field :customer_id, id: "customer_id", onchange: "this.form.requestSubmit()" %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :user_id, l(:field_user) %>
|
||||
<%= f.collection_select :user_id, User.active.sorted, :id, :name, { include_blank: true }, { label: false } %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<p><%= f.date_field :start_date, size: 10 %></p>
|
||||
<p><%= f.date_field :end_date, size: 10 %></p>
|
||||
|
||||
<p>
|
||||
<p><%= f.number_field :estimated_hours, step: 0.1, size: 6 %></p>
|
||||
<p><%= f.number_field :duration, step: 1, size: 6, label: :label_duration %></p>
|
||||
|
||||
<%= f.collection_select( :vehicle_id, @appointment.customer&.vehicles || [], :id, :name, include_blank: true ) %>
|
||||
<p><%= f.select :status, CustomerAppointment::STATUSES, label: :field_status %></p>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<%= f.collection_select( :estimate_id, @appointment.customer&.estimates || [], :id, :name, include_blank: true ) %>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
|
||||
<%= f.collection_select( :user_id, User.active.sorted,:id,:name,include_blank: true ) %>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<%= f.date_field :start_date %>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<%= f.date_field :end_date %>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<%= f.number_field :estimated_hours, step: 0.1 %>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<%= f.number_field :duration, step: 1 %>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<%= f.select(:status, CustomerAppointment::STATUSES) %>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<%= f.text_area :description,
|
||||
rows: 8 %>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<%= submit_tag l(:button_save) %>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
<%= f.text_area :description, rows: 8, class: 'wiki-edit', style: 'width: 95%;' %>
|
||||
<%= wikitoolbar_for 'appointment_description' %>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
Reference in new issue
Block a user