Changeset 598 in tmcsimulator for branches/LCSv1/controllers/default.py


Ignore:
Timestamp:
03/25/2020 01:47:16 PM (6 years ago)
Author:
liquan
Message:

Styled index.html (login page), home.html and search.html of LCSv1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LCSv1/controllers/default.py

    r597 r598  
    55# Show the login page 
    66def 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%;")) 
    1010    if form.process().accepted: 
    1111        # Put the username entry into the session variable 
     
    2929# Display a search form 
    3030def 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%;")) 
    3245    if form.process().accepted: 
    3346        # Put the form fields into the session variables 
Note: See TracChangeset for help on using the changeset viewer.