40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html lang="en">
 | 
						|
<head>
 | 
						|
    <meta charset="UTF-8">
 | 
						|
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
						|
    <title>CSV Preview</title>
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
    <h1>CSV Preview</h1>
 | 
						|
 | 
						|
    <!-- Display CSV data in a table -->
 | 
						|
    <table border="1">
 | 
						|
        <thead>
 | 
						|
            <tr>
 | 
						|
                <th>Asset Tag</th>
 | 
						|
                <th>Hostname</th>
 | 
						|
                <th>Warranty From</th>
 | 
						|
                <th>Status</th>
 | 
						|
                <th>Staff Number</th>
 | 
						|
            </tr>
 | 
						|
        </thead>
 | 
						|
        <tbody>
 | 
						|
            {% for asset in assets %}
 | 
						|
                <tr>
 | 
						|
                    <td>{{ asset.assettag }}</td>
 | 
						|
                    <td>{{ asset.hostname }}</td>
 | 
						|
                    <td>{{ asset.warrantyfrom }}</td>
 | 
						|
                    <td>{{ asset.status }}</td>
 | 
						|
                    <td>{{ asset.staffnum }}</td>
 | 
						|
                </tr>
 | 
						|
            {% endfor %}
 | 
						|
        </tbody>
 | 
						|
    </table>
 | 
						|
 | 
						|
    <!-- Form button to confirm and save data -->
 | 
						|
    <form action="/confirm_save" method="POST">
 | 
						|
        <button type="submit">Confirm and Save to Database</button>
 | 
						|
    </form>
 | 
						|
</body>
 | 
						|
</html> |