forked from realworld-apps/angular-realworld-example-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.component.html
More file actions
67 lines (62 loc) · 1.95 KB
/
Copy patheditor.component.html
File metadata and controls
67 lines (62 loc) · 1.95 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
66
67
<div class="editor-page">
<div class="container page">
<div class="row">
<div class="col-md-10 offset-md-1 col-xs-12">
<app-list-errors [errors]="errors" />
<form [formGroup]="articleForm">
<fieldset [disabled]="isSubmitting">
<fieldset class="form-group">
<input
class="form-control form-control-lg"
formControlName="title"
type="text"
placeholder="Article Title"
/>
</fieldset>
<fieldset class="form-group">
<input
class="form-control"
formControlName="description"
type="text"
placeholder="What's this article about?"
/>
</fieldset>
<fieldset class="form-group">
<textarea
class="form-control"
formControlName="body"
rows="8"
placeholder="Write your article (in markdown)"
>
</textarea>
</fieldset>
<fieldset class="form-group">
<input
class="form-control"
type="text"
placeholder="Enter tags"
[formControl]="tagField"
(keyup.enter)="addTag()"
/>
<div class="tag-list">
@for (tag of tagList; track tag) {
<span class="tag-default tag-pill">
<i class="ion-close-round" (click)="removeTag(tag)"></i>
{{ tag }}
</span>
}
</div>
</fieldset>
<button
class="btn btn-lg pull-xs-right btn-primary"
type="button"
(click)="submitForm()"
>
Publihs Article
</button>
</fieldset>
</form>
</div>
</div>
</div>
</div>