Boostrapped the create plan page. DMPRoadmap/roadmap#632
- Converted JS for page over to ES6
- Added stub test and fixture
- Converted jquery autocomplete combobox to Bootstrap and ES6

TODO:
- Add in AJAX calls to retrieve template options based on org/funder selections
- Fix issue with the hidden id field being updated when combobox item is selected
- Finish tests for the autoComplete.js

Bootstrapped Plan Writing and Download pages (#88)

* DMPRoadmap/roadmap#issue567
* DMPRoadmap/roadmap#issue561

- Bootstrapped the Write Plan page accordions
- Rebased with latest from CDL-MVP

bootstrapped the phases accordion DMPRoadmap/roadmap#567

added es6 function to provide expand/collapse all functionality. bootstrapped several accordions DMPRoadmap/roadmap#567

finished Bootstrapping write plan accordions DMPRoadmap/roadmap#567

fixed linter issue DMPRoadmap/roadmap#issue567

fixed linter issue

* Bootstrapping and ES6 of the Plan Download page DMPRoadmap/roadmap#561.
- Renamed show_export.html.erb to download.html.erb (updated controller, policy, links and route)
- Renamed export_settings.js to download.js and dropped unused auto-save JS (no longer a part of wireframes)
- Bootstrapped page html

changed name of show_export to download to match UI terminology. Bootstrapped download page

Added ES6 JS for download page and made tweaks to the format

* DMPRoadmap/roadmap#562
edit phases using plan navigation layout

bootstrap plan progress. bootstrap sections header. added togglable section icons for expand/collapse

answers_controller returning a JSON with partial views rendered. Split question types in different partials. Started new answers/status.js

Rename view to edit_plan_answers.html.erb. Load tinymce through ES6 for question answers. Delete old status.js ES5. Added timeago to vendor

fixed broken test regarding answers_controller

* fixed linter issue with CRLF

* fixed tests broken by name change from show_export to download.

added JS tests for expandCollapseAll accordion functionality

fixed linter complaint about double vs single quotes in test

removed a few empty and unused views. removed old es5 js for create plan page. bootstrapped the create plan page

boostrapped the create plan page. converted jquery autocomplete to ES6 and bootstrap. started adding JS tests

removed unfinished tests for autocomplete, will finihs after demo. added comments to autoComplete.js
dev
1 parent a72ca6c commit 3d10b586d476f8d7a30708fa3dfffb62906bc40f
@Brian Riley Brian Riley authored on 12 Sep 2017
briley committed on 12 Sep 2017
Showing 46 changed files
View
app/controllers/answers_controller.rb
View
app/controllers/plans_controller.rb
View
app/controllers/settings/plans_controller.rb
View
app/policies/plan_policy.rb
View
app/views/answers/_new_edit.html.erb
View
app/views/answers/_status.html.erb
View
app/views/answers/update.js.erb 100644 → 0
View
app/views/layouts/_es5_scripts.html.erb
View
app/views/phases/_edit_plan_answers.html.erb 0 → 100644
View
app/views/phases/edit.html.erb
View
app/views/plans/_download.html.erb 100644 → 0
View
app/views/plans/_download_form.html.erb 0 → 100644
View
app/views/plans/_progress.html.erb
View
app/views/plans/_share.html.erb 100644 → 0
View
app/views/plans/_share_form.html.erb
View
app/views/plans/download.html.erb 0 → 100644
View
app/views/plans/index.html.erb
View
app/views/plans/new.html.erb
View
app/views/plans/show_export.html.erb 100644 → 0
View
app/views/questions/_new_edit_question_option_based.html.erb 0 → 100644
View
app/views/questions/_new_edit_question_textarea.html.erb 0 → 100644
View
app/views/questions/_new_edit_question_textfield.html.erb 0 → 100644
View
app/views/sections/_progress.html.erb
View
app/views/shared/_accessible_combobox.html.erb
View
app/views/shared/_plan_navigation.html.erb
View
config/routes.rb
View
lib/assets/javascripts/application.js
View
lib/assets/javascripts/constants.js
View
lib/assets/javascripts/spec/autoCompleteSpec.js 0 → 100644
View
lib/assets/javascripts/spec/expandCollapseAllSpec.js 0 → 100644
View
lib/assets/javascripts/spec/fixtures/accordion.html 0 → 100644
View
lib/assets/javascripts/spec/fixtures/autoComplete.html 0 → 100644
View
lib/assets/javascripts/utils/ariatiseForm.js
View
lib/assets/javascripts/utils/autoComplete.js 0 → 100644
View
lib/assets/javascripts/views/answers/status.js
View
lib/assets/javascripts/views/phases/edit.js
View
lib/assets/javascripts/views/plans/download.js 0 → 100644
View
lib/assets/javascripts/views/plans/export_configure.js 100644 → 0
View
lib/assets/javascripts/views/plans/new.js
View
lib/assets/javascripts/views/plans/share.js
View
lib/assets/package-lock.json
View
lib/assets/stylesheets/application.scss
View
lib/assets/webpack.config.js
View
test/functional/answers_controller_test.rb
View
test/functional/plans_controller_test.rb
View
test/integration/answer_locking_test.rb