debian/bullseye
|
Last change
on this file was 667b844, checked in by Joachim Langenbach <joachim.langenbach@…>, 7 years ago |
|
All add buttons are now using the css class button-add
|
-
Property mode
set to
100644
|
|
File size:
1.5 KB
|
| Line | |
|---|
| 1 | <div class="header">
|
|---|
| 2 | <h2 i18n="@@deviceaddTitle">Add a new Device</h2>
|
|---|
| 3 | </div>
|
|---|
| 4 | <div class="content">
|
|---|
| 5 | <form class="pure-form pure-form-aligned" [formGroup]='devicesForm' (ngSubmit)="addDevice()">
|
|---|
| 6 | <fieldset>
|
|---|
| 7 | <div class="pure-control-group">
|
|---|
| 8 | <label for="name" i18n="@@deviceEditName">Name:</label>
|
|---|
| 9 | <input #deviceNameInput id="deviceEditName" formControlName='name' type="text" i18n-placeholder placeholder="Name of Device" required>
|
|---|
| 10 | <span *ngIf="devicesForm.controls['name'].errors" class="pure-form-message-inline" i18n="@@deviceNameRequired">Name is required.</span>
|
|---|
| 11 | </div>
|
|---|
| 12 | <div class="pure-control-group">
|
|---|
| 13 | <label for="sensorDepth" i18n="@@deviceEditSensorDepth">Sensor Depth:</label>
|
|---|
| 14 | <input #deviceSensorDepthInput formControlName='sensorDepth' type='number' placeholder="cm" min="0" required><span>cm</span>
|
|---|
| 15 | <span *ngIf="devicesForm.controls['sensorDepth'].errors" class="pure-form-message-inline" i18n="@@deviceSensorDepthRequired">Sensor Depth is required.</span>
|
|---|
| 16 | </div>
|
|---|
| 17 | <div class="pure-control-group">
|
|---|
| 18 | <label for="comment" i18n="@@deviceEditComment">Comment:</label>
|
|---|
| 19 | <textarea #deviceCommentInput formControlName='comment'></textarea>
|
|---|
| 20 | </div>
|
|---|
| 21 | <div class="pure-controls">
|
|---|
| 22 | <button [disabled]="devicesForm.pristine || devicesForm.invalid" class="pure-button pure-button-primary button-add" i18n="@@deviceButtonAdd">Add</button>
|
|---|
| 23 | <button class="pure-button" (mousedown)="cancelEditing()">Cancel</button>
|
|---|
| 24 | </div>
|
|---|
| 25 | </fieldset>
|
|---|
| 26 | </form>
|
|---|
| 27 | </div>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.