]>
Commit | Line | Data |
---|---|---|
0b18f4aa C |
1 | <form role="form" (ngSubmit)="formUpdated()"> |
2 | ||
3 | <div class="row"> | |
4 | <div class="col-lg-4 col-md-6 col-xs-12"> | |
cddf4503 C |
5 | <div class="form-group"> |
6 | <div i18n class="radio-label">Sort</div> | |
7 | ||
8 | <div class="peertube-radio-container" *ngFor="let sort of sorts"> | |
9 | <input type="radio" name="sort" [id]="sort.id" [value]="sort.id" [(ngModel)]="advancedSearch.sort"> | |
10 | <label [for]="sort.id" class="radio">{{ sort.label }}</label> | |
11 | </div> | |
12 | </div> | |
13 | ||
0b18f4aa C |
14 | <div class="form-group"> |
15 | <div i18n class="radio-label">Published date</div> | |
16 | ||
17 | <div class="peertube-radio-container" *ngFor="let date of publishedDateRanges"> | |
18 | <input type="radio" name="publishedDateRange" [id]="date.id" [value]="date.id" [(ngModel)]="publishedDateRange"> | |
19 | <label [for]="date.id" class="radio">{{ date.label }}</label> | |
20 | </div> | |
21 | </div> | |
22 | ||
31d065cc AM |
23 | <div class="form-group"> |
24 | <label i18n for="original-publication-after">Original publication year</label> | |
25 | ||
26 | <div class="row"> | |
27 | <div class="col-sm-6"> | |
28 | <input | |
29 | type="text" id="original-publication-after" name="original-publication-after" | |
30 | i18n-placeholder placeholder="After..." | |
31 | [(ngModel)]="originallyPublishedStartYear" | |
32 | > | |
33 | </div> | |
34 | <div class="col-sm-6"> | |
35 | <input | |
36 | type="text" id="original-publication-before" name="original-publication-before" | |
37 | i18n-placeholder placeholder="Before..." | |
38 | [(ngModel)]="originallyPublishedEndYear" | |
39 | > | |
40 | </div> | |
41 | </div> | |
42 | </div> | |
43 | ||
0b18f4aa C |
44 | <div class="form-group"> |
45 | <div i18n class="radio-label">Duration</div> | |
46 | ||
47 | <div class="peertube-radio-container" *ngFor="let duration of durationRanges"> | |
48 | <input type="radio" name="durationRange" [id]="duration.id" [value]="duration.id" [(ngModel)]="durationRange"> | |
49 | <label [for]="duration.id" class="radio">{{ duration.label }}</label> | |
50 | </div> | |
51 | </div> | |
52 | ||
53 | <div class="form-group"> | |
54 | <div i18n class="radio-label">Display sensitive content</div> | |
55 | ||
56 | <div class="peertube-radio-container"> | |
57 | <input type="radio" name="sensitiveContent" id="sensitiveContentYes" value="both" [(ngModel)]="advancedSearch.nsfw"> | |
58 | <label i18n for="sensitiveContentYes" class="radio">Yes</label> | |
59 | </div> | |
60 | ||
61 | <div class="peertube-radio-container"> | |
62 | <input type="radio" name="sensitiveContent" id="sensitiveContentNo" value="false" [(ngModel)]="advancedSearch.nsfw"> | |
63 | <label i18n for="sensitiveContentNo" class="radio">No</label> | |
64 | </div> | |
65 | </div> | |
66 | ||
67 | </div> | |
68 | ||
69 | <div class="col-lg-4 col-md-6 col-xs-12"> | |
70 | <div class="form-group"> | |
71 | <label i18n for="category">Category</label> | |
72 | <div class="peertube-select-container"> | |
73 | <select id="category" name="category" [(ngModel)]="advancedSearch.categoryOneOf"> | |
74 | <option></option> | |
75 | <option *ngFor="let category of videoCategories" [value]="category.id">{{ category.label }}</option> | |
76 | </select> | |
77 | </div> | |
78 | </div> | |
79 | ||
80 | <div class="form-group"> | |
81 | <label i18n for="licence">Licence</label> | |
82 | <div class="peertube-select-container"> | |
83 | <select id="licence" name="licence" [(ngModel)]="advancedSearch.licenceOneOf"> | |
84 | <option></option> | |
85 | <option *ngFor="let licence of videoLicences" [value]="licence.id">{{ licence.label }}</option> | |
86 | </select> | |
87 | </div> | |
88 | </div> | |
89 | ||
90 | <div class="form-group"> | |
91 | <label i18n for="language">Language</label> | |
92 | <div class="peertube-select-container"> | |
93 | <select id="language" name="language" [(ngModel)]="advancedSearch.languageOneOf"> | |
94 | <option></option> | |
95 | <option *ngFor="let language of videoLanguages" [value]="language.id">{{ language.label }}</option> | |
96 | </select> | |
97 | </div> | |
98 | </div> | |
99 | </div> | |
100 | ||
101 | <div class="col-lg-4 col-md-6 col-xs-12"> | |
102 | <div class="form-group"> | |
103 | <label i18n for="tagsAllOf">All of these tags</label> | |
104 | <input type="text" name="tagsAllOf" id="tagsAllOf" [(ngModel)]="advancedSearch.tagsAllOf" /> | |
105 | </div> | |
106 | ||
107 | <div class="form-group"> | |
108 | <label i18n for="tagsOneOf">One of these tags</label> | |
109 | <input type="text" name="tagsOneOf" id="tagsOneOf" [(ngModel)]="advancedSearch.tagsOneOf" /> | |
110 | </div> | |
111 | </div> | |
112 | </div> | |
113 | ||
114 | <div class="submit-button"> | |
115 | <input type="submit" i18n-value value="Filter"> | |
116 | </div> | |
31d065cc | 117 | </form> |