c1df15e790
* adds ember-flight-icons dependecy * adds inline-json-import babel plugin * adds flight icon styling * updates Icon component to support flight icons * updates Icon component usages to new api and updates name values to flight icon set when available * fixes tests * updates icon story with flight mappings and fixes issue with flight icons not rendering in storybook * adds changelog * fixes typo in sign action glyph name in transit-key model * adds comments to icon-map * updates Icon component to use only supported flight icon sizes * adds icon transform codemod * updates icon transform formatting to handle edge case * runs icon transform on templates * updates Icon usage in toolbar-filter md and story * updates tests
37 lines
1.1 KiB
Handlebars
37 lines
1.1 KiB
Handlebars
<div class="field">
|
|
<div class="control is-expanded">
|
|
<label class="is-label">
|
|
{{#if label}}
|
|
{{label}}
|
|
{{/if}}
|
|
</label>
|
|
<div class="file has-name is-fullwidth">
|
|
<label class="file-label">
|
|
<input class="file-input" type="file" onchange={{action "pickedFile"}} data-test-file-input>
|
|
<span class="file-cta button">
|
|
<Icon @name="upload" class="has-light-grey-text" />
|
|
Choose a file…
|
|
</span>
|
|
<span class="file-name has-text-grey-dark" data-test-text-file-input-label=true>
|
|
{{or this.fileName "No file chosen"}}
|
|
</span>
|
|
{{#if this.fileName}}
|
|
<button type="button" class="file-delete-button" {{action 'clearFile'}} data-test-text-clear>
|
|
<Icon @name="x-circle" />
|
|
</button>
|
|
{{/if}}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
{{#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}}
|
|
{{#if @fileHelpText}}
|
|
<p class="help has-text-grey">
|
|
{{@fileHelpText}}
|
|
</p>
|
|
{{/if}}
|
|
</div>
|