fe 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/fe/admin/panels/_prop_choice_field.html.erb +1 -1
- data/lib/fe/version.rb +1 -1
- metadata +2 -120
- data/app/views.current/fe/admin/elements/_errors.html.erb +0 -11
- data/app/views.current/fe/admin/elements/create.js.erb +0 -12
- data/app/views.current/fe/admin/elements/destroy.js.erb +0 -4
- data/app/views.current/fe/admin/elements/drop.js.erb +0 -3
- data/app/views.current/fe/admin/elements/duplicate.js.erb +0 -3
- data/app/views.current/fe/admin/elements/edit.js.erb +0 -4
- data/app/views.current/fe/admin/elements/error.js.erb +0 -4
- data/app/views.current/fe/admin/elements/new.js.erb +0 -17
- data/app/views.current/fe/admin/elements/reorder.js.erb +0 -0
- data/app/views.current/fe/admin/elements/update.js.erb +0 -9
- data/app/views.current/fe/admin/email_templates/_form.html.erb +0 -8
- data/app/views.current/fe/admin/email_templates/edit.html.erb +0 -13
- data/app/views.current/fe/admin/email_templates/index.html.erb +0 -20
- data/app/views.current/fe/admin/email_templates/new.html.erb +0 -11
- data/app/views.current/fe/admin/panels/_advanced_options.html.erb +0 -49
- data/app/views.current/fe/admin/panels/_common_boolean_fields.html.erb +0 -1
- data/app/views.current/fe/admin/panels/_common_boolean_fields_default.html.erb +0 -11
- data/app/views.current/fe/admin/panels/_common_fields.html.erb +0 -23
- data/app/views.current/fe/admin/panels/_condition.html.erb +0 -6
- data/app/views.current/fe/admin/panels/_insert.html.erb +0 -39
- data/app/views.current/fe/admin/panels/_nav_controls.html.erb +0 -6
- data/app/views.current/fe/admin/panels/_page.html.erb +0 -3
- data/app/views.current/fe/admin/panels/_pages_list.html.erb +0 -16
- data/app/views.current/fe/admin/panels/_prop_attachment_field.html.erb +0 -2
- data/app/views.current/fe/admin/panels/_prop_choice_field.html.erb +0 -74
- data/app/views.current/fe/admin/panels/_prop_date_field.html.erb +0 -7
- data/app/views.current/fe/admin/panels/_prop_element.html.erb +0 -23
- data/app/views.current/fe/admin/panels/_prop_page.html.erb +0 -26
- data/app/views.current/fe/admin/panels/_prop_paragraph.html.erb +0 -46
- data/app/views.current/fe/admin/panels/_prop_question_grid.html.erb +0 -28
- data/app/views.current/fe/admin/panels/_prop_question_grid_with_total.html.erb +0 -14
- data/app/views.current/fe/admin/panels/_prop_reference_question.html.erb +0 -12
- data/app/views.current/fe/admin/panels/_prop_section.html.erb +0 -8
- data/app/views.current/fe/admin/panels/_prop_sheet.html.erb +0 -20
- data/app/views.current/fe/admin/panels/_prop_text_field.html.erb +0 -20
- data/app/views.current/fe/admin/question_pages/_element.html.erb +0 -28
- data/app/views.current/fe/admin/question_pages/_element_show.html.erb +0 -10
- data/app/views.current/fe/admin/question_pages/_errors.html.erb +0 -10
- data/app/views.current/fe/admin/question_pages/_question_page.html.erb +0 -13
- data/app/views.current/fe/admin/question_pages/create.js.erb +0 -11
- data/app/views.current/fe/admin/question_pages/destroy.js.erb +0 -5
- data/app/views.current/fe/admin/question_pages/edit.js.erb +0 -3
- data/app/views.current/fe/admin/question_pages/error.js.erb +0 -4
- data/app/views.current/fe/admin/question_pages/show.js.erb +0 -9
- data/app/views.current/fe/admin/question_pages/show_panel.js.erb +0 -3
- data/app/views.current/fe/admin/question_pages/update.js.erb +0 -2
- data/app/views.current/fe/admin/question_sheets/_errors.html.erb +0 -11
- data/app/views.current/fe/admin/question_sheets/edit.js.erb +0 -3
- data/app/views.current/fe/admin/question_sheets/error.js.erb +0 -5
- data/app/views.current/fe/admin/question_sheets/index.html.erb +0 -41
- data/app/views.current/fe/admin/question_sheets/new.html.erb +0 -15
- data/app/views.current/fe/admin/question_sheets/show.html.erb +0 -27
- data/app/views.current/fe/admin/question_sheets/update.js.erb +0 -2
- data/app/views.current/fe/answer_pages/_answer_page.html.erb +0 -53
- data/app/views.current/fe/answer_pages/_element.html.erb +0 -32
- data/app/views.current/fe/answer_pages/_page_name.html.erb +0 -1
- data/app/views.current/fe/answer_pages/show.html.erb +0 -39
- data/app/views.current/fe/answer_pages/update.js.erb +0 -13
- data/app/views.current/fe/answer_sheets/_answer_sheet.html.erb +0 -26
- data/app/views.current/fe/answer_sheets/_element.html.erb +0 -74
- data/app/views.current/fe/answer_sheets/_incomplete.html.erb +0 -10
- data/app/views.current/fe/answer_sheets/_page_link.html.erb +0 -9
- data/app/views.current/fe/answer_sheets/_pages_list.html.erb +0 -11
- data/app/views.current/fe/answer_sheets/_submit_to.html.erb +0 -1
- data/app/views.current/fe/answer_sheets/_title.html.erb +0 -1
- data/app/views.current/fe/answer_sheets/edit.html.erb +0 -66
- data/app/views.current/fe/answer_sheets/incomplete.js.erb +0 -11
- data/app/views.current/fe/answer_sheets/index.html.erb +0 -18
- data/app/views.current/fe/answer_sheets/send_reference_invite.js.erb +0 -8
- data/app/views.current/fe/answer_sheets/show.html.erb +0 -13
- data/app/views.current/fe/applications/_logout.html.erb +0 -1
- data/app/views.current/fe/applications/show.html.erb +0 -1
- data/app/views.current/fe/help/builder.html +0 -33
- data/app/views.current/fe/help/question_grid.html +0 -18
- data/app/views.current/fe/questions/fe/_acceptance.html.erb +0 -14
- data/app/views.current/fe/questions/fe/_attachment_field.html.erb +0 -165
- data/app/views.current/fe/questions/fe/_checkbox_field.html.erb +0 -53
- data/app/views.current/fe/questions/fe/_country.html.erb +0 -7
- data/app/views.current/fe/questions/fe/_date_field.html.erb +0 -7
- data/app/views.current/fe/questions/fe/_date_field_mmyy.html.erb +0 -9
- data/app/views.current/fe/questions/fe/_drop_down_field.html.erb +0 -8
- data/app/views.current/fe/questions/fe/_paragraph.html.erb +0 -1
- data/app/views.current/fe/questions/fe/_question_grid.html.erb +0 -70
- data/app/views.current/fe/questions/fe/_question_grid_with_total.html.erb +0 -64
- data/app/views.current/fe/questions/fe/_questions.html.erb +0 -15
- data/app/views.current/fe/questions/fe/_radio_button_field.html.erb +0 -60
- data/app/views.current/fe/questions/fe/_rating.html.erb +0 -64
- data/app/views.current/fe/questions/fe/_reference_discipler.html.erb +0 -1
- data/app/views.current/fe/questions/fe/_reference_friend.html.erb +0 -1
- data/app/views.current/fe/questions/fe/_reference_parent.html.erb +0 -1
- data/app/views.current/fe/questions/fe/_reference_peer.html.erb +0 -1
- data/app/views.current/fe/questions/fe/_reference_question.html.erb +0 -61
- data/app/views.current/fe/questions/fe/_reference_roommate.html.erb +0 -1
- data/app/views.current/fe/questions/fe/_reference_spiritual.html.erb +0 -1
- data/app/views.current/fe/questions/fe/_reference_staff.html.erb +0 -1
- data/app/views.current/fe/questions/fe/_section.html.erb +0 -1
- data/app/views.current/fe/questions/fe/_state_chooser.html.erb +0 -7
- data/app/views.current/fe/questions/fe/_text_area_field.html.erb +0 -17
- data/app/views.current/fe/questions/fe/_text_field.html.erb +0 -9
- data/app/views.current/fe/questions/fe/_yes_no.html.erb +0 -17
- data/app/views.current/fe/questions/fe/_yes_no_field.erb +0 -20
- data/app/views.current/fe/reference_pages/_reference.html.erb +0 -31
- data/app/views.current/fe/reference_pages/edit.html.erb +0 -24
- data/app/views.current/fe/reference_sheets/done.html.erb +0 -2
- data/app/views.current/fe/reference_sheets/not_found.html.erb +0 -5
- data/app/views.current/fe/reference_sheets/submitted.js.erb +0 -1
- data/app/views.current/fe/references/edit.html.erb +0 -8
- data/app/views.current/fe/references/send_invite.js.erb +0 -7
- data/app/views.current/fe/references/show.html.erb +0 -18
- data/app/views.current/fe/references/submit.js.erb +0 -3
- data/app/views.current/fe/submit_pages/_errors.html.erb +0 -1
- data/app/views.current/fe/submit_pages/_thankyou.html.erb +0 -2
- data/app/views.current/fe/submit_pages/edit.html.erb +0 -36
- data/app/views.current/fe/submit_pages/error.js.erb +0 -1
- data/app/views.current/fe/submit_pages/submit.js.erb +0 -3
- data/app/views.current/layouts/fe/_error_messages_for.html.erb +0 -7
- data/app/views.current/layouts/fe/application.html.erb +0 -47
- data/app/views.current/layouts/fe/fe_admin.html.erb +0 -30
@@ -1,70 +0,0 @@
|
|
1
|
-
<%- if ["question_pages", "question_sheets", "elements"].include?(controller.controller_name) -%>
|
2
|
-
<div class="droppable" data-url="<%= drop_fe_admin_question_sheet_page_element_path(@page.question_sheet_id, @page.id, question_grid.id) %>">
|
3
|
-
<% if question_grid.label.present? && !question_grid.hide_label? -%>
|
4
|
-
<label class="desc gridname">
|
5
|
-
<%= raw question_grid.label(session[:locale]) %>
|
6
|
-
<% if question_grid.required?(@answer_sheet, @page) -%><span class="required">required</span><% end -%>
|
7
|
-
</label>
|
8
|
-
<% end %>
|
9
|
-
<div class="sub_q">
|
10
|
-
<!-- Create a sortable list for each grid on the page -->
|
11
|
-
<ul class="questions" id="questions_list_<%= question_grid.id %>" data-sortable="true" data-sortable-url="<%= reorder_fe_admin_question_sheet_page_elements_path(@page.question_sheet_id, @page.id) %>" data-sortable-handle=".handle">
|
12
|
-
<%- if question_grid.elements.length > 0 -%>
|
13
|
-
<%= render partial: "fe/admin/question_pages/element", collection: question_grid.elements, locals: {in_grid: true} %>
|
14
|
-
<%- else -%>
|
15
|
-
Grid
|
16
|
-
<%- end -%>
|
17
|
-
</ul>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
<%- else -%>
|
21
|
-
<% if question_grid.label.present? && !question_grid.hide_label? -%>
|
22
|
-
<label class="desc gridname"><%= raw question_grid.label(session[:locale]) %></label>
|
23
|
-
<% end %>
|
24
|
-
<% headers = question_grid.cols.to_s.split(";") %>
|
25
|
-
<% if headers.length > 1 %>
|
26
|
-
<table class="grid <%= question_grid.css_class %>" id="<%= question_grid.css_id %>">
|
27
|
-
<% if headers.detect {|h| h.strip.present?} %>
|
28
|
-
<tr>
|
29
|
-
<%- headers.each do |header| -%>
|
30
|
-
<th><%= raw header || " " %></th>
|
31
|
-
<%- end -%>
|
32
|
-
</tr>
|
33
|
-
<% end %>
|
34
|
-
<% if question_grid.style == "radio" %>
|
35
|
-
<% question_grid.elements.each do |element| -%>
|
36
|
-
<%= render partial: "fe/answer_pages/element", object: element %>
|
37
|
-
<% end %>
|
38
|
-
<% else %>
|
39
|
-
<tr >
|
40
|
-
<%- col_count = 0; previous_element = nil;
|
41
|
-
question_grid.elements.each do |element| -%>
|
42
|
-
<td style="<%= "display:none" if previous_element && previous_element.conditional == element && !previous_element.conditional_match(@answer_sheet) %>" class="hidecell <%= element.class.to_s.downcase.gsub("::","_") %> <%= element.style.to_s.downcase %> <%= "conditional" if element.conditional %>" id="element_<%= element.id %>" <% if element.conditional %>data-conditional_id="<%= element.conditional_id %>" data-conditional_type="<%= element.conditional_type %>" data-conditional_answer="<%= element.conditional_answer %>" data-application_id="<%= @answer_sheet.id %>" data-answer_sheet_id_prefix="<%= @answer_sheet.class.name.underscore.gsub("/","_") %>"<% end %>>
|
43
|
-
<%# grid_el = @elements.to_a.find {|el| el.id == element.id} %>
|
44
|
-
<%= render partial: "fe/answer_pages/element", object: element, locals: {col: col_count} %>
|
45
|
-
</td>
|
46
|
-
<%- previous_element = element;
|
47
|
-
col_count += 1
|
48
|
-
if col_count % question_grid.num_cols == 0 && element != question_grid.elements.last then col_count = 0 -%></tr><tr><%- end -%>
|
49
|
-
<%- end -%>
|
50
|
-
<%- while col_count < question_grid.num_cols do
|
51
|
-
col_count += 1-%>
|
52
|
-
<td> </td>
|
53
|
-
<%- end unless col_count == 0-%>
|
54
|
-
</tr>
|
55
|
-
<% end %>
|
56
|
-
</table>
|
57
|
-
<% else %>
|
58
|
-
<% if headers[0].to_s.strip.present? %>
|
59
|
-
<div class="header"><%= headers[0] %></div>
|
60
|
-
<% end %>
|
61
|
-
<% previous_element = nil %>
|
62
|
-
<% question_grid.elements.each do |element| -%>
|
63
|
-
<div style="<%= "display:none" if previous_element && previous_element.conditional == element && !previous_element.conditional_match(@answer_sheet) %>" class="<%= "row" unless Fe.bootstrap %> <%= element.class.to_s.downcase.gsub("::","_") %> <%= element.style.to_s.downcase %> <%= "conditional" if element.conditional %>" id="element_<%= element.id %>" <% if element.conditional %>data-conditional_id="<%= element.conditional_id %>" data-conditional_type="<%= element.conditional_type %>" data-conditional_answer="<%= element.conditional_answer %>" data-application_id="<%= @answer_sheet.id %>" data-answer_sheet_id_prefix="<%= @answer_sheet.class.name.underscore.gsub("/","_") %>"<% end %>>
|
64
|
-
<%= render partial: "fe/answer_pages/element", object: element, locals: {in_grid: true} %>
|
65
|
-
</div>
|
66
|
-
<% previous_element = element %>
|
67
|
-
<% end %>
|
68
|
-
<div class="clear"></div>
|
69
|
-
<% end %>
|
70
|
-
<%- end -%>
|
@@ -1,64 +0,0 @@
|
|
1
|
-
<%- if ["question_pages", "question_sheets", "elements"].include?(controller.controller_name) -%>
|
2
|
-
<div class="droppable" data-url="<%= drop_fe_admin_question_sheet_page_element_path(@page.question_sheet_id, @page.id, question_grid_with_total.id) %>">
|
3
|
-
<label class="desc"><%= raw question_grid_with_total.label(session[:locale]) %></label>
|
4
|
-
<div>
|
5
|
-
<ul class="questions" id="questions_list_<%= question_grid_with_total.id %>" data-sortable="true" data-sortable-url="<%= reorder_fe_admin_question_sheet_page_elements_path(@page.question_sheet_id, @page.id) %>" data-sortable-handle=".handle">
|
6
|
-
<%- if question_grid_with_total.elements.length > 0 -%>
|
7
|
-
<%= render partial: "fe/admin/question_pages/element", collection: question_grid_with_total.elements, locals: {in_grid: true} %>
|
8
|
-
<%- else -%>
|
9
|
-
Grid
|
10
|
-
<%- end -%>
|
11
|
-
</ul>
|
12
|
-
</div>
|
13
|
-
</div>
|
14
|
-
<%- else -%>
|
15
|
-
<label class="desc"><%= raw question_grid_with_total.label(session[:locale]) %></label>
|
16
|
-
<table class="grid with_total">
|
17
|
-
<% headers = question_grid_with_total.cols.to_s.split(";") %>
|
18
|
-
<% if headers.detect {|h| h.strip.present?} %>
|
19
|
-
<tr>
|
20
|
-
<%- headers.each do |header| -%>
|
21
|
-
<th><%= header || " " %></th>
|
22
|
-
<%- end -%>
|
23
|
-
</tr>
|
24
|
-
<% end %>
|
25
|
-
<tr>
|
26
|
-
<%- col_count = 0
|
27
|
-
question_grid_with_total.elements.each do |element| -%>
|
28
|
-
<td id="element_<%= element.id %>">
|
29
|
-
<%# grid_el = @elements.to_a.find {|el| el.id == element.id} %>
|
30
|
-
<% col_count = col_count % question_grid_with_total.num_cols unless Fe.bootstrap %>
|
31
|
-
<%= render partial: "fe/answer_pages/element", object: element, locals: {in_grid: true, col: col_count} %>
|
32
|
-
</td>
|
33
|
-
<%- col_count += 1
|
34
|
-
if col_count % question_grid_with_total.num_cols == 0 && element != question_grid_with_total.elements.last then col_count = 0 -%></tr><tr><%- end -%>
|
35
|
-
<%- end -%>
|
36
|
-
<%- while col_count < question_grid_with_total.num_cols do
|
37
|
-
col_count += 1-%>
|
38
|
-
<td> </td>
|
39
|
-
<%- end unless col_count == 0-%>
|
40
|
-
</tr>
|
41
|
-
<%- if question_grid_with_total.total_cols.present? -%>
|
42
|
-
<tr class="total">
|
43
|
-
<td>Total</td>
|
44
|
-
<%- total_cols = question_grid_with_total.total_cols.split(",").collect(&:to_i)
|
45
|
-
(question_grid_with_total.num_cols - 1).times do |i|
|
46
|
-
ci = i + 2
|
47
|
-
if total_cols.include?(ci) -%>
|
48
|
-
<td>
|
49
|
-
<%= text_field_tag "total_#{question_grid_with_total.id}_#{i + 1}", "", class: "text validate-number", readonly: true %>
|
50
|
-
<script>
|
51
|
-
$("#<%= "total_#{question_grid_with_total.id}_#{i + 1}" %>").closest("table").find("td:nth-child(<%= ci %>)").change(function() {
|
52
|
-
updateTotal("<%= question_grid_with_total.id %>_<%= i+1 %>");
|
53
|
-
});
|
54
|
-
</script>
|
55
|
-
</td>
|
56
|
-
<% else %>
|
57
|
-
<td> </td>
|
58
|
-
<% end %>
|
59
|
-
<%- end -%>
|
60
|
-
</tr>
|
61
|
-
<%- end -%>
|
62
|
-
</table>
|
63
|
-
<%- end -%>
|
64
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<ul>
|
2
|
-
<% questions.each do |question| %>
|
3
|
-
<li class="new-dialog-<%= dom_id(question) %>">
|
4
|
-
<% unless Fe.never_reuse_elements %>
|
5
|
-
<%= link_to(use_existing_fe_admin_question_sheet_page_element_path(question_sheet_id: @page.question_sheet_id, page_id: @page.id, id: question.id), remote: true, method: :post, onClick: "$('li.new-dialog-#{dom_id(question)}').html('Inserting...')") do %>
|
6
|
-
<span>Insert</span><label>
|
7
|
-
<% end %>
|
8
|
-
<% end %>
|
9
|
-
<%= link_to(copy_existing_fe_admin_question_sheet_page_element_path(question_sheet_id: @page.question_sheet_id, page_id: @page.id, id: question.id), remote: true, method: :post, onClick: "$('li.new-dialog-#{dom_id(question)}').html('Copying... This can take a minute')") do %>
|
10
|
-
<span>Copy</span>
|
11
|
-
<% end %>
|
12
|
-
<label><%= raw question.label(session[:locale]) %></label>
|
13
|
-
</li>
|
14
|
-
<% end %>
|
15
|
-
</ul>
|
@@ -1,60 +0,0 @@
|
|
1
|
-
<% choices = radio_button_field.choices(session[:locale]) %>
|
2
|
-
<% css_class = "radio " -%>
|
3
|
-
<% css_class += "required" if radio_button_field.required?(@answer_sheet, @page) %>
|
4
|
-
<% if radio_button_field.hide_option_labels? && !["question_pages", "question_sheets", "elements"].include?(controller.controller_name) %>
|
5
|
-
<tr id="<%= dom_id(radio_button_field) %>">
|
6
|
-
<td class="col1">
|
7
|
-
<label for="<%= dom_id(radio_button_field) %>" class="desc">
|
8
|
-
<%= raw radio_button_field.label(session[:locale]) %>
|
9
|
-
<% if radio_button_field.required?(@answer_sheet, @page) -%><span class="required">required</span><% end -%>
|
10
|
-
<%= tip(radio_button_field.tooltip) if radio_button_field.tooltip.present? %>
|
11
|
-
</label>
|
12
|
-
</td>
|
13
|
-
<% choices.each_with_index do |choice, num| -%>
|
14
|
-
<td class="col">
|
15
|
-
<% dom_id = dom_id(radio_button_field) + "_" + pretty_tag(choice[1])
|
16
|
-
last_choice = (num == choices.length - 1)
|
17
|
-
css_class += radio_button_field.validation_class(@answer_sheet, @page) if last_choice
|
18
|
-
checked = radio_button_field.has_answer?(choice[1], @answer_sheet)
|
19
|
-
locked = radio_button_field.locked?(params, @answer_sheet, @presenter, current_person)
|
20
|
-
%>
|
21
|
-
<%= radio_button_tag "answers[#{radio_button_field.id}]", choice[1], checked,
|
22
|
-
id: dom_id,
|
23
|
-
class: css_class,
|
24
|
-
disabled: locked,
|
25
|
-
readonly: locked %>
|
26
|
-
</td>
|
27
|
-
<% end -%>
|
28
|
-
</tr>
|
29
|
-
<% else %>
|
30
|
-
<div id="<%= dom_id(radio_button_field) %>">
|
31
|
-
<% choices.each_with_index do |choice, num| -%>
|
32
|
-
<% dom_id = dom_id(radio_button_field) + "_" + pretty_tag(choice[1])
|
33
|
-
last_choice = (num == choices.length - 1)
|
34
|
-
css_class += radio_button_field.validation_class(@answer_sheet, @page) if last_choice
|
35
|
-
checked = radio_button_field.has_answer?(choice[1], @answer_sheet)
|
36
|
-
locked = radio_button_field.locked?(params, @answer_sheet, @presenter, current_person)
|
37
|
-
%>
|
38
|
-
<% if Fe.bootstrap %>
|
39
|
-
<div class="radio <%= "disabled" if locked %> radio-set">
|
40
|
-
<label class="choice" for="<%= dom_id %>">
|
41
|
-
<%= radio_button_tag "answers[#{radio_button_field.id}]", choice[1], checked,
|
42
|
-
id: dom_id,
|
43
|
-
class: css_class,
|
44
|
-
disabled: locked,
|
45
|
-
readonly: locked %>
|
46
|
-
<%= choice[0] %>
|
47
|
-
</label>
|
48
|
-
<% else %>
|
49
|
-
<div class="radio-set">
|
50
|
-
<%= radio_button_tag "answers[#{radio_button_field.id}]", choice[1], checked,
|
51
|
-
id: dom_id,
|
52
|
-
class: css_class,
|
53
|
-
disabled: locked,
|
54
|
-
readonly: locked %>
|
55
|
-
<label class="choice" for="<%= dom_id %>"><%= choice[0] %></label>
|
56
|
-
</div>
|
57
|
-
<% end %>
|
58
|
-
<% end -%>
|
59
|
-
</div>
|
60
|
-
<% end %>
|
@@ -1,64 +0,0 @@
|
|
1
|
-
<% choices = rating.choices(session[:locale]) %>
|
2
|
-
<% dom_id = "" %>
|
3
|
-
<% locked = rating.locked?(params, @answer_sheet, @presenter, current_person) %>
|
4
|
-
<div id="<%= dom_id(rating) %>">
|
5
|
-
<table cellspacing="0" class="rating">
|
6
|
-
<tr>
|
7
|
-
<% if rating.rating_before_label.present? %>
|
8
|
-
<td class="rating_before">
|
9
|
-
<% first_dom = dom_id(rating) + "_" + pretty_tag(choices.first[1]) %>
|
10
|
-
<label class="no_label_styles" for="<%= first_dom %>">
|
11
|
-
<%= rating.rating_before_label(session[:locale]) %>
|
12
|
-
</label>
|
13
|
-
</td>
|
14
|
-
<% end %>
|
15
|
-
<% css_class = " " %>
|
16
|
-
<% choices.each_with_index do |choice, num| %>
|
17
|
-
<% dom_id = dom_id(rating) + "_" + pretty_tag(choice[1])
|
18
|
-
last_choice = (num == choices.length - 1)
|
19
|
-
css_class += rating.validation_class(@answer_sheet, @page) if last_choice
|
20
|
-
checked = rating.has_answer?(choice[1],@answer_sheet) %>
|
21
|
-
<td class="rating_choice"><%= radio_button_tag "answers[#{rating.id}]", choice[1], checked,
|
22
|
-
id: dom_id,
|
23
|
-
class: css_class,
|
24
|
-
disabled: locked,
|
25
|
-
readonly: locked %></td>
|
26
|
-
<% end %>
|
27
|
-
<% if rating.rating_after_label.present? %>
|
28
|
-
<td class="rating_after">
|
29
|
-
<% last_dom = dom_id(rating) + "_" + pretty_tag(choices.last[1]) %>
|
30
|
-
<label class="no_label_styles" for="<%= last_dom %>">
|
31
|
-
<%= rating.rating_after_label(session[:locale]) %>
|
32
|
-
</label>
|
33
|
-
</td>
|
34
|
-
<% end %>
|
35
|
-
<% if rating.rating_na_label.present? %>
|
36
|
-
<% choice = "na"
|
37
|
-
dom_id = dom_id(rating) + "_" + pretty_tag(choice)
|
38
|
-
checked = rating.has_answer?(choice, @answer_sheet) %>
|
39
|
-
<td class="rating_na">
|
40
|
-
<%= radio_button_tag "answers[#{rating.id}]", "na", checked,
|
41
|
-
id: dom_id,
|
42
|
-
class: "",
|
43
|
-
disabled: locked,
|
44
|
-
readonly: locked %>
|
45
|
-
</td>
|
46
|
-
<td class="rating_na_label">
|
47
|
-
<label class="no_label_styles" for="<%= dom_id %>">
|
48
|
-
<%= rating.rating_na_label(session[:locale]) %>
|
49
|
-
</label>
|
50
|
-
</td>
|
51
|
-
<% end %>
|
52
|
-
</tr>
|
53
|
-
<% unless rating.hide_option_labels %>
|
54
|
-
<tr>
|
55
|
-
<% if rating.rating_before_label.present? %><td></td><% end %>
|
56
|
-
<% choices.each do |choice| %>
|
57
|
-
<td class="rating_choice"><%= choice[0].html_safe %></td>
|
58
|
-
<% end %>
|
59
|
-
<% if rating.rating_after_label.present? %><td></td><% end %>
|
60
|
-
</tr>
|
61
|
-
<% end %>
|
62
|
-
</table>
|
63
|
-
<div id="advice-validate-rating-<%= dom_id %>" class="validation-advice" style="display: none;"><%= _("Please select one of the above options.") %></div>
|
64
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render "fe/questions/fe/reference_question", reference_question: reference_discipler, title: _("Discipler Reference") %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render "fe/questions/fe/reference_question", reference_question: reference_friend, title: _("Friend Reference") %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render "fe/questions/fe/reference_question", reference_question: reference_parent, title: _("Parent Reference") %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render "fe/questions/fe/reference_question", reference_question: reference_peer, title: _("Peer Reference") %>
|
@@ -1,61 +0,0 @@
|
|
1
|
-
<% reference = reference_question.response(@answer_sheet) %>
|
2
|
-
<% reference ||= Fe::ReferenceSheet.new %>
|
3
|
-
<% css_class = reference_question.required?(@answer_sheet, @page) ? "required" : "" %>
|
4
|
-
<% email_css_class = reference_question.required?(@answer_sheet, @page) ? "required email email" : "" %>
|
5
|
-
<% phone_css_class = reference_question.required?(@answer_sheet, @page) ? "required phone phone" : "" %>
|
6
|
-
<%#= hidden_field_tag "reference[#{reference.id}]", class: reference_question.required? && !reference.email_sent? ? "required" : "" %>
|
7
|
-
<div id="<%= dom_id(reference_question) %>" class="reference_question">
|
8
|
-
<ul class="questions level1">
|
9
|
-
<li>
|
10
|
-
<label for="<%= "name_#{reference.id}" %>" class="desc"><%= _("First Name") %></label>
|
11
|
-
<%= text_field_tag "reference[#{reference.id}][first_name]", reference.first_name, class: "#{"form-control" if Fe.bootstrap} text #{css_class}", id: "name_#{reference.id}", readonly: reference.completed? || !@answer_sheet.try(:can_change_references?), disabled: reference.completed? || !@answer_sheet.try(:can_change_references?) %>
|
12
|
-
</li>
|
13
|
-
<li>
|
14
|
-
<label for="<%= "name_#{reference.id}" %>" class="desc"><%= _("Last Name") %> </label>
|
15
|
-
<%= text_field_tag "reference[#{reference.id}][last_name]", reference.last_name, class: "#{"form-control" if Fe.bootstrap} text #{css_class}", id: "name_#{reference.id}", readonly: reference.completed? || !@answer_sheet.try(:can_change_references?), disabled: reference.completed? || !@answer_sheet.try(:can_change_references?) %>
|
16
|
-
</li>
|
17
|
-
<li>
|
18
|
-
<label for="<%= "name_#{reference.id}" %>" class="desc"><%= _("Relationship to You") %></label>
|
19
|
-
<%= text_field_tag "reference[#{reference.id}][relationship]", reference.relationship, class: "#{"form-control" if Fe.bootstrap} text #{css_class}", id: "name_#{reference.id}", readonly: reference.completed? || !@answer_sheet.try(:can_change_references?), disabled: reference.completed? || !@answer_sheet.try(:can_change_references?) %>
|
20
|
-
</li>
|
21
|
-
<li>
|
22
|
-
<label for="<%= "email_#{reference.id}" %>" class="desc"><%= _("E-mail") %></label>
|
23
|
-
<% if (!reference.email.blank?) %>
|
24
|
-
<div class="warningText">
|
25
|
-
<%= _("Please be aware that any changes to this email address after your reference has started filling out their form will cause their answers to be lost.") %>
|
26
|
-
</div>
|
27
|
-
<% end %>
|
28
|
-
<%= text_field_tag "reference[#{reference.id}][email]", reference.email, class: "#{"form-control" if Fe.bootstrap} text #{email_css_class}", id: "email_#{reference.id}", readonly: reference.completed? || !@answer_sheet.try(:can_change_references?), disabled: reference.completed? || !@answer_sheet.try(:can_change_references?) %>
|
29
|
-
</li>
|
30
|
-
<li>
|
31
|
-
<label for="<%= "phone_#{reference.id}" %>" class="desc"><%= _("Phone") %></label>
|
32
|
-
<%= text_field_tag "reference[#{reference.id}][phone]", reference.phone, class: "#{"form-control" if Fe.bootstrap} text #{phone_css_class}", id: "phone_#{reference.id}", readonly: reference.completed? || !@answer_sheet.try(:can_change_references?), disabled: reference.completed? || !@answer_sheet.try(:can_change_references?) %>
|
33
|
-
</li>
|
34
|
-
<li>
|
35
|
-
<% if reference.completed? %>
|
36
|
-
<p><strong><%= _("This reference is completed") %></strong></p>
|
37
|
-
<% else %>
|
38
|
-
<p>
|
39
|
-
<%= _("An invitation will be sent to this reference when you submit your application. If you would " \
|
40
|
-
"like to get a head start, please feel free to click "Send Email Invitation" below.") %><br/>
|
41
|
-
<em><strong>
|
42
|
-
<%= _("If you already submitted your application and have returned to update your reference information - you must click "Send Email Invitation" after you " \
|
43
|
-
"have edited the information in order for your reference to receive another email.") %>
|
44
|
-
</strong></em></p></li>
|
45
|
-
|
46
|
-
<li><%= link_to(_("Send Email Invitation"), @answer_sheet ? send_reference_invite_fe_answer_sheet_path(@answer_sheet, reference_id: reference.id) : "#", class: "#{"form-control" if Fe.bootstrap} reference_send_invite button no-left-margin", disabled: !reference.all_affecting_questions_answered) %>
|
47
|
-
<% if reference.question && !reference.all_affecting_questions_answered %>
|
48
|
-
<div>
|
49
|
-
<strong><i>This button is disabled because there are questions that affect whether this reference is required that need to answered first:</i></strong>
|
50
|
-
<ul>
|
51
|
-
<% reference.question.visibility_affecting_questions.each do |q| %>
|
52
|
-
<% next if q.has_response?(@answer_sheet) %>
|
53
|
-
<li>"<%= q.pages.where(question_sheet_id: @answer_sheet.question_sheet_ids).first.label %>" Page: "<%= q.label %>"</li>
|
54
|
-
<% end %>
|
55
|
-
</ul>
|
56
|
-
</div>
|
57
|
-
<% end %>
|
58
|
-
<br/><%= _("Invitation last sent:") %> <span id="ref_last_sent_<%= reference.id %>"><% if reference.email_sent_at.nil? -%><%= _("Never") %><% else %><%= reference.email_sent_at.strftime("%Y-%m-%d @ %I:%M%p") %><% end %></span></li>
|
59
|
-
<% end %>
|
60
|
-
</ul>
|
61
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render "fe/questions/fe/reference_question", reference_question: reference_roommate, title: _("Roommate Reference") %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render "fe/questions/fe/reference_question", reference_question: reference_spiritual, title: _("Spiritual Reference") %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render "fe/questions/fe/reference_question", reference_question: reference_staff, title: _("Staff Reference") %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<h4><%= raw section.label(session[:locale]) %></h4>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<% locked = state_chooser.locked?(params, @answer_sheet, @presenter, current_person) %>
|
2
|
-
<%= select_tag "answers[#{state_chooser.id}]",
|
3
|
-
options_for_select(["", ["Not Listed","N/A"]] + state_chooser.choices(session[:locale]), [state_chooser.response(@answer_sheet).to_s]),
|
4
|
-
class: "#{"form-control" if Fe.bootstrap} select " + state_chooser.validation_class(@answer_sheet, @page),
|
5
|
-
id: dom_id(state_chooser),
|
6
|
-
disabled: locked,
|
7
|
-
readonly: locked %>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
max_length = text_area_field.max_length.to_i > 0 ? text_area_field.max_length : 4000
|
3
|
-
locked = text_area_field.locked?(params, @answer_sheet, @presenter, current_person)
|
4
|
-
%>
|
5
|
-
<% response = text_area_field.response(@answer_sheet).to_s %>
|
6
|
-
<%= text_area_tag "answers[#{text_area_field.id}]", response,
|
7
|
-
class: "text " + text_area_field.validation_class(@answer_sheet, @page),
|
8
|
-
id: dom_id(text_area_field),
|
9
|
-
rows: 6,
|
10
|
-
autocomplete: "off",
|
11
|
-
disabled: locked,
|
12
|
-
readonly: locked,
|
13
|
-
maxlength: max_length %>
|
14
|
-
<div class="small" align="right"><span class="small notice"><%= _("(Please use paragraphs for long answers)") %></span>
|
15
|
-
<%= _("Characters remaining: ") %>
|
16
|
-
<input type="text" id="<%= dom_id(text_area_field)+"_count" %>" size="4" value="<%= max_length - response.length %>" disabled="" class="small char-count">
|
17
|
-
</div>
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<% locked = text_field.locked?(params, @answer_sheet, @presenter, current_person) %>
|
2
|
-
<%= text_field_tag "answers[#{text_field.id}]", text_field.response(@answer_sheet),
|
3
|
-
class: "#{"form-control" if Fe.bootstrap} text #{text_field.css_class} #{text_field.question_grid_id.present? ? "col_#{text_field.question_grid_id}_#{col}" : ""}" + text_field.validation_class(@answer_sheet, @page),
|
4
|
-
id: dom_id(text_field),
|
5
|
-
disabled: locked,
|
6
|
-
autocomplete: "off",
|
7
|
-
readonly: locked,
|
8
|
-
maxlength: text_field.max_length.to_i > 0 ? text_field.max_length : 255 %>
|
9
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<%- if ["question_pages", "question_sheets", "elements"].include?(controller.controller_name) -%>
|
2
|
-
<div class="droppable" data-url="<%= drop_fe_admin_question_sheet_page_element_path(@page.question_sheet_id, @page.id, yes_no.id) %>">
|
3
|
-
<%= render "fe/questions/fe/yes_no_field", yes_no: yes_no %>
|
4
|
-
<ul class="questions" id="questions_list_<%= yes_no.id %>" data-sortable="true" data-sortable-url="<%= reorder_fe_admin_question_sheet_page_elements_path(@page.question_sheet_id, @page.id) %>" data-sortable-handle=".handle">
|
5
|
-
<%= render partial: "fe/admin/question_pages/element", collection: yes_no.elements, locals: {in_grid: true} %>
|
6
|
-
</ul>
|
7
|
-
</div>
|
8
|
-
<% else %>
|
9
|
-
<%= render "fe/questions/fe/yes_no_field", yes_no: yes_no %>
|
10
|
-
<ul class="questions" id="questions_list_<%= yes_no.id %>" style="<%= yes_no.has_answer?(1,@answer_sheet) ? "" : "display:none" %>">
|
11
|
-
<%= render partial: "fe/answer_pages/element", collection: yes_no.elements, locals: {in_grid: false, in_conditional: true} %>
|
12
|
-
</ul>
|
13
|
-
<script type="text/javascript" charset="utf-8">
|
14
|
-
$(document).on("click", "#<%= dom_id(yes_no) %>_1", function() {$("#questions_list_<%= yes_no.id %>").show(); $("input", "#questions_list_<%= yes_no.id %>").addClass("required"); });
|
15
|
-
$(document).on("click", "#<%= dom_id(yes_no) %>_0", function() {$("#questions_list_<%= yes_no.id %>").hide(); $("input", "#questions_list_<%= yes_no.id %>").removeClass("required"); });
|
16
|
-
</script>
|
17
|
-
<% end %>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<% locked = yes_no.locked?(params, @answer_sheet, @presenter, current_person) %>
|
2
|
-
<div id="<%= dom_id(yes_no) %>" class="choice_field" style="white-space: nowrap;">
|
3
|
-
<% css_class = "#{yes_no.css_class} " -%>
|
4
|
-
<% yes_no.choices.each_with_index do |choice, num| -%>
|
5
|
-
<% dom_id = dom_id(yes_no) + "_" + pretty_tag(choice[1])
|
6
|
-
css_class += yes_no.validation_class(@answer_sheet, @page) if num == 0
|
7
|
-
checked = yes_no.has_answer?(choice[1],@answer_sheet) -%>
|
8
|
-
<div class="<% if Fe.bootstrap %>radio<% end %> field field_check yesno">
|
9
|
-
<% if Fe.bootstrap %><label class="choice horiz" for="<%= dom_id %>"><% end %>
|
10
|
-
<%= radio_button_tag "answers[#{yes_no.id}]", choice[1], checked,
|
11
|
-
id: dom_id,
|
12
|
-
class: css_class,
|
13
|
-
disabled: locked,
|
14
|
-
readonly: locked %>
|
15
|
-
<% if Fe.bootstrap %><%= choice[0] %><% end %>
|
16
|
-
<% unless Fe.bootstrap %><label class="choice horiz" for="<%= dom_id %>"><%= choice[0] %></label><% end %>
|
17
|
-
</div>
|
18
|
-
<% end -%>
|
19
|
-
<div class="clear"></div>
|
20
|
-
</div>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<% index = reference.applicant_answer_sheet_id -%>
|
2
|
-
|
3
|
-
<h3><%= h reference.title %></h3>
|
4
|
-
|
5
|
-
<ul class="questions">
|
6
|
-
<li>
|
7
|
-
<label for="<%= "name_#{index}" %>" class="desc"><%= _("Name") %></label>
|
8
|
-
<%= text_field_tag "references[#{index}][name]", reference.name, class: "text required", id: "name_#{index}" %>
|
9
|
-
</li>
|
10
|
-
<li>
|
11
|
-
<label for="<%= "email_#{index}" %>" class="desc"><%= _("E-mail") %></label>
|
12
|
-
<% if (!reference.email.blank?) %><div class="warningText">Please be aware that any changes to this email address after your reference has started filling out their form will cause their answers to be lost.</div><% end %>
|
13
|
-
<%= text_field_tag "references[#{index}][email]", reference.email, class: "text required validate-email", id: "email_#{index}" %>
|
14
|
-
</li>
|
15
|
-
<li>
|
16
|
-
<label for="<%= "phone_#{index}" %>" class="desc"><%= _("Phone") %></label>
|
17
|
-
<%= text_field_tag "references[#{index}][phone]", reference.phone, class: "text required validate-phone", id: "phone_#{index}" %>
|
18
|
-
</li>
|
19
|
-
<li>
|
20
|
-
<label for="<%= "months_known_#{index}" %>" class="desc"><%= _("Length of acquaintance") %></label>
|
21
|
-
<%= select_tag "references[#{index}][months_known]",
|
22
|
-
options_for_select([""] + Fe::ReferencePagesController::MONTHS_KNOWN_OPTIONS, reference.months_known),
|
23
|
-
class: "select validate-selection",
|
24
|
-
id: "months_known[#{index}]" %>
|
25
|
-
</li>
|
26
|
-
<li><p><%= _("An invitation will be sent to this reference when you submit your application. If you would " \
|
27
|
-
"like to get a headstart, please feel free to click "Send Email Invitation" below.") %></p></li>
|
28
|
-
|
29
|
-
<li><%= submit_tag(_("Send Email Invitation")) %>
|
30
|
-
<%= _("Invitation last sent:") %> <span id="ref_last_sent_<%= reference.id %>"><% unless reference.email_sent_at.nil? -%><%= reference.email_sent_at.strftime("%Y-%m-%d @ %I:%M%p") %><% end -%></span></li>
|
31
|
-
</ul>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<% page_dom = "reference_page"
|
2
|
-
next_js = load_page_js(@next_page) -%>
|
3
|
-
|
4
|
-
<div id="<%= page_dom %>" class="answer-page" style="display: none;"> <!-- this id is parsed by public.js -->
|
5
|
-
|
6
|
-
<h2>References</h2>
|
7
|
-
|
8
|
-
<div id="page-preview">
|
9
|
-
<div class="page">
|
10
|
-
|
11
|
-
<%= form_tag fe_application_reference_page_path(@application), remote: true, id: "#{page_dom}-form", onsubmit: next_js + "; return false;" do %>
|
12
|
-
|
13
|
-
<p><%= _("Please provide your references.") %></p>
|
14
|
-
|
15
|
-
<%= render partial: "reference", collection: @references, locals: {page_dom: page_dom} %>
|
16
|
-
|
17
|
-
<% end -%>
|
18
|
-
|
19
|
-
<%= button_to_function _("Next"), next_js unless next_js.empty? %>
|
20
|
-
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
</div>
|
@@ -1,2 +0,0 @@
|
|
1
|
-
<p><%= _("Thank you for completing this reference. Your input is so valuable to us. If you are not familiar with Cru, why not visit our website to learn more?") %> <%= link_to("http://cru.org", "http://cru.org") %></p>
|
2
|
-
<p><%= _("If you have any questions or concerns, email us at %{email}") % { email: Fe.from_email } %></p>
|
@@ -1,5 +0,0 @@
|
|
1
|
-
<%= _("We weren"t able to find a reference associated with this link. The are two common reason for this issue:") %>
|
2
|
-
<ol>
|
3
|
-
<li><%= _("The applicant has picked someone else to do their reference.") %></li>
|
4
|
-
<li><%= _("The link in your email was wrapped onto two lines. Check to make sure what you see in the address bar of your browser is the full link you see in your email.") %></li>
|
5
|
-
</ol>
|
@@ -1 +0,0 @@
|
|
1
|
-
document.location = '/fe/references/done'
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<%= _("We"re sorry, but the reference form you are trying to access is no longer available.") %><br/>
|
2
|
-
<br/>
|
3
|
-
<%= _("If the applicant (the person you are attempting to fill out a reference for) has changed or updated any information about the reference, " \
|
4
|
-
"that would invalidate this form. If you know that you are supposed to fill out a reference for this person, please check the link " \
|
5
|
-
"that you clicked on and make sure the entire address is displayed in the address bar. Sometimes the link doesn’t fully cut and paste.") %><br/>
|
6
|
-
<br/>
|
7
|
-
<%= _("If you still require assistance, please forward the email you received that contained the link you clicked to %{email} with a description of your problem.") %
|
8
|
-
{ email: Fe.from_email } %>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
if @sent
|
2
|
-
page.replace_html "ref_last_sent_#{@reference.id}", @reference.email_sent_at.strftime("%m/%d/%Y @ %I:%M%p")
|
3
|
-
page.visual_effect :highlight, "ref_last_sent_#{@reference.id}"
|
4
|
-
else
|
5
|
-
page.replace_html "ref_last_sent_#{@reference.id}", "<b>Error sending email. Make sure email address is valid.</b>"
|
6
|
-
page.visual_effect :highlight, "ref_last_sent_#{@reference.id}"
|
7
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<div id="controls">
|
2
|
-
<div id="panel">
|
3
|
-
<div class="panel">
|
4
|
-
<% unless @reference.question_sheet.nil? -%>
|
5
|
-
<h2><%= @reference.question_sheet.label %></h2>
|
6
|
-
|
7
|
-
<p><label class="desc"><%= _("Applicant:") %></label> <%= @application.applicant.informal_full_name %></p>
|
8
|
-
<p><label class="desc"><%= _("Reference:") %></label> <%= @reference.name %></p>
|
9
|
-
<% end -%>
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div id="preview" class="answer-page">
|
15
|
-
|
16
|
-
<%= render partial: "/answer_sheets/answer_sheet", locals: {answer_sheet: @answer_sheet, elements: @elements } %>
|
17
|
-
|
18
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= error_messages_for :application %>
|
@@ -1,36 +0,0 @@
|
|
1
|
-
<% page_dom = "submit_page"
|
2
|
-
next_js = load_page_js(@next_page) -%>
|
3
|
-
|
4
|
-
<div id="<%= page_dom %>" class="answer-page"> <!-- this id is parsed by public.js -->
|
5
|
-
|
6
|
-
<h2>Submit Application</h2>
|
7
|
-
|
8
|
-
<div id="page-preview">
|
9
|
-
<div class="page">
|
10
|
-
|
11
|
-
<%= form_tag fe_application_submit_page_path(@application), id: "#{page_dom}-form", autocomplete: "off", onsubmit: "page_handler.validateAll(); return false;" do -%>
|
12
|
-
|
13
|
-
<div id="submit_app">
|
14
|
-
<% if @application.frozen? -%>
|
15
|
-
<p><%= _("You have already submitted this application.") %></p>
|
16
|
-
<% else -%>
|
17
|
-
<p><%= _("If you are sure you are finished with the application, click "Submit Application". " \
|
18
|
-
"After you submit your application, you will not be able to edit your answers in your " \
|
19
|
-
"application, but you will be able to change your your personal information, your " \
|
20
|
-
"school information, and your reference information as necessary.") %></p>
|
21
|
-
|
22
|
-
<div id="application_errors">
|
23
|
-
<%= render partial: "errors"%>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<%= hidden_field_tag "submit_to", submit_fe_application_submit_page_path(@application) %>
|
27
|
-
<div id="submit_message" class="validation-advice" style="display: none;"></div>
|
28
|
-
<p class="buttons"><%= submit_tag(_("Submit Application")) %></p>
|
29
|
-
<% end -%>
|
30
|
-
</div>
|
31
|
-
|
32
|
-
<% end -%>
|
33
|
-
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
page.replace_html 'application_errors', partial: 'errors', locals: {application: @application}
|