|== Design ==
|* The Models: The table definitions go are in modules/s3db/cap.py. Place some functions which will help in the creation, sending and receiving of CAP XML files in s3msg module where it might best fit.
| * A detailed description of the data model is here: https://docs.google.com/spreadsheet/ccc?key=0AiLVG3CYfknsdGljMXNQejNWSURnVHZYYnMySERzdHc
| * The module dependency graph is explained here: ['''Tharindu - insert URL to doc''']
|* The GUI
| * index: A map and a table of alerts sortable by the various fields of an alert. Clicking on a row on the table centers the map to the <Area> associated with the alert.
| * profiles:
| * index: View a listing of templates (We should ship some country-specific profiles by default in Eden since this is recommended)
| * edit & create: Editing / creating a profile. This should allow for specification of constraints for each field of the cap message.
| * templates:
| * index: View a listing of all templates grouped by their pertinent profiles.
| * edit & create: Allow users to create templates: This will allow for creating multiple <info> elements with placeholders for canned inputs such as [AREA] [SEVERITY] etc.which will then be substituted to produce text consumable via various media like SMS and IVR
| * create alert: A map with ability for easy input of polygons and circles, A drop-down for picking profiles and templates to use. A way to specify recipients for restricted alerts.
| * Reference and mockups: http://eden.sahanafoundation.org/ticket/1026