Changeset 621 in tmcsimulator for branches/LCSv2/views


Ignore:
Timestamp:
08/19/2020 08:18:24 AM (6 years ago)
Author:
jdalbey
Message:

LCS implement exiting incident UI and javascript

Location:
branches/LCSv2/views/default
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/LCSv2/views/default/results.html

    r619 r621  
    88  lineout += "<table border='1' cellpadding='5'><tr><th>Event</th><th>User</th><th>Req Date</th><th>Status Date</th></tr>" 
    99  // Is there a 1097 status? 
    10   if (fields[3].length > 0) 
     10  if (fields[6].length > 0) 
    1111  { 
    1212      lineout += "<tr>"; 
     
    1818  } 
    1919  // Is there a 1098 status? 
    20   if (fields[9].length > 0) 
     20  if (fields[10].length > 0) 
    2121  { 
    2222      lineout += "<tr>"; 
     
    2828  } 
    2929  // Is there a 1022 status? 
    30   if (fields[13].length > 0) 
     30  if (fields[14].length > 0) 
    3131  { 
    3232      lineout += "<tr>"; 
  • branches/LCSv2/views/default/results.html.bak

    r619 r621  
    88  lineout += "<table border='1' cellpadding='5'><tr><th>Event</th><th>User</th><th>Req Date</th><th>Status Date</th></tr>" 
    99  // Is there a 1097 status? 
    10   if (fields[3].length > 0) 
     10  if (fields[4].length > 0) 
    1111  { 
    1212      lineout += "<tr>"; 
     
    1818  } 
    1919  // Is there a 1098 status? 
    20   if (fields[9].length > 0) 
     20  if (fields[10].length > 0) 
    2121  { 
    2222      lineout += "<tr>"; 
     
    2828  } 
    2929  // Is there a 1022 status? 
    30   if (fields[13].length > 0) 
     30  if (fields[14].length > 0) 
    3131  { 
    3232      lineout += "<tr>"; 
     
    4141} 
    4242</script> 
    43 <h2> 
    44     Search Results 
    45 </h2> 
    46 <hr> 
    47 <!-- NB:  Python code within comment is STILL executed --> 
    48 Query: {{=msg}} 
    49 <br> 
    50 Number of records found: {{=count}} 
    51 <br> 
    52 {{if (count > 0):}} 
    53 <!--  
    54 <form action="statuslist.html" enctype="multipart/form-data" method="post"> 
    55     <input type="submit" value="show status form" /> 
    56     <button class="w2p-form-button" onclick="window.location=&#x27;/HLD/default/showhistory&#x27;;return false">show history</button><br> 
     43<div style="margin: 0% 15% 0% 15%;"> 
     44    <div id="pageTitle" class="header"> Search Results </div> 
     45    <hr> 
     46    <!-- NB:  Python code within comment is STILL executed --> 
     47    Query: {{=msg}} 
     48    <br> 
     49    Number of records found: {{=count}} 
     50    <hr> 
    5751    <table border="1" cellpadding="5"> 
    58         <tr> 
    59         <th></th> 
    60         <th>DTM<br>Area</th> 
    61         <th>Closure ID / <br>Log No.</th> 
    62         <th>Route &amp; Dir /<br>Type of Closure</th> 
    63         <th>Start Date<br>End Date<br>Est. Delay</th> 
    64         <th>Facility</th> 
    65         <th>Limits</th> 
    66         <th>Work<br>Description</th> 
    67         <th>TMP</th> 
    68         <th>Requestor/<br>Radio Call No.</th> 
    69         </tr> 
    70 {{for hwy in highways:}} 
    71         <tr> 
    72         <td><INPUT type="checkbox" name="ckb1" value="{{=hwy.closureid}}"/></td> 
    73         <td align="center">{{=hwy.closureid[0]}}</td> 
    74         <td align="center">{{=hwy.closureid}}<BR><HR>{{=hwy.lognum}}</td> 
    75         <td align="center">{{=hwy.route}}&nbsp;{{=hwy.direction}}<BR><HR>{{=hwy.closuretype}}</td> 
    76         <td align="center">{{=hwy.startdate}}<BR><HR>{{=hwy.enddate}}<BR><HR>{{=hwy.estdelay}}</td> 
    77         {{=TD(hwy.facility)}} 
    78         <td align="center">{{=hwy.startlocation}}<BR><HR>{{=hwy.endlocation}}</td> 
    79         {{=TD(hwy.worktype)}} 
    80             <td align="center">{{=hwy.tmpcozeep}}<BR>{{=hwy.tmpdetour}}</td> 
    81         {{=TD(hwy.supervisor)}} 
    82 {{pass}} 
    83         </tr> 
     52        {{=table}} 
     53        {{for item in multiform:}} 
     54        {{=item}} 
     55        {{pass}} 
    8456    </table> 
    85     <div style="display:none;"> 
    86         <input name="_formkey" type="hidden" value="8138fabc-b5fc-4787-9f49-80e9ac931cf2" /> 
    87         <input name="_formname" type="hidden" value="default" /> 
    88     </div> 
    89 </form> 
    90 --> 
    91 {{pass}} 
    92 <HR> 
    93 <table border="1" cellpadding="5"> 
    94 {{=table}} 
    95 {{for item in multiform:}} 
    96 {{=item}} 
    97 {{pass}} 
    98 </table> 
    99 <HR> 
     57    <hr> 
     58</div> 
  • branches/LCSv2/views/default/submit.html

    r619 r621  
    6666} 
    6767</script> 
    68  
     68<script> 
     69// Handle a user click on a radio button for "existing incident" 
     70function radioclicked() 
     71{ 
     72    var btngroup = document.getElementsByName('existing'); 
     73    // Is the YES button checked? 
     74    if(btngroup[1].checked) 
     75    { 
     76        // Turn on display of combo box to select a closure id 
     77        document.getElementById("closureselect").style.display = "block"; 
     78    } 
     79    else 
     80    { 
     81        // Turn off the combo box display 
     82        document.getElementById("closureselect").style.display = "none"; 
     83    } 
     84} 
     85</script> 
    6986<div id="main" role="main" class="mainflex"> 
    7087    <div id="pageTitle" class="header"> Request Emergency Closure</div> 
  • branches/LCSv2/views/default/submit.html.bak

    r619 r621  
    6666} 
    6767</script> 
    68 <h1>Request Emergency Closure</h1> 
    69 {{=form}} 
     68<script> 
     69function radioclicked() 
     70{ 
     71    var btngroup = document.getElementsByName('existing'); 
     72    // Is the YES button checked? 
     73    if(btngroup[1].checked) 
     74    { 
     75        // Turn on display of combo box to select a closure id 
     76        document.getElementById("closureselect").style.display = "block"; 
     77    } 
     78    else 
     79    { 
     80        // Turn off the combo box display 
     81        document.getElementById("closureselect").style.display = "none"; 
     82    } 
     83} 
     84</script> 
     85<div id="main" role="main" class="mainflex"> 
     86    <div id="pageTitle" class="header"> Request Emergency Closure</div> 
     87 
     88    <div class="searchform"> 
     89        {{=form}} 
     90    </div> 
     91</div> 
Note: See TracChangeset for help on using the changeset viewer.