Changes between Version 5 and Version 6 of UserGuidelines/SAMBRO/Implement/CAPTemplate


Ignore:
Timestamp:
02/16/16 07:40:55 (9 years ago)
Author:
Biplov Bhandari
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserGuidelines/SAMBRO/Implement/CAPTemplate

    v5 v6  
    1717|| 5. || After you fill out necessary information and click on '''Save''' button at the bottom of the form I mentioned above, you can now see one extra tab ['''''Information template''''']. Now go to the '''''Information template''''' tab and begin to fill the information.[[br]]To add information, you can see '''Add alert information''' on the right side of your screen. A form appears. Now you can begin to add information to the alert. Refer the image on the side. || [[Image(http://i.imgur.com/Fsm78Xw.png)]] ||
    1818|| 5. || After you fill out necessary information and click on '''Save''' button at the bottom of the form I mentioned above, you can now see one extra tab ['''''Information template''''']. Now go to the '''''Information template''''' tab and begin to fill the information.[[br]]To add information, you can see '''Add alert information''' on the right side of your screen. A form appears. Now you can begin to add information to the alert. Refer the image on the side. || [[Image(http://i.imgur.com/Fsm78Xw.png)]] ||
     19
     20== Importing/ Prepopulating Multi Language Alert Template ==
     21You can prepopulate the multi-language template into the system or if your site is already live, you can import the multi-language.
     22
     231. First start by importing Alert. In the browser, go to /eden/cap/alert/import. You can download the template and use that to prepare the data.[[BR]]
     24The column name - [[BR]]
     25'''Template Title''' (does exactly what it says),[[BR]]
     26'''Identifier''' (you need to remember this because we use this identifier to link to the info segment which you will see below [of course, the identifier for the actual alert is not this one so don't be afraid ;-)]),[[BR]]
     27'''Scope''' (is one of ''''Public, Restricted or Private'''' : take care of the match case as this will go into database),[[BR]]
     28'''Restriction''' (if Scope=Restricted, use this to denote who is the restriction scope audience),[[BR]]
     29'''Recipients''' (use list of strings eg ''''["Coast Guard", "Public", "Local Officials"]'''' to fill the value in this field)[[BR]]
     30'''Note'''' (free text that gives in the purpose or the significance of the message)
     31'''Incidents'''(list of strings as Recipients. The list of possible values that can come in are [https://github.com/flavour/eden/blob/master/modules/s3db/cap.py#L103 here]) - value on the left side of the colon (eg. "civil.volunteerRequest", "civil.publicEvent" etc) OR on [https://github.com/flavour/eden/blob/master/modules/s3db/cap.py this] page, search for '''''cap_incident_type_opts = {''''' and you will find them.
     32 
     33|| 5. || After you fill out necessary information and click on '''Save''' button at the bottom of the form I mentioned above, you can now see one extra tab ['''''Information template''''']. Now go to the '''''Information template''''' tab and begin to fill the information.[[br]]To add information, you can see '''Add alert information''' on the right side of your screen. A form appears. Now you can begin to add information to the alert. Refer the image on the side. || [[Image(http://i.imgur.com/Fsm78Xw.png)]] ||