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">
{{ in put
type="string"
value=start
name="start"
class=(concat 'input' (unless startDate ' has-error'))
autocomplete="off"
spellcheck="false"
data-test-start-input="true"
}}
</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">
{{ in put
type="string"
value=end
name="end"
class=(concat 'input' (unless endDate ' has-error'))
autocomplete="off"
spellcheck="false"
data-test-end-input="true"
}}
</div>
2020-10-05 21:34:52 +00:00
</div>
2020-10-21 16:35:36 +00:00
<button disabled= {{ 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>
2020-10-05 21:34:52 +00:00
{{ # if error }}
<FormError> {{ error }} </FormError>
{{ / if }}
<div class="box is-fullwidth is-shadowless">
2020-11-09 15:41:19 +00:00
{{ # if ( and resultStart resultEnd ) }}
<h2 class="title is-4" data-test-pricing-result-dates>
2021-02-08 20:13:00 +00:00
{{ date-format resultStart "MMM dd, yyyy" }} through {{ date-format resultEnd "MMM dd, yyyy" }}
2020-11-09 15:41:19 +00:00
</h2>
{{ / if }}
2020-10-05 21:34:52 +00:00
{{ # if showResultsWarning }}
<div class="access-information" data-test-results-date-warning>
<Icon @glyph="info-circle-fill" class="has-text-info"/>
2020-10-28 17:48:39 +00:00
<p>This data may not reflect your search exactly. This is because Vault will only show data for contiguous blocks of time during which tracking was on.
<LearnLink @path="/tutorials/vault/usage-metrics">
Learn more here
</LearnLink>
</p>
2020-10-05 21:34:52 +00:00
</div>
{{ / if }}
</div>