salix/front/core/components/input-file/index.html

53 lines
1.4 KiB
HTML
Raw Normal View History

2019-10-18 19:36:30 +00:00
<div class="container">
<div
ng-transclude="prepend"
class="prepend">
</div>
<div class="infix">
<div class="fix prefix"></div>
<div class="control">
<section
class="value"
ng-click="$ctrl.openFileSelector()"
2019-10-28 20:40:24 +00:00
tabindex="0">
</section>
<input
2019-10-18 19:36:30 +00:00
type="file"
2019-10-28 20:40:24 +00:00
accept="{{$ctrl.accept}}"
style="display: none;">
2019-10-18 19:36:30 +00:00
</input>
</div>
2019-10-18 19:36:30 +00:00
<div class="fix suffix"></div>
<label>
<span translate>{{::$ctrl.label}}</span>
<span class="required">*</span>
</label>
</div>
<div class="icons pre">
<vn-icon
icon="clear"
translate-attr="{title: 'Clear'}"
ng-click="$ctrl.onClear($event)">
</vn-icon>
<vn-icon
2020-02-28 06:17:19 +00:00
icon="attach_file"
2019-10-18 19:36:30 +00:00
vn-tooltip="Select a file"
ng-click="$ctrl.openFileSelector()">
</vn-icon>
<vn-icon
2019-10-28 20:40:24 +00:00
ng-if="::$ctrl.info != null"
2019-10-18 19:36:30 +00:00
icon="info_outline"
vn-tooltip="{{::$ctrl.info}}">
</vn-icon>
</div>
<div
ng-transclude="append"
class="append">
</div>
<div class="icons post">
</div>
2019-10-18 19:36:30 +00:00
<div class="underline blur"></div>
<div class="underline focus"></div>
</div>
2019-10-18 19:36:30 +00:00
<div class="hint"></div>