bygdis.fi

git clone https://git.tarina.org/bygdis.fi
Log | Files | Refs | README

dorrkoder.html (736B)


      1 $def with (dorrkoder, log, getDorrkoduser)
      2 
      3 <br>
      4 <h1>Bygdis.fi</h1>
      5 <h2>Dörrkoder</h2>
      6 <a href="/nydorrkod">Lägg till</a>
      7 <table style="max-width:800px">
      8 $for i in dorrkoder:
      9     <tr>
     10     <th>$i.dorrkod</th>
     11     <th>$i.name</th>
     12     <th>$i.mail</th>
     13     <th>$i.datum.strftime('%d-%m-%y %H:%M')</th>
     14     <th><form action="/dorrkoder/$i.id" method="post"><input type="submit" value="radera"></form></th>
     15     <th><form action="/dorrkoder/$i.id" method="post"><input type="submit" value="uppdatera"></form></th>
     16     </tr>
     17 </table>
     18 <h2>Logg</h2>
     19 <table style="max-width:800px">
     20 $for i in log:
     21     <tr>
     22     <th>$i.datum.strftime('%d-%m-%y %H:%M')</th>
     23     <th>$i.dorrkod</th>
     24     <th>$getDorrkoduser(i.dorrkod)</th>
     25     </tr>
     26 </table>
     27