diff --git a/addon/components/inspection-form/details.hbs b/addon/components/inspection-form/details.hbs new file mode 100644 index 000000000..6770da9ff --- /dev/null +++ b/addon/components/inspection-form/details.hbs @@ -0,0 +1,53 @@ +
+ +
+
+
Name
+
{{n-a @resource.name}}
+
+
+
Status
+
{{smart-humanize @resource.status}}
+
+
+
Type
+
{{smart-humanize @resource.type}}
+
+
+
Frequency
+
{{smart-humanize @resource.frequency}}
+
+
+
Items
+
{{@resource.item_count}}
+
+
+
Published
+
{{n-a (format-date-fns @resource.published_at "dd MMM yyyy, HH:mm")}}
+
+
+
Description
+
{{n-a @resource.description}}
+
+
+
+ + +
+ {{#each @resource.items as |item|}} +
+
+
{{n-a item.label}}
+
{{n-a item.category}}
+
+ {{smart-humanize item.severity}} +
+ {{else}} +
No checklist items configured.
+ {{/each}} +
+
+ + + +
diff --git a/addon/components/inspection-form/form.hbs b/addon/components/inspection-form/form.hbs new file mode 100644 index 000000000..ed8f8cec6 --- /dev/null +++ b/addon/components/inspection-form/form.hbs @@ -0,0 +1,59 @@ +
+ +
+ + + + + + {{smart-humanize type}} + + + + + {{smart-humanize status}} + + + + + {{smart-humanize frequency}} + + + +