2020-10-21 16:35:36 +00:00
|
|
|
<form onsubmit={{action "handleQuery"}}>
|
2020-11-09 15:41:19 +00:00
|
|
|
<div class="field-body pricing-metrics-date-form" data-test-pricing-metrics-form>
|
2020-10-21 16:35:36 +00:00
|
|
|
<div class="field is-narrow">
|
|
|
|
<label for="start" class="is-label">From</label>
|
|
|
|
<div class="control">
|
2021-04-26 16:23:57 +00:00
|
|
|
<Input
|
|
|
|
@type="string"
|
2021-12-17 03:44:29 +00:00
|
|
|
@value={{this.start}}
|
|
|
|
name="start"
|
|
|
|
class={{concat "input" (unless this.startDate " has-error")}}
|
|
|
|
autocomplete="off"
|
|
|
|
spellcheck="false"
|
2020-10-21 16:35:36 +00:00
|
|
|
data-test-start-input="true"
|
2021-04-26 16:23:57 +00:00
|
|
|
/>
|
2020-10-21 16:35:36 +00:00
|
|
|
</div>
|
2020-10-05 21:34:52 +00:00
|
|
|
</div>
|
2020-10-21 16:35:36 +00:00
|
|
|
<div class="field is-narrow">
|
|
|
|
<label for="end" class="is-label">Through</label>
|
|
|
|
<div class="control">
|
2021-04-26 16:23:57 +00:00
|
|
|
<Input
|
|
|
|
@type="string"
|
2021-12-17 03:44:29 +00:00
|
|
|
@value={{this.end}}
|
|
|
|
name="end"
|
|
|
|
class={{concat "input" (unless this.endDate " has-error")}}
|
|
|
|
autocomplete="off"
|
|
|
|
spellcheck="false"
|
2020-10-21 16:35:36 +00:00
|
|
|
data-test-end-input="true"
|
2021-04-26 16:23:57 +00:00
|
|
|
/>
|
2020-10-21 16:35:36 +00:00
|
|
|
</div>
|
2020-10-05 21:34:52 +00:00
|
|
|
</div>
|
2021-12-17 03:44:29 +00:00
|
|
|
<button disabled={{this.error}} type="submit" class="button">Query</button>
|
2020-10-05 21:34:52 +00:00
|
|
|
</div>
|
2020-10-21 16:35:36 +00:00
|
|
|
</form>
|
|
|
|
|
2021-12-17 03:44:29 +00:00
|
|
|
{{#if this.error}}
|
|
|
|
<FormError>{{this.error}}</FormError>
|
2020-10-05 21:34:52 +00:00
|
|
|
{{/if}}
|
|
|
|
<div class="box is-fullwidth is-shadowless">
|
2021-12-17 03:44:29 +00:00
|
|
|
{{#if (and this.resultStart this.resultEnd)}}
|
2020-11-09 15:41:19 +00:00
|
|
|
<h2 class="title is-4" data-test-pricing-result-dates>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{date-format this.resultStart "MMM dd, yyyy" dateOnly=true}}
|
|
|
|
through
|
|
|
|
{{date-format this.resultEnd "MMM dd, yyyy" dateOnly=true}}
|
2020-11-09 15:41:19 +00:00
|
|
|
</h2>
|
|
|
|
{{/if}}
|
2021-12-17 03:44:29 +00:00
|
|
|
</div>
|