Diff between f520ebc91963098278dab2b4b51921e8c80b4f35 and e818d2b7cbecd34f001d66939fba4833b4dbf7e9

Changed Files

File Additions Deletions Status
public/harjoittelupaikat.php +19 -15 modified

Full Patch

diff --git a/public/harjoittelupaikat.php b/public/harjoittelupaikat.php
index 079701c..7d0b181 100644
--- a/public/harjoittelupaikat.php
+++ b/public/harjoittelupaikat.php
@@ -31,21 +31,25 @@
     <a href="../public/uusharjoittelupaikka.php"><button>Lisää harjoittelupaikka</button></a>
     <main>
 		<div class="table-container">
-            <table>
-                <tr>
-                     <th>Nimi</th>
-                     <th>Ohjaaja</th>
-                     <th>Yhteystiedot</th>
-                 </tr>
-                <?php foreach ($harjoittelupaikat as $harjoittelupaikka): ?>
-                    <tr>
-                        <?php 
-                            echo "<td>" . $harjoittelupaikka["nimi"] . "</td>";
-                            echo "<td>" . $harjoittelupaikka["ohjaaja"] . "</td>";
-                            echo "<td>" . $harjoittelupaikka["yhteystiedot"] . "</td>";
-                        ?>
-                    </tr>
-                <?php endforeach; ?>
+			<table>
+				<thead>
+					<tr>
+						 <th>Nimi</th>
+						 <th>Ohjaaja</th>
+						 <th>Yhteystiedot</th>
+					 </tr>
+				</thead>
+				<tbody>
+					<?php foreach ($harjoittelupaikat as $harjoittelupaikka): ?>
+						<tr>
+							<?php 
+								echo "<td>" . $harjoittelupaikka["nimi"] . "</td>";
+								echo "<td>" . $harjoittelupaikka["ohjaaja"] . "</td>";
+								echo "<td>" . $harjoittelupaikka["yhteystiedot"] . "</td>";
+	 						?>
+						</tr>
+					<?php endforeach; ?>
+				</tbody>
             </table>
         </div>
     </main>