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 - Survey/Form Builder Merge #1245

Merged
merged 85 commits into from
Feb 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
d5d3697
update survey/questionnaire models / specs
Oct 30, 2017
eeb6213
more model updates for surveys
Oct 31, 2017
bb58586
move surveys to catalog via link
Oct 31, 2017
22bab20
remove additional details links from catalog forms
Oct 31, 2017
9ba732c
begin basic surveys view
Oct 31, 2017
0642dd1
No longer need this in dashboard.
jleonardw9 Nov 6, 2017
3d496ff
Teasing questionnaires and submissions out of the sub service request…
jleonardw9 Nov 7, 2017
090e055
add more validations for survey, remove version=0
Nov 8, 2017
b589f9a
Merge branch 'kg-survey_form_builder_merge' of https://github.com/spa…
Nov 8, 2017
df0ef2e
Making survey changes in sr model.
jleonardw9 Nov 9, 2017
8783069
fix questionnaire to survey migration
Nov 10, 2017
f7497a7
Merge branch 'kg-survey_form_builder_merge' of https://github.com/spa…
Nov 10, 2017
359368c
add basic surveys / forms tables
Nov 10, 2017
1b55266
updating surveys / forms modal and add search functionality
Dec 1, 2017
f73ee86
form search functionality + consolidating organization hierarchy
Dec 6, 2017
e84b47f
add process_ssrs filter to form search
Dec 6, 2017
6fedee7
touching up form search
Dec 6, 2017
cdaefba
surveyable search controller specs
Dec 18, 2017
ee59c1e
multiple small front-end changes for survey builder
Dec 18, 2017
31e87a8
updating survey validations and specs
Dec 18, 2017
c26d080
more survey builder UI cleanup and optimization
Dec 18, 2017
906ae2b
fixing activating / disabling surveys front-end
Dec 18, 2017
db23d9a
missing schema values
Dec 19, 2017
4e0157b
updating surveyor feature specs / fixed several small bugs
Dec 19, 2017
ed9d01a
fix response code + finishing surveyor feature specs
Dec 19, 2017
8791dce
merge conflicts
Dec 19, 2017
05f9d4b
fix bug that prevented forms from being created
Dec 19, 2017
128e369
change surveyable_type to only be Organization, not subclasses
Dec 20, 2017
10e7d97
fix survey delete bug and bad spec
Jan 9, 2018
e4a0cbc
undo old response controller changes and fix surveys_complete method
Jan 9, 2018
e9f0a1f
Merge branch 'v3.1.0' into kg-survey_form_builder_merge
Jan 9, 2018
5bf63f7
step 5 forms refactor early stages - shows forms, no functionality
Jan 10, 2018
16c746c
removing some, not all, additional details views
Jan 10, 2018
9ccf4fb
moving some survey javascript to ruby helpers to simplify
Jan 10, 2018
eac75ff
syntax error in form helper
Jan 10, 2018
7cef257
wth - (SPARCDashboard) Add Push Type Column to Epic Queue Page Past Tab
wtholt Jan 16, 2018
77e75d0
wth - (SPARCDashboard) Tool Tip Style Variation
wtholt Jan 16, 2018
b407522
responses #new refactors for forms
Jan 16, 2018
3643fc0
adding more response functionality, touching up form in refactors
Jan 16, 2018
f0a170c
fix bug that reloaded forms table when previewing surveys
Jan 16, 2018
9ff20c1
removed Add a Note button for LineItemVisits and LineItem Notes on th…
jwiel86 Jan 16, 2018
122db2a
wth - (SPARCRequest) Step 6: Adjust Table Display for Consistency
wtholt Jan 17, 2018
5ba37e0
edit/update responses and validations cleanup
Jan 17, 2018
6a6369c
removing unused additional details code
Jan 25, 2018
c84ef9a
implementing dashboard form functionality + cleanup
Jan 25, 2018
f789c85
Correcting logic for prevention of duplicated user rights.
jleonardw9 Jan 26, 2018
573e9b0
Merge pull request #1218 from sparc-request/wth-push-type-column
Stuart-Johnson Jan 29, 2018
a271676
Merge pull request #1220 from sparc-request/wth-tooltip-variation
Stuart-Johnson Jan 29, 2018
2069d8b
Merge pull request #1221 from sparc-request/jm-remove-add-note-button
Stuart-Johnson Jan 29, 2018
bfe4330
Merge pull request #1223 from sparc-request/wth-adjust-table-display
Stuart-Johnson Jan 29, 2018
26b7501
Merge pull request #1227 from sparc-request/jl-duplicated-user-rights…
Stuart-Johnson Jan 29, 2018
33a853a
fix question response nilclass.content bug
Jan 29, 2018
a8fd480
fixing duplicate orgs in authorized_for_identity scope
Jan 29, 2018
1f156c0
Merge branch 'master' into v3.2.0
Stuart-Johnson Jan 30, 2018
81c8ee1
remove forms from associated surveys dropdown [#154739723]
Jan 30, 2018
b55b3f8
fixing several form bugs - dashboard missing css/js, searching by acc…
Jan 30, 2018
7cf50d6
associate new surveys to identity [#154743223]
Jan 30, 2018
86c0cc1
fix survey destroy + naming improvements
Jan 30, 2018
b8bea69
removed missed additional details layout
Jan 30, 2018
8ba931d
fixed bug displaying multiple questions when form/survey was changed
Jan 30, 2018
292cd9e
finishing model specs
Jan 30, 2018
6e1960c
updater surveyor controller specs
Feb 1, 2018
9890943
merge conflicts
Feb 1, 2018
8a625a8
forms controller specs
Feb 1, 2018
aea17cb
fixing response modals
Feb 1, 2018
3fc63fe
adding review page forms
Feb 13, 2018
044c683
add forms new modal
Feb 13, 2018
73d2e94
add back us_states helper
Feb 13, 2018
118a7fa
fix review step system satisfaction survey popup
Feb 13, 2018
3c32422
surveyor feature spec fixes
Feb 13, 2018
15db14b
fix review variable bug on forms section
Feb 13, 2018
6409b02
form+survey review specs
Feb 13, 2018
0291e52
unscope surveys in migration to prevent model inconsistency when fixi…
Feb 13, 2018
d75e3eb
document management form specs
Feb 13, 2018
0064b45
remove additional details view specs
Feb 13, 2018
cf5a85f
fix dropdowna nd multiple dropdown partials
Feb 13, 2018
4055b1f
fixing remaining broken specs
Feb 13, 2018
c6af7ea
dashboard form specs
Feb 13, 2018
f35f2e9
finishing existing feature spec fixes
Feb 13, 2018
878ef4a
fixing all_forms_completed?_spec to prevent duplicate forms from rand…
Feb 15, 2018
e7d5641
adding form permission restrictions and allowing overlord access
Feb 15, 2018
61df758
removing more old additional details code that was missed
Feb 15, 2018
4480bea
move question types to survey model as constant
Feb 15, 2018
d25f595
rename response modals for clarity
Feb 15, 2018
a6779f8
remove references to removed precompiled javascript files
Feb 16, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ gem 'json', '>= 1.8'
gem 'letter_opener'
gem 'momentjs-rails', '>= 2.8.1'
gem 'mysql2', '~> 0.3.18'
gem 'nested_form'
gem 'nested_form_fields'
gem 'newrelic_rpm'
gem 'nokogiri'
gem 'nori'
Expand Down
7 changes: 0 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,6 @@ GEM
multi_json (1.12.2)
multi_xml (0.6.0)
mysql2 (0.3.21)
nested_form (0.3.2)
nested_form_fields (0.8.2)
coffee-rails (>= 3.2.1)
jquery-rails
rails (>= 3.2.0)
net-ldap (0.16.1)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
Expand Down Expand Up @@ -614,8 +609,6 @@ DEPENDENCIES
letter_opener
momentjs-rails (>= 2.8.1)
mysql2 (~> 0.3.18)
nested_form
nested_form_fields
net-ldap (~> 0.16.0)
newrelic_rpm
nokogiri
Expand Down
53 changes: 0 additions & 53 deletions app/assets/javascripts/additional_details/application.js

This file was deleted.

65 changes: 0 additions & 65 deletions app/assets/javascripts/additional_details/item_options.coffee

This file was deleted.

37 changes: 0 additions & 37 deletions app/assets/javascripts/additional_details/view_preview.coffee

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
//= require bootstrap-datetimepicker
//= require jquery_ujs
//= require jquery.remotipart
//= require jquery_nested_form
//= require jquery.cookie
//= require jquery.form
//= require editable/bootstrap-editable
Expand Down
6 changes: 4 additions & 2 deletions app/assets/javascripts/catalog.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ $(document).ready ->
limit: 100,
templates: {
suggestion: Handlebars.compile('<button class="text-left" data-container="body" data-placement="right" data-toggle="tooltip" data-animation="false" title="{{description}}">
<span><strong class="{{inst_css_class}}">{{institution}}</strong>{{parents}}</span><br>
<strong>{{{parents}}}</strong><br>
<span><strong>Service: {{label}}</strong></span><br>
<span><strong>Abbreviation: {{abbreviation}}</strong></span><br>
<span><strong>CPT Code: {{cpt_code}}</strong></span>
{{#if cpt_code}}
<span><strong>CPT Code: {{cpt_code}}</strong></span>
{{/if}}
</button>')
notFound: '<div class="tt-suggestion">No Results</div>'
}
Expand Down
1 change: 0 additions & 1 deletion app/assets/javascripts/catalog_manager/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
//= require jquery.toastmessage
//= require catalog_manager/jquery.jstree
//= require jquery-ui
//= require jquery_nested_form
//= require catalog_manager/jquery.formatCurrency-1.4.0.min
//= require catalog_manager/catalog
//= require catalog_manager/services
Expand Down
3 changes: 2 additions & 1 deletion app/assets/javascripts/dashboard/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
//= require bootstrap-datetimepicker
//= require jquery_ujs
//= require jquery.remotipart
//= require jquery_nested_form
//= require jquery.cookie
//= require jquery.form
//= require jquery.toastmessage
Expand All @@ -59,6 +58,8 @@
//= require associated_users_form
//= require study_schedule_tabs
//= require subsidy_form
//= require surveyor/responses
//= require surveyor/surveys
//= require dashboard/navbar

window.Sparc = {};
40 changes: 0 additions & 40 deletions app/assets/javascripts/dashboard/create_submission.js.coffee

This file was deleted.

41 changes: 20 additions & 21 deletions app/assets/javascripts/dashboard/protocols.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -148,26 +148,21 @@ $(document).ready ->
$('.service-requests-table').bootstrapTable()
reset_service_requests_handlers()

$(document).on 'change', '.complete-details', ->
$selected_options = $('option:selected', this)

if $selected_options.length > 0
$selected_option = $selected_options.first()
questionnaire_id = $selected_option.data('questionnaire-id')
protocol_id = $selected_option.data('protocol-id')
ssr_id = $selected_option.data('ssr-id')
$this = $(this)

$.ajax
method: 'GET'
url: "/additional_details/submissions/new.js"
data:
protocol_id: protocol_id
ssr_id: ssr_id
questionnaire_id: questionnaire_id
success: ->
$this.selectpicker('deselectAll')
$this.selectpicker('render')
$(document).on 'change', '.complete-forms', ->
$option = $('option:selected', this)
$this = $(this)

$.ajax
method: 'GET'
url: "/surveyor/responses/new.js"
data:
type: $option.data('type')
survey_id: $option.data('survey-id')
respondable_id: $option.data('respondable-id')
respondable_type: $option.data('respondable-type')
success: ->
$this.selectpicker('deselectAll')
$this.selectpicker('render')

reset_service_requests_handlers()
# Protocol Show End
Expand Down Expand Up @@ -201,7 +196,11 @@ $(document).ready ->
url: "/dashboard/protocols.js"
data: data

(exports ? this).reset_service_requests_handlers = ->
(exports ? this).reset_service_requests_handlers = ->
$('.view-consolidated').tooltip()
$('.export-consolidated').tooltip()
$('.coverage-analysis-report').tooltip()

$('.service-requests-table').on 'all.bs.table', ->
#Enable selectpickers
$(this).find('.selectpicker').selectpicker()
39 changes: 0 additions & 39 deletions app/assets/javascripts/dashboard/update_submission.coffee

This file was deleted.

1 change: 1 addition & 0 deletions app/assets/javascripts/document_management.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#= require navigation
#= require cart
#= require forms

$(document).ready ->
$(document).on 'click', '#document-new', ->
Expand Down