You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
inventory-app/templates/upload/vetcove-history-import-resu...

40 lines
1.6 KiB

<table class="w-full text-left text-sm rtl:text-right">
<thead class="bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400">
<tr>
<th class="px-6 py-3" scope="col">Status</th>
<th class="px-6 py-3" scope="col">Vetcove ID</th>
<th class="px-6 py-3" scope="col">Name</th>
</tr>
</thead>
<tbody>
{% for res in results %}
{% match res.error %}
{% when Some(ItemHistoryImportRowErrorKind::AlreadyImported) %}
<tr class="text-slate-500">
<td class="px-6 py-4"> Skip </td>
<td class="px-6 py-4">{{ res.item.vetcove_item_id }}</td>
<td class="px-6 py-4">{{ res.item.item_name }}</td>
</tr>
{% when Some(ItemHistoryImportRowErrorKind::VetcoveIdNotFound) %}
<tr class="text-cerise">
<td class="px-6 py-4"> Id Not Found </td>
<td class="px-6 py-4">{{ res.item.vetcove_item_id }}</td>
<td class="px-6 py-4">{{ res.item.item_name }}</td>
</tr>
{% when None %}
<tr class="text-green-700">
<td class="px-6 py-4"> Success </td>
<td class="px-6 py-4">{{ res.item.vetcove_item_id }}</td>
<td class="px-6 py-4">{{ res.item.item_name }}</td>
</tr>
{% else %}
<tr class="text-cerise">
<td class="px-6 py-4"> Unknown Error </td>
<td class="px-6 py-4">{{ res.item.vetcove_item_id }}</td>
<td class="px-6 py-4">{{ res.item.item_name }}</td>
</tr>
{% endmatch %}
{% endfor %}
</tbody>
</table>

Powered by TurnKey Linux.