Changeset 624 in tmcsimulator for branches/LCSv2/controllers/default.py
- Timestamp:
- 08/29/2020 09:03:00 AM (6 years ago)
- File:
-
- 1 edited
-
branches/LCSv2/controllers/default.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/LCSv2/controllers/default.py
r623 r624 214 214 supervisors.append(row.radiocallnum + ' ' + row.name) 215 215 crew = [''] # List of names for the dropdown box 216 crewlookup = [] 216 217 # Obtain all the crew names from the database 217 218 for row in db().select(db.crew.ALL): 218 219 crew.append(row.radiocallnum + ' ' + row.name) 220 crewlookup.append(row.radiocallnum + ' ' + row.name) 219 221 # Build the list of street locations and a hidden cross street lookup table 220 222 streets = [''] … … 263 265 TD(LABEL('Field Rep')) 264 266 ), 265 TR(TD(SELECT(supervisors,_name='supervisor', requires=IS_LENGTH(minsize=1,error_message='supervisor cannot be empty'))),266 TD(SELECT(crew,_name='fieldrep' )),267 TR(TD(SELECT(supervisors,_name='supervisor', _id='supervisorcombo', _onchange='supervisorchanged()', requires=IS_LENGTH(minsize=1,error_message='supervisor cannot be empty'))), 268 TD(SELECT(crew,_name='fieldrep',_id='fieldrep')), 267 269 TD(XML(" ")), 268 270 TD('Is this an existing incident?', … … 279 281 TR(TD(INPUT(_name='meeting', _size='25')),TD(INPUT(_name='reason',_size='25')),TD(INPUT(_name='remarks',_size='25'))) ), BR(), 280 282 INPUT(_type='submit',_value='Submit Closure', _class="btn btn-primary btn-default", _style="margin: 2% 45% 2% 40%;"), 281 XML('\n'),SELECT(streetlookup,_name='stlookup', _id='stlookup', _class='hideme')) 283 XML('\n'),SELECT(streetlookup,_name='stlookup', _id='stlookup', _class='hideme'), 284 SELECT(crewlookup,_name='crewlookup', _id='crewlookup', _class='hideme')) 282 285 283 286 if form.process(onvalidation=validate_existing_id).accepted:
Note: See TracChangeset
for help on using the changeset viewer.
