mirror of https://github.com/Squidex/squidex.git
4 changed files with 32 additions and 29 deletions
@ -1,19 +1,20 @@ |
|||||
<div> |
<div> |
||||
<div class="form-inline"> |
<div class="form-inline"> |
||||
<div class="form-group date-group"> |
<div class="form-group mr-1"> |
||||
<input type="text" class="form-control" [formControl]="dateControl" (blur)="callTouched()" #dateInput /> |
<div class="input-group"> |
||||
</div> |
<input type="text" class="form-control" [formControl]="dateControl" placeholder="Date" (blur)="callTouched()" #dateInput /> |
||||
<div class="form-group time-group" *ngIf="showTime"> |
<input type="text" class="form-control" [formControl]="timeControl" placeholder="Time" (blur)="callTouched()" *ngIf="showTime" /> |
||||
<input type="text" class="form-control" [formControl]="timeControl" (blur)="callTouched()" /> |
</div> |
||||
|
|
||||
|
<button type="button" class="btn btn-text-secondary btn-sm btn-clear" [class.hidden]="!hasValue" [disabled]="snapshot.isDisabled" (click)="reset()" *ngIf="!hideClear"> |
||||
|
<i class="icon-close"></i> |
||||
|
</button> |
||||
</div> |
</div> |
||||
<div class="form-group" *ngIf="showTime"> |
<div class="form-group" *ngIf="showTime"> |
||||
<button type="button" class="btn btn-secondary" [disabled]="snapshot.isDisabled" (click)="writeNow()">Now (UTC)</button> |
<button type="button" class="btn btn-text-secondary" [disabled]="snapshot.isDisabled" (click)="writeNow()" title="Use Now (UTC)">Now</button> |
||||
</div> |
</div> |
||||
<div class="form-group" *ngIf="!showTime"> |
<div class="form-group" *ngIf="!showTime"> |
||||
<button type="button" class="btn btn-secondary" [disabled]="snapshot.isDisabled" (click)="writeNow()">Today (UTC)</button> |
<button type="button" class="btn btn-text-secondary" [disabled]="snapshot.isDisabled" (click)="writeNow()" title="Use Today (UTC)">Today</button> |
||||
</div> |
|
||||
<div class="form-group" [class.hidden]="!hasValue" *ngIf="!hideClear"> |
|
||||
<button type="button" class="btn btn-text clear" [disabled]="snapshot.isDisabled" (click)="reset()">Clear</button> |
|
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
|
|||||
Loading…
Reference in new issue