Skip to content

[TAGS] added tag selection to compost creation and edition

Ghost User requested to merge development into staging

Goals

Add tag selection to compost C & E

Changes

  • app/controllers/composts_controller.rb : added district and composition tags to compost strong params
  • app/views/composts/_form.html.erb : added district and composition input
  • app/views/composts/show.html.erb : changed district and composition display

Tests

  • compost show view displays district and composition tags : PASSED
  • clicking district or tags leads to relevant results page : PASSED
  • compost creation : selected district and composition are applied to tags lists : PASSED
  • compost edition : selected district and composition are applied to tags lists : PASSED
  • compost edition : empty selection does not change current tag list : PASSED

Side notes

  • see with front team to make it look better (dropdown selection, nicer checkboxes ?)

Merge request reports