TechnologyRediscovery / cogconnect

Municipal government code enforcement and occupancy permitting web-app system
https://cogconnect.net
GNU General Public License v3.0
1 stars 1 forks source link

Upgrade code viewer and code set builder #29

Open edarsow opened 5 years ago

edarsow commented 5 years ago

Municipal code is organized into a codesource, such as IPMC 2015. A record in the codeelement table becomes a CodeElement object in Java. A CodeSource object contains a list of CodeElements. EnforcableCodeElement objects contain their own CodeElement object and then a set of member variables that define how a particular municipality enforces that element in their own town.

The page

/tcvce/restricted/cogstaff/code/codeSetManage.xhtml

Allows users to add CodeElements from any source to their CodeSet. When they do this, Because this was written first in the development of the system, it does not use any dialogs nor does it use any AJAX. We want the user to get a dialog to add a new element or multiple elements to their codeset at the same time.

There is currently no way to edit enforcability data for a codesetelement on this page. We want a dialog box on this page for editing enforcability data on a single codesetelement. Right now, that form exists, but it lives in

tcvce/restricted/cogstaff/code/codeSetElementManage.xhtml

Please move that editing capability to codeSetManage.xhtml and bake it into a dialog box.

There is also a really old page called

/tcvce/restricted/cogstaff/code/codeSourceManage.xhtml

Which allows for adding and editing codesource info. Since adding a codesource is so rare, we don't really need to update this unless you want to.

Design ideas You may want to create a two-column layout like the one used on checklistbuilder. The user could see a list of all codesetelements in the left column, click on them, and their individual attributes appear and can be edited on the right. This is like we use for persons.xhtml and cecases.xhtml and inspection.xhtml

Ultimately we want to combined all pages that related to codeelements into one page because codeelements are used in codeenforcement and occupancy and many other contexts.