mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
20 lines
526 B
Handlebars
20 lines
526 B
Handlebars
|
<span class="x-file-input" {{on "change" this.onChange}} ...attributes>
|
||
|
<input
|
||
|
type="file"
|
||
|
id={{this.inputId}}
|
||
|
class="x-file--input"
|
||
|
name={{@name}}
|
||
|
disabled={{@disabled}}
|
||
|
multiple={{@multiple}}
|
||
|
accept={{@accept}}
|
||
|
{{on "change" this.onChange}}
|
||
|
{{did-insert this.registerFileInput}}
|
||
|
>
|
||
|
<label for="{{this.inputId}}">
|
||
|
{{#if (has-block)}}
|
||
|
{{yield}}
|
||
|
{{else}}
|
||
|
{{this.alt}}
|
||
|
{{/if}}
|
||
|
</label>
|
||
|
</span>
|