Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KG/JW - Survey Response Email Link Broken #1084

Merged
merged 1 commit into from
Aug 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
= option.content
- else
.col-lg-1.text-center
= check_box_tag :content_checkbox, '', multiple_select_formatter(qr.object.content).include?(option.content), disabled: true, multiple: true
= check_box_tag :content_checkbox, '', multiple_select_formatter(qr.content).include?(option.content), disabled: true, multiple: true
= option.content
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.country_select :content, { priority_countries: ['US'], include_blank: true }, { class: 'form-control selectpicker option' }
- else
= country_select :content, :country, { priority_countries: ['US'], include_blank: true, selected: qr.object.content }, { class: 'form-control selectpicker option', disabled: true }
= country_select :content, :country, { priority_countries: ['US'], include_blank: true, selected: qr.content }, { class: 'form-control selectpicker option', disabled: true }
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.text_field :content, class: 'form-control', maxlength: 255
- else
= text_field_tag :content, qr.object.content, class: 'form-control', disabled: true
= text_field_tag :content, qr.content, class: 'form-control', disabled: true
%span.input-group-addon
%span.glyphicon.glyphicon-calendar
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.select :content, options_from_collection_for_select(question.options, 'content', 'content'), { include_blank: true }, { class: 'form-control selectpicker option' }
- else
= select_tag :content, options_from_collection_for_select(qr.question.options, 'content', 'content', qr.object.content), include_blank: true, class: 'form-control selectpicker option', disabled: true
= select_tag :content, options_from_collection_for_select(qr.question.options, 'content', 'content', qr.content), include_blank: true, class: 'form-control selectpicker option', disabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.email_field :content, class: 'form-control option'
- else
= email_field_tag :content, qr.object.content, class: 'form-control option', disabled: true
= email_field_tag :content, qr.content, class: 'form-control option', disabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.radio_button :content, option.content
- else
= radio_button_tag :content_likert, '', qr.object.content == option.content, disabled: true
= radio_button_tag :content_likert, '', qr.content == option.content, disabled: true
.col-sm-12.text-center.no-padding
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.label :content, option.content, class: "radio-inline option no-padding", data: { question_id: question.id, option_id: option.id }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.select :content, options_from_collection_for_select(question.options, 'content', 'content'), { include_blank: true }, { class: 'form-control selectpicker option', multiple: true }
- else
= select_tag :content, options_from_collection_for_select(qr.question.options, 'content', 'content', multiple_select_formatter(qr.object.content)), include_blank: true, class: 'form-control selectpicker option', disabled: true, multiple: true
= select_tag :content, options_from_collection_for_select(qr.question.options, 'content', 'content', multiple_select_formatter(qr.content)), include_blank: true, class: 'form-control selectpicker option', disabled: true, multiple: true
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.number_field :content, class: 'form-control option'
- else
= number_field_tag :content, qr.object.content, class: 'form-control option', disabled: true
= number_field_tag :content, qr.content, class: 'form-control option', disabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.telephone_field :content, class: 'form-control option'
- else
= telephone_field_tag :content, qr.object.content, class: 'form-control option', disabled: true
= telephone_field_tag :content, qr.content, class: 'form-control option', disabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
= option.content
- else
.col-lg-1.text-center
= radio_button_tag :content_radio, '', qr.object.content == option.content, disabled: true
= radio_button_tag :content_radio, '', qr.content == option.content, disabled: true
= option.content
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.select :content, options_for_select(us_states), { include_blank: true }, { class: 'form-control selectpicker option' }
- else
= select_tag :content, options_for_select(us_states, qr.object.content), include_blank: true, class: 'form-control selectpicker option', disabled: true
= select_tag :content, options_for_select(us_states, qr.content), include_blank: true, class: 'form-control selectpicker option', disabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.text_field :content, class: 'form-control option', maxlength: 255
- else
= text_field_tag :content, qr.object.content, class: 'form-control option', disabled: true
= text_field_tag :content, qr.content, class: 'form-control option', disabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.text_area :content, class: 'form-control option', maxlength: 255
- else
= text_area_tag :content, qr.object.content, class: 'form-control option', disabled: true
= text_area_tag :content, qr.content, class: 'form-control option', disabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.text_field :content, class: 'form-control', maxlength: 255
- else
= text_field_tag :content, qr.object.content, class: 'form-control', disabled: true
= text_field_tag :content, qr.content, class: 'form-control', disabled: true
%span.input-group-addon
%span.glyphicon.glyphicon-time
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
= option.content
- else
.col-lg-6.no-padding.text-center.option{ data: { question_id: question.id, option_id: option.id } }
= radio_button_tag :content_yes_no, option.content.downcase, qr.object.content == option.content.downcase, disabled: true
= radio_button_tag :content_yes_no, option.content.downcase, qr.content == option.content.downcase, disabled: true
= option.content
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
- if ['new', 'edit', 'preview'].include?(action_name)
= qr.text_field :content, class: 'form-control option', maxlength: 255
- else
= text_field_tag :content, qr.object.content, class: 'form-control option', disabled: true
= text_field_tag :content, qr.content, class: 'form-control option', disabled: true