correct update to the database and database created for scan
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<input type="text" id="operator_code" name="operator_code" maxlength="4" required>
|
||||
|
||||
<label for="cp_code">CP Code:</label>
|
||||
<input type="text" id="cp_code" name="cp_code" maxlength="14" required>
|
||||
<input type="text" id="cp_code" name="cp_code" maxlength="15" required>
|
||||
|
||||
<label for="oc1_code">OC1 Code:</label>
|
||||
<input type="text" id="oc1_code" name="oc1_code" maxlength="4" required>
|
||||
@@ -22,7 +22,7 @@
|
||||
<input type="text" id="defect_code" name="defect_code" maxlength="4" required>
|
||||
|
||||
<label for="date">Date:</label>
|
||||
<input type="text" id="date" name="date" value="{{ now().strftime('%Y-%m-%d') }}" readonly>
|
||||
<input type="text" id="date" name="date" value="{{ now().strftime('%Y-%m-%d') }}" placeholder="yyyy-mm-dd" pattern="\d{4}-\d{2}-\d{2}" required>
|
||||
|
||||
<label for="time">Time:</label>
|
||||
<input type="text" id="time" name="time" value="{{ now().strftime('%H:%M:%S') }}" readonly>
|
||||
@@ -38,28 +38,30 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Operator Code</th>
|
||||
<th>Op Code</th>
|
||||
<th>CP Code</th>
|
||||
<th>OC1 Code</th>
|
||||
<th>OC2 Code</th>
|
||||
<th>Defect Code</th>
|
||||
<th>Date</th>
|
||||
<th>Time</th>
|
||||
<th>Quantity</th>
|
||||
<th>Apr. Quantity</th>
|
||||
<th>Rejec. Quantity</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in scan_data %}
|
||||
<tr>
|
||||
<td>{{ row.id }}</td>
|
||||
<td>{{ row.operator_code }}</td>
|
||||
<td>{{ row.cp_code }}</td>
|
||||
<td>{{ row.oc1_code }}</td>
|
||||
<td>{{ row.oc2_code }}</td>
|
||||
<td>{{ row.defect_code }}</td>
|
||||
<td>{{ row.date }}</td>
|
||||
<td>{{ row.time }}</td>
|
||||
<td>{{ row.quantity }}</td>
|
||||
<td>{{ row[0] }}</td> <!-- Id -->
|
||||
<td>{{ row[1] }}</td> <!-- operator_code -->
|
||||
<td>{{ row[2] }}</td> <!-- CP_full_code -->
|
||||
<td>{{ row[3] }}</td> <!-- OC1_code -->
|
||||
<td>{{ row[4] }}</td> <!-- OC2_code -->
|
||||
<td>{{ row[5] }}</td> <!-- quality_code -->
|
||||
<td>{{ row[6] }}</td> <!-- date -->
|
||||
<td>{{ row[7] }}</td> <!-- time -->
|
||||
<td>{{ row[8] }}</td> <!-- approved_quantity -->
|
||||
<td>{{ row[9] }}</td> <!-- rejected_quantity -->
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user