mirror of
https://github.com/hashicorp/vault.git
synced 2026-04-03 21:02:24 +02:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
25 lines
725 B
Handlebars
25 lines
725 B
Handlebars
{{!
|
|
Copyright IBM Corp. 2016, 2025
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
<div class="box is-fullwidth is-marginless is-shadowless">
|
|
<Hds::Form::FileInput::Field {{on "change" this.pickedFile}} data-test-file-input as |F|>
|
|
<F.Label>{{@label}}</F.Label>
|
|
{{#if @fileHelpText}}
|
|
<F.HelperText>
|
|
{{@fileHelpText}}
|
|
</F.HelperText>
|
|
{{/if}}
|
|
{{#if @error}}
|
|
<F.Error data-test-validation-error="file">{{@error}}</F.Error>
|
|
{{/if}}
|
|
</Hds::Form::FileInput::Field>
|
|
{{#if this.filename}}
|
|
<p class="help has-text-grey">
|
|
This file is
|
|
{{this.fileSize}}
|
|
and was created on
|
|
{{date-format this.fileLastModified "MMM dd, yyyy hh:mm:ss a"}}.
|
|
</p>
|
|
{{/if}}
|
|
</div> |