vault/ui/app/components/file-to-array-buffer.hbs
Vault Automation 0c6c13dd38
license: update headers to IBM Corp. (#10229) (#10233)
* 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>
2025-10-21 15:20:20 -06:00

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>