Changeset 617 in tmcsimulator for branches/LCSv1/controllers
- Timestamp:
- 07/10/2020 02:16:04 PM (6 years ago)
- Location:
- branches/LCSv1/controllers
- Files:
-
- 2 edited
-
default.py (modified) (1 diff)
-
default.py.bak (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/LCSv1/controllers/default.py
r615 r617 99 99 # Each row contains a form with two buttons and columns with fields from database 100 100 multiform.append(TR(TD( 101 XML("<button class='submit-button' onclick= showPopup(\'"),statusfields,XML("\')>View History</button>"),BR(),101 XML("<button class='submit-button' onclick=\"showPopup(\'"),statusfields,XML("\')\">View History</button>"),BR(), 102 102 FORM( 103 103 INPUT(_type='submit',_name='btn2',_value='Show Status Form',_class="submit-button" ), -
branches/LCSv1/controllers/default.py.bak
r612 r617 56 56 def special_validation(form): 57 57 # Error if a lognum was given and no closure id 58 if (len(form.vars.lognum) > 0 and len(form.vars.closureid = 0)):58 if (len(form.vars.lognum) > 0 and len(form.vars.closureid) == 0): 59 59 form.errors.lognum = 'Must provide a closureID when specifying a log number' 60 60 # Show the item that was found in the search … … 79 79 msg += "Start date = " + session.startdate 80 80 if (len(session.enddate) != 0): 81 query = query & (db.closures. startdate <= session.enddate)81 query = query & (db.closures.enddate <= session.enddate) 82 82 msg += "End date = " + session.enddate 83 83 … … 99 99 # Each row contains a form with two buttons and columns with fields from database 100 100 multiform.append(TR(TD( 101 XML("<button class='submit-button' onclick=showPopup(\ '"),statusfields,XML("\')>View History</button>"),BR(),101 XML("<button class='submit-button' onclick=showPopup(\""),statusfields,XML("\")>View History</button>"),BR(), 102 102 FORM( 103 103 INPUT(_type='submit',_name='btn2',_value='Show Status Form',_class="submit-button" ),
Note: See TracChangeset
for help on using the changeset viewer.
