2p2r / velobs_web

Application web permettant aux cyclistes de signaler les problèmes sur les aménagements cyclables.
GNU General Public License v3.0
22 stars 14 forks source link

a better management of logic with priorities #156

Closed gerald2545 closed 6 years ago

gerald2545 commented 6 years ago

the id of priorities are hard coded in the source to decide to display or not observations, according to th e role of the connected user.. try to find a way to configure that in key.php

gerald2545 commented 6 years ago

ALTER TABLE priorite ADD non_visible_par_collectivite BOOLEAN NOT NULL DEFAULT FALSE AFTER lib_priorite;

gerald2545 commented 6 years ago

ALTER TABLE priorite ADD non_visible_par_public BOOLEAN NOT NULL DEFAULT FALSE AFTER non_visible_par_collectivite;

gerald2545 commented 6 years ago

configuration done in the database, store the email subjects and bodies of each priority : ALTER TABLE priorite ADD priorite_sujet_email TEXT NOT NULL AFTER non_visible_par_public, ADD priorite_corps_email TEXT NOT NULL AFTER priorite_sujet_email;

gerald2545 commented 6 years ago

ALTER TABLE priorite ADD besoin_commentaire_association BOOLEAN NOT NULL DEFAULT FALSE AFTER priorite_corps_email;

gerald2545 commented 6 years ago

add the management of the informations linked to priorities in the admin interface

gerald2545 commented 6 years ago

no more hard coded id_priorite used. change ths install.sql file and the upgrade procedure in the wiki