Changeset 598 in tmcsimulator for branches/LCSv1/controllers/default.py
- Timestamp:
- 03/25/2020 01:47:16 PM (6 years ago)
- File:
-
- 1 edited
-
branches/LCSv1/controllers/default.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/LCSv1/controllers/default.py
r597 r598 5 5 # Show the login page 6 6 def index(): 7 form = FORM(LABEL('Username:',_for='username', _class="label "),8 INPUT(_name='username', _size='10'),BR(),9 INPUT(_type='submit', _class="submit-button btn btn-primary"))7 form = FORM(LABEL('Username:',_for='username', _class="label username-label"), 8 INPUT(_name='username', _size='15', _style="font-size: 18px;"), BR(), 9 INPUT(_type='submit',_value="Log in", _class=" btn btn-primary", _style="margin-top: 3%;")) 10 10 if form.process().accepted: 11 11 # Put the username entry into the session variable … … 29 29 # Display a search form 30 30 def search(): 31 form = FORM(LABEL('ClosureID/Log:',_for='closureid', _class="label"), INPUT(_name='closureid',_size='7'),INPUT(_name='lognum',_size='3'),XML(' '), LABEL('Route: ',_for='route', _class="label"), SELECT(hwys,_name='route'), XML(' '), LABEL('Direction: ',_for='direction', _class="label"), SELECT(hwyDirections,_name='direction'), BR(),BR(),LABEL('Dates:',_for='startdate', _class="label") ,INPUT(_name='startdate',_class='date'), XML(' '), LABEL(' to:',_for='enddate', _class="label"), INPUT(_name='enddate',_class='date'),BR(),BR(),INPUT(_type='submit', _class="submit-button btn btn-primary")) 31 form = FORM(LABEL('ClosureID/Log:',_for='closureid', _class="label"), 32 INPUT(_name='closureid',_size='7', _style="margin-right: 5px;"), 33 INPUT(_name='lognum',_size='3'), 34 XML(' '), 35 LABEL('Route: ',_for='route', _class="label"), 36 SELECT(hwys,_name='route dropdown'), XML(' '), 37 LABEL('Direction: ',_for='direction', _class="label"), 38 SELECT(hwyDirections,_name='direction'), BR(),BR(), 39 LABEL('Dates:',_for='startdate', _class="label"), 40 INPUT(_name='startdate',_class='date'), 41 XML(' '), 42 LABEL(' to:',_for='enddate', _class="label"), 43 INPUT(_name='enddate',_class='date'),BR(), 44 INPUT(_value="Search", _type='submit', _class="btn btn-primary btn-default", _style="margin: 7% 45% 2% 40%;")) 32 45 if form.process().accepted: 33 46 # Put the form fields into the session variables
Note: See TracChangeset
for help on using the changeset viewer.
