diff --git a/.stylelintrc.js b/.stylelintrc.js index f1804fe2d..21ff58943 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -5,6 +5,7 @@ module.exports = { rules: { 'selector-class-pattern': null, 'no-descending-specificity': null, + 'alpha-value-notation': null, 'color-function-notation': null, }, }; diff --git a/addon/components/ai/create-order-preview.hbs b/addon/components/ai/create-order-preview.hbs new file mode 100644 index 000000000..edcba9b17 --- /dev/null +++ b/addon/components/ai/create-order-preview.hbs @@ -0,0 +1,297 @@ +
+
+
+
{{this.preview.label}}
+
{{this.preview.message}}
+
+ {{if this.isCompleted "Completed" (if this.isCancelled "Cancelled" (if this.preview.ready "Ready" "Needs info"))}} +
+ + {{#if @isApplying}} +
+ + Creating Fleet-Ops order... +
+ {{else if this.isCompleted}} +
+
+ +
+
+ {{this.completedMessage}} + {{this.orderReference}} +
+ {{#if this.canOpenOrder}} +
+ {{else if this.isCancelled}} +
+ + {{this.cancelledMessage}} +
+ {{else if this.preview.error}} +
{{this.preview.error.message}}
+ {{else}} + + +
+
+
+ Order type + {{#if this.isEditingOrderType}} + + {{or model.name model.key}} + + {{else}} + {{this.orderTypeLabel}} + {{/if}} +
+
+ +
+
+ Schedule + {{#if this.isEditingSchedule}} + + {{else}} + + {{#if this.draft.scheduled_at}} + {{format-date-fns this.draft.scheduled_at "yyyy-MM-dd HH:mm" fallback=this.scheduledAtLabel}} + {{else}} + {{this.scheduledAtLabel}} + {{/if}} + + {{/if}} +
+
+ +
+
+ Pickup + {{#if this.isEditingPickup}} + +
{{this.addressLabel place}}
+
+ {{else}} + {{this.pickupLabel}} + {{/if}} +
+
+ +
+
+ Dropoff + {{#if this.isEditingDropoff}} + +
{{this.addressLabel place}}
+
+ {{else}} + {{this.dropoffLabel}} + {{/if}} +
+
+ +
+
+ Driver + {{#if this.isEditingDriver}} + + {{driver.name}} + + {{else}} + {{this.driverLabel}} + {{/if}} +
+
+ +
+
+ Vehicle + {{#if this.isEditingVehicle}} + + {{or vehicle.display_name vehicle.name vehicle.plate_number}} + + {{else}} + {{this.vehicleLabel}} + {{/if}} +
+
+ +
+
+ Notes + {{#if this.isEditingNotes}} +