@chatterton/angular2-schema-form
Version:
Angular2 Schema Form (DISCLAIMER: it is not related to angular-schema-form)
10 lines (9 loc) • 508 B
HTML
<!-- Support number and range -->
<div class="widget form-group">
<label [attr.for]="id" class="horizontal control-label">
{{ schema.title }}
</label>
<input [attr.required]="schema.required" [name]="name" class="text-widget file-widget" [attr.id]="id" [formControl]="control" type="file" [attr.disabled]="schema.readOnly?true:null" >
<input *ngIf="schema.readOnly" [attr.name]="name" type="hidden" [formControl]="control">
<span *ngIf="schema.help" class="formHelp">{{schema.help}}</span>
</div>