-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathentry-fields.component.html
More file actions
65 lines (60 loc) · 1.78 KB
/
entry-fields.component.html
File metadata and controls
65 lines (60 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<form [formGroup]="entryForm">
<div class="form-group">
<label>Activity:</label>
<select
(change)="onSubmit()"
class="form-control"
formControlName="activity_id"
[class.is-invalid]="activity_id.invalid && activity_id.touched"
#autofocus
required>
<option *ngFor="let activity of activities" value="{{ activity.id }}" class = "id">{{ activity.name }}</option>
</select>
</div>
<div class="form-group">
<label>Ticket Number:</label>
<input
(blur)="onSubmit()"
type="text"
placeholder="Enter your ticket number"
id="uri"
formControlName="uri"
class="url-ticket-input form-control"
/>
</div>
<div class="form-group">
<label>Time in:</label>
<div class="row">
<div class="col-md-auto">
<ngx-timepicker-field
[format]="24"
formControlName="start_hour"
id="start_hour"
(timeChanged)="activeTimeInButtons()"
></ngx-timepicker-field>
</div>
<div class="col-md-auto">
<button *ngIf="showTimeInbuttons" (click)="onUpdateStartHour()" class="btn btn-success">Update</button>
</div>
<div class="col-md-auto">
<button *ngIf="showTimeInbuttons" (click)="cancelTimeInUpdate()" class="btn btn-danger">Cancel</button>
</div>
</div>
</div>
<app-technologies
(technologyUpdated)="onTechnologyUpdated($event)"
[selectedTechnologies]="selectedTechnologies"
>
</app-technologies>
<div class="form-group">
<label>Description:</label>
<textarea
maxlength="1500"
(blur)="onSubmit()"
formControlName="description"
placeholder="Write a brief description of your activity"
class="form-control"
id="NotesTextarea"
rows="2"></textarea>
</div>
</form>