Refactor how section ordering is handled (#1837)
* Extract template customizations into own controller * Refactor Template model methods * Fix view logic in draggable sections * Add button for customising phase * Fix rubocop violations in GuidanceService * Rename GuidanceService to GuidancePresenter * Fix bug in phase preview order sections * Refactor preview action/controller code * Fix Section ordering in various views * Fix rubocop violations * Fix bug forcing Phases to be modifiable * Fix broken tests * Update method to check if section is draggable * Extract copy action into its own resource * Extract customization transfers to own controller * Remove redundant routing condition * Fix Rubocop violation issues * Change condition for section draggable * Refactor instance variable in PlansController * Fix broken tests * Add test support for 'de' locale * Fix merge issue in plans controller * Fix broken specs in plan#request_feedback |
---|
|
app/controllers/concerns/template_methods.rb 0 → 100644 |
---|
app/controllers/org_admin/phase_versions_controller.rb 0 → 100644 |
---|
app/controllers/org_admin/phases_controller.rb |
---|
app/controllers/org_admin/sections_controller.rb |
---|
app/controllers/org_admin/template_copies_controller.rb 0 → 100644 |
---|
app/controllers/org_admin/template_customization_transfers_controller.rb 0 → 100644 |
---|
app/controllers/org_admin/template_customizations_controller.rb 0 → 100644 |
---|
app/controllers/org_admin/templates_controller.rb |
---|
app/controllers/plans_controller.rb |
---|
app/helpers/sections_helper.rb |
---|
app/models/plan.rb |
---|
app/models/template.rb |
---|
app/presenters/guidance_presenter.rb 0 → 100644 |
---|
app/services/guidance_service.rb 100644 → 0 |
---|
app/views/org_admin/phases/_phase.html.erb |
---|
app/views/org_admin/phases/container.html.erb |
---|
app/views/org_admin/phases/preview.html.erb |
---|
app/views/org_admin/sections/_section.html.erb |
---|
app/views/org_admin/sections/_section_group.html.erb |
---|
app/views/paginable/templates/_customisable.html.erb |
---|
app/views/paginable/templates/_organisational.html.erb |
---|
app/views/phases/_edit_plan_answers.html.erb |
---|
app/views/phases/_guidances_notes.html.erb |
---|
app/views/phases/_overview.html.erb |
---|
app/views/phases/edit.html.erb |
---|
app/views/public_pages/template_export.docx.erb |
---|
app/views/public_pages/template_export.pdf.erb |
---|
config/application.rb |
---|
config/routes.rb |
---|
lib/assets/javascripts/views/org_admin/phases/new_edit.js |
---|
spec/factories/phases.rb |
---|
spec/factories/templates.rb |
---|
spec/features/annotations/annotations_editing_spec.rb |
---|
spec/models/plan_spec.rb |
---|
spec/support/locales.rb 0 → 100644 |
---|