Skip to content

Commit

Permalink
Update HTML template
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenchrist committed Apr 16, 2024
1 parent 86f9c94 commit 91ab91e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 39 deletions.
8 changes: 4 additions & 4 deletions datacontract/templates/datacontract.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">
{% for field_name, field in model.fields.items() %}

<tr>
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-fit">
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-3/12">
<div class="px-3 py-2 text-sm">
{{ field_name }}
{# TODO nested fields #}
Expand All @@ -369,14 +369,14 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">
{% if field.required %}
<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="required">R</span>
{% endif %}
{% if field.required %}
{% if field.unique %}
<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="unique">U</span>
{% endif %}
</td>
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/6">
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/12">
{{ field.type }}
</td>
<td class="px-3 py-2 text-sm text-gray-500 w-4/6">
<td class="px-3 py-2 text-sm text-gray-500 w-7/12">
<div class="text-gray-400">{{ field.description }}</div>
{# TODO add format information #}
</td>
Expand Down
65 changes: 30 additions & 35 deletions export.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


<tr>
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-fit">
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-3/12">
<div class="px-3 py-2 text-sm">
order_id

Expand All @@ -308,10 +308,10 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">
<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="unique">U</span>

</td>
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/6">
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/12">
text
</td>
<td class="px-3 py-2 text-sm text-gray-500 w-4/6">
<td class="px-3 py-2 text-sm text-gray-500 w-7/12">
<div class="text-gray-400">An internal ID that identifies an order in the online shop.</div>

</td>
Expand All @@ -320,7 +320,7 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


<tr>
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-fit">
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-3/12">
<div class="px-3 py-2 text-sm">
order_timestamp

Expand All @@ -331,13 +331,11 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">
<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="required">R</span>


<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="unique">U</span>

</td>
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/6">
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/12">
timestamp
</td>
<td class="px-3 py-2 text-sm text-gray-500 w-4/6">
<td class="px-3 py-2 text-sm text-gray-500 w-7/12">
<div class="text-gray-400">The business timestamp in UTC when the order was successfully registered in the source system and the payment was successful.</div>

</td>
Expand All @@ -346,7 +344,7 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


<tr>
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-fit">
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-3/12">
<div class="px-3 py-2 text-sm">
order_total

Expand All @@ -357,13 +355,11 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">
<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="required">R</span>


<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="unique">U</span>

</td>
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/6">
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/12">
long
</td>
<td class="px-3 py-2 text-sm text-gray-500 w-4/6">
<td class="px-3 py-2 text-sm text-gray-500 w-7/12">
<div class="text-gray-400">Total amount the smallest monetary unit (e.g., cents).</div>

</td>
Expand All @@ -372,7 +368,7 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


<tr>
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-fit">
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-3/12">
<div class="px-3 py-2 text-sm">
customer_id

Expand All @@ -382,10 +378,10 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


</td>
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/6">
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/12">
text
</td>
<td class="px-3 py-2 text-sm text-gray-500 w-4/6">
<td class="px-3 py-2 text-sm text-gray-500 w-7/12">
<div class="text-gray-400">Unique identifier for the customer.</div>

</td>
Expand All @@ -394,7 +390,7 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


<tr>
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-fit">
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-3/12">
<div class="px-3 py-2 text-sm">
customer_email_address

Expand All @@ -405,13 +401,11 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">
<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="required">R</span>


<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="unique">U</span>

</td>
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/6">
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/12">
text
</td>
<td class="px-3 py-2 text-sm text-gray-500 w-4/6">
<td class="px-3 py-2 text-sm text-gray-500 w-7/12">
<div class="text-gray-400">The email address, as entered by the customer. The email address was not verified.</div>

</td>
Expand All @@ -420,7 +414,7 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


<tr>
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-fit">
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-3/12">
<div class="px-3 py-2 text-sm">
processed_timestamp

Expand All @@ -431,13 +425,11 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">
<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="required">R</span>


<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="unique">U</span>

</td>
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/6">
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/12">
timestamp
</td>
<td class="px-3 py-2 text-sm text-gray-500 w-4/6">
<td class="px-3 py-2 text-sm text-gray-500 w-7/12">
<div class="text-gray-400">The timestamp when the record was processed by the data platform.</div>

</td>
Expand Down Expand Up @@ -474,7 +466,7 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


<tr>
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-fit">
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-3/12">
<div class="px-3 py-2 text-sm">
lines_item_id

Expand All @@ -488,10 +480,10 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">
<span class="inline-flex items-center rounded-md bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10" title="unique">U</span>

</td>
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/6">
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/12">
text
</td>
<td class="px-3 py-2 text-sm text-gray-500 w-4/6">
<td class="px-3 py-2 text-sm text-gray-500 w-7/12">
<div class="text-gray-400">Primary key of the lines_item_id table</div>

</td>
Expand All @@ -500,7 +492,7 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


<tr>
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-fit">
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-3/12">
<div class="px-3 py-2 text-sm">
order_id

Expand All @@ -510,10 +502,10 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


</td>
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/6">
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/12">
text
</td>
<td class="px-3 py-2 text-sm text-gray-500 w-4/6">
<td class="px-3 py-2 text-sm text-gray-500 w-7/12">
<div class="text-gray-400">An internal ID that identifies an order in the online shop.</div>

</td>
Expand All @@ -522,7 +514,7 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


<tr>
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-fit">
<td class="whitespace-nowrap py-2 pl-4 pr-2 text-sm font-medium text-gray-900 sm:pl-6 w-3/12">
<div class="px-3 py-2 text-sm">
sku

Expand All @@ -532,10 +524,10 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">


</td>
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/6">
<td class="whitespace-nowrap px-1 py-2 text-sm text-gray-500 w-1/12">
text
</td>
<td class="px-3 py-2 text-sm text-gray-500 w-4/6">
<td class="px-3 py-2 text-sm text-gray-500 w-7/12">
<div class="text-gray-400">The purchased article number</div>

</td>
Expand All @@ -553,6 +545,9 @@ <h1 class="text-base font-semibold leading-6 text-gray-900">

</section>






<section id="quality">
Expand Down

0 comments on commit 91ab91e

Please sign in to comment.