rubyforgood / voices-of-consent

Open source tracking and inventory management application for nonprofit, Voices of Consent (Ruby for Good 2019)
https://voices-of-consent.herokuapp.com
MIT License
38 stars 82 forks source link

Add dynamic buttons partial to Box lifecycle phases #372

Open maebeale opened 5 years ago

maebeale commented 5 years ago

To walk to the "next" lifecycle phase upon completion of the existing one, there should be dynamic buttons at the bottom of each of those pages (that depend on permissions and availability) to complete, solicit, or exit that phase.

Once a current_user finishes one phase (e.g. Assembly), they should have 3 options:

The Box knows which is the next step (aasm_state field managed via aasm gem and aasm do block in box.rb), so the buttons could be one partial that goes on all the lifecycle /new pages that dynamically renders/calls the right "next" step.

amygori commented 5 years ago

🙋

maebeale commented 5 years ago

FYI, none of the react buttons on /[lifecycle phase]/new currently do anything (in case that part was confusing).

maebeale commented 4 years ago

@amygori hey there! hope all's well!!! we've got a hack night meetup tomorrow eve to help with this project, and this might end up on the radar to tackle -- unless you might have time for this issue within the next week or two?