edit-task
Home
Up
Delete
Task Name:
Task Description:
PAGE to add a new 'location' record to the PLACES app
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">PAGE - add/location</h1> <h2>[WHAT]</h2> <ol> <li>[ def ] page displays a form with all the feilds required to create a NEW 'location' record for the PLACES app</li> <li>[ args ] [id_sector, name_sector, ] takes the id of the sector that the location will belong to, OPTIONALLY take the sector, map and atlas names </li> <ol> <li>( if no parent(tgr id) is passed in then selects are generated on the form enabling the user to select the desired parent sector, )</li> </ol></ol> <h2>[WHY]</h2> <ol> <li>] enables user to add a new 'location' record to the db, a 'location' record includes fields for all of the following</li> <ol> <li>name location -</li> <li>description location -</li> <li>parent id -</li> <li>owner -</li> <li>street address1</li> <li>street address2 </li> <li>city </li> <li>country </li> <li>state </li> <li>zip or postal code </li> <li>priority - </li> <li>status - </li> <li>photo - </li> <li>content-format - </li> <li>content - </li> <li>telephone</li> <li>url</li> </ol></ol> <h2>[WHERE called from ...]</h2> <ol> <li>] PAGE */* MENU MAIN - Create/Places -> add/location</li> <li>] PAGE view/sectors - LINK - "add a sector to map" - for each map listed</li> <li>] PAGE view/sectors - TOOLBAR.Button - "+" - adds a new sector record to the current map</li> <li>] PAGE view/location - TOOLBAR.Button - "+" - adds a new location record to the current sector</li> </ol> <h2>[WHEN]</h2> <ol> <li>] user wants to add a new 'location' record to an existing 'sector'</li> </ol> <h2>[EXAMPLE]</h2> <ol> <li>] <a href="/add/location?id=102" target="_blank">http://sospep.com/add/location?id=102</a></li> </ol> <h2>[HOW-TO]</h2> <ol> <li><strong>] use the main menu, "create Places" option to open the add new location page (OR see option 2)</strong></li> <ol> <li>] select the desired 'sector' for the new 'location' using the select boxes on the page</li> <li>] complete the required feilds in the 'add location' form</li> <li>] submit the form</li> </ol> <li><strong>] navigate to the 'sector' where you wish to add the new 'location' record, </strong></li> <ol> <li>] open the 'add location' page</li> <li>] complete the required feilds in the 'add location' form</li> <li>] submit the form</li> </ol></ol> <h2>[REFERENCE]</h2> <ol> <li>x] add/location -v-001 - NEW VERSION - 1958(local)] #1463 OOP implementation started ] #491 new navHeader ] #1464 REST architecture x] 439 default location record x] 789 photo </li> <li>x] add/location <a href="/view/task?id=2134" target="_blank">-v-002</a> - NEW VERSION - ] # default record ] replaced db qry code ] generated setTextArea ] new field owner, ] add sector obj to get/display 'path' ] </li> <li>x] add/location <a href="/view/task?id=3428" target="_blank">-v-003</a> - NEW VERSION - ] Cleanup ] ADD url feild, ] ADD telephone field,</li> <li>x] add/location <a href="/view/task?id=5179" target="_blank">-v-004</a> - NEW VERSION - ] Cleanup Greenspace ]</li> </ol><hr /> <h1 style="text-align: center;">developer implementation</h1> <h2>[process]</h2> <ol> <li> </li> </ol> <h2>[notes]</h2> <ol> <li>PUBLISHED copy of overview article description in BK sospep-help, CH = sospep-places/how-to </li> <ol> <li>x] # 2013-11-12</li> </ol></ol> <h2>[by_date]</h2> <ol> <li>[YYYY-mm-DD]</li> </ol><hr /> <h1 style="text-align: center;">status</h1> <h2>[current]</h2> <ol> <li> ] </li> </ol> <h2>[next]</h2> <ol> <li>]</li> </ol> <p> </p>