Skip to content

Commit

Permalink
renaming labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Jun 12, 2023
1 parent 5a46d47 commit f076cb6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 28 deletions.
31 changes: 17 additions & 14 deletions widget/alarm/raise-alarm.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,15 @@
[labels]="labels"
#raiseAlarmRef
> -->
<div
class="col-md-8 col-md-offset-3"
>
<div class="col-md-8 col-md-offset-3">
<div class="card">
<div class="card-header separator" style="justify-content: center">
<h4 class="card-title">Specify alarm</h4>
</div>
<div class="card-block">
<div class="form-group">
<c8y-form-group>
<label>Alarm Text</label>
<label>Alarm Reason</label>
<textarea
style="width: 100%"
[(ngModel)]="alarm.text"
Expand All @@ -43,7 +41,7 @@ <h4 class="card-title">Specify alarm</h4>
></textarea>
</c8y-form-group>
<c8y-form-group>
<label>Alarm Reason</label>
<label>Alarm Type</label>
<input
style="width: 100%"
placeholder="e.g. c8y_BreakdownAlarmType"
Expand All @@ -56,15 +54,20 @@ <h4 class="card-title">Specify alarm</h4>
<label class="text-truncate" [title]="'Severity'">
{{ "Alarm Severity" }}
</label>
<select
class="form-control"
(change)="selectionChanged($event)"
[(ngModel)]="alarm.severity"
>
<option *ngFor="let entry of severities" [style.background]="entry">
{{ entry }}
</option>
</select>
<div class="c8y-select-wrapper">
<select
class="form-control"
(change)="selectionChanged($event)"
[(ngModel)]="alarm.severity"
>
<option
*ngFor="let entry of severities"
[style.background]="entry"
>
{{ entry }}
</option>
</select>
</div>
</c8y-form-group>
</div>
</div>
Expand Down
30 changes: 16 additions & 14 deletions widget/raise-alarm-plugin-config.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
template: `
<div class="form-group">
<c8y-form-group>
<label>Alarm Text</label>
<label>Alarm Reason</label>
<textarea
style="width:100%"
[(ngModel)]="config.text"
Expand All @@ -20,29 +20,31 @@ import {
></textarea>
</c8y-form-group>
<c8y-form-group>
<label>Alarm Reason</label>
<label>Alarm Type</label>
<input
style="width:100%"
placeholder="e.g. c8y_BreakdownAlarmType"
[(ngModel)]="config.type"
name="type"
[required]="true">
[required]="true"
/>
</c8y-form-group>
<c8y-form-group>
<label class="text-truncate" [title]="'Severity'">
{{ "Alarm Severity"}}
{{ "Alarm Severity" }}
</label>
<select
class="form-control"
(change)="inputChange($event)"
[(ngModel)]="config.severity"
>
<option *ngFor="let entry of severities" [style.background]="entry">
{{ entry }}
</option>
</select>
<div class="c8y-select-wrapper">
<select
class="form-control"
(change)="inputChange($event)"
[(ngModel)]="config.severity"
>
<option *ngFor="let entry of severities" [style.background]="entry">
{{ entry }}
</option>
</select>
</div>
</c8y-form-group>
</div>
`,
viewProviders: [{ provide: ControlContainer, useExisting: NgForm }],
Expand Down

0 comments on commit f076cb6

Please sign in to comment.