-
Notifications
You must be signed in to change notification settings - Fork 9
/
_request_details.html.erb
31 lines (24 loc) · 1.52 KB
/
_request_details.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<%= f.input :title, label: "Title of request", input_html: { class: "input-md-6", placeholder: "Advice on content" } %>
<%= f.inputs name: "Details of your request" do %>
<%= f.input :details, as: :text, required: true,
label: "Please explain what you would like help with",
input_html: { class: "input-md-6", rows: 6, cols: 50, :"aria-required" => true } %>
<div class="alert alert-info alert-block">
<p>If you have relevant supporting documents, please send them as attachments in reply to the acknowledgement email you will receive shortly.</p>
</div>
<%= f.input :urls, as: :text,
label: "Relevant URLs (if applicable)",
input_html: { class: "input-md-6", rows: 6, cols: 50 } %>
<%= f.input :contact_number,
label: "Contact telephone number (in case we need to call you to discuss the content)",
input_html: { class: "input-md-6" } %>
<% end %>
<%= f.semantic_fields_for :time_constraint do |r| %>
<%= r.inputs name: "Time constraints" do %>
<%= r.input :needed_by_date,
label: "Is there a date you need to have a response by?",
input_html: { class: "input-md-2", :"data-module" => 'calendar', :"data-format" => 'dd-mm-yy', :"data-min-date" => 0, :placeholder => "dd-mm-yyyy", :value => r.object.needed_by_date } %>
<%= r.input :time_constraint_reason, label: "Reason for deadline", input_html: { class: "input-md-6" } %>
<% end %>
<% end %>
<%= render partial: "support/collaborators", locals: { f: f } %>