]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+search/search-filters.component.html
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / client / src / app / +search / search-filters.component.html
CommitLineData
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 5 <div class="form-group">
25266908 6 <div class="radio-label label-container">
d0fbc9fd 7 <label for="sort" i18n>Sort</label>
25266908
RK
8 <button i18n class="reset-button reset-button-small" (click)="resetField('sort', '-match')" *ngIf="advancedSearch.sort !== '-match'">
9 Reset
10 </button>
11 </div>
cddf4503
C
12
13 <div class="peertube-radio-container" *ngFor="let sort of sorts">
14 <input type="radio" name="sort" [id]="sort.id" [value]="sort.id" [(ngModel)]="advancedSearch.sort">
15 <label [for]="sort.id" class="radio">{{ sort.label }}</label>
16 </div>
17 </div>
18
7a22a0a5
C
19 <div class="form-group">
20 <div class="radio-label label-container">
d0fbc9fd 21 <label for="isLive" i18n>Display only</label>
7a22a0a5
C
22 <button i18n class="reset-button reset-button-small" (click)="resetField('isLive')" *ngIf="advancedSearch.isLive !== undefined">
23 Reset
24 </button>
25 </div>
26
27 <div class="peertube-radio-container">
28 <input type="radio" name="isLive" id="isLiveTrue" value="true" [(ngModel)]="advancedSearch.isLive">
29 <label i18n for="isLiveTrue" class="radio">Live videos</label>
30 </div>
31
32 <div class="peertube-radio-container">
33 <input type="radio" name="isLive" id="isLiveFalse" value="false" [(ngModel)]="advancedSearch.isLive">
34 <label i18n for="isLiveFalse" class="radio">VOD videos</label>
35 </div>
36 </div>
37
5fb2e288
C
38 <div class="form-group">
39 <div class="radio-label label-container">
d0fbc9fd 40 <label for="sensitiveContent" i18n>Display sensitive content</label>
5fb2e288
C
41 <button i18n class="reset-button reset-button-small" (click)="resetField('nsfw')" *ngIf="advancedSearch.nsfw !== undefined">
42 Reset
43 </button>
44 </div>
45
46 <div class="peertube-radio-container">
47 <input type="radio" name="sensitiveContent" id="sensitiveContentYes" value="both" [(ngModel)]="advancedSearch.nsfw">
48 <label i18n for="sensitiveContentYes" class="radio">Yes</label>
49 </div>
50
51 <div class="peertube-radio-container">
52 <input type="radio" name="sensitiveContent" id="sensitiveContentNo" value="false" [(ngModel)]="advancedSearch.nsfw">
53 <label i18n for="sensitiveContentNo" class="radio">No</label>
54 </div>
55 </div>
56
0b18f4aa 57 <div class="form-group">
25266908 58 <div class="radio-label label-container">
d0fbc9fd 59 <label for="publishedDateRange" i18n>Published date</label>
25266908
RK
60 <button i18n class="reset-button reset-button-small" (click)="resetLocalField('publishedDateRange')" *ngIf="publishedDateRange !== undefined">
61 Reset
62 </button>
63 </div>
0b18f4aa
C
64
65 <div class="peertube-radio-container" *ngFor="let date of publishedDateRanges">
af7fd04a 66 <input type="radio" (change)="onDurationOrPublishedUpdated()" name="publishedDateRange" [id]="date.id" [value]="date.id" [(ngModel)]="publishedDateRange">
0b18f4aa
C
67 <label [for]="date.id" class="radio">{{ date.label }}</label>
68 </div>
69 </div>
70
31d065cc 71 <div class="form-group">
25266908
RK
72 <div class="label-container">
73 <label i18n for="original-publication-after">Original publication year</label>
74 <button i18n class="reset-button reset-button-small" (click)="resetOriginalPublicationYears()" *ngIf="originallyPublishedStartYear || originallyPublishedEndYear">
75 Reset
76 </button>
77 </div>
31d065cc
AM
78
79 <div class="row">
4c8749cb 80 <div class="ps-0 col-sm-6">
31d065cc 81 <input
af7fd04a 82 (change)="onDurationOrPublishedUpdated()"
25266908 83 (keydown.enter)="$event.preventDefault()"
31d065cc
AM
84 type="text" id="original-publication-after" name="original-publication-after"
85 i18n-placeholder placeholder="After..."
86 [(ngModel)]="originallyPublishedStartYear"
a6d5ff76 87 class="form-control"
31d065cc
AM
88 >
89 </div>
4c8749cb 90 <div class="pe-0 col-sm-6">
31d065cc 91 <input
af7fd04a 92 (change)="onDurationOrPublishedUpdated()"
25266908 93 (keydown.enter)="$event.preventDefault()"
31d065cc
AM
94 type="text" id="original-publication-before" name="original-publication-before"
95 i18n-placeholder placeholder="Before..."
96 [(ngModel)]="originallyPublishedEndYear"
a6d5ff76 97 class="form-control"
31d065cc
AM
98 >
99 </div>
100 </div>
101 </div>
102
5fb2e288
C
103 </div>
104
105 <div class="col-lg-4 col-md-6 col-xs-12">
0b18f4aa 106 <div class="form-group">
25266908 107 <div class="radio-label label-container">
d0fbc9fd 108 <label for="durationRange" i18n>Duration</label>
25266908
RK
109 <button i18n class="reset-button reset-button-small" (click)="resetLocalField('durationRange')" *ngIf="durationRange !== undefined">
110 Reset
111 </button>
112 </div>
0b18f4aa
C
113
114 <div class="peertube-radio-container" *ngFor="let duration of durationRanges">
af7fd04a 115 <input type="radio" (change)="onDurationOrPublishedUpdated()" name="durationRange" [id]="duration.id" [value]="duration.id" [(ngModel)]="durationRange">
0b18f4aa
C
116 <label [for]="duration.id" class="radio">{{ duration.label }}</label>
117 </div>
118 </div>
119
0b18f4aa
C
120 <div class="form-group">
121 <label i18n for="category">Category</label>
25266908
RK
122 <button i18n class="reset-button reset-button-small" (click)="resetField('categoryOneOf')" *ngIf="advancedSearch.categoryOneOf !== undefined">
123 Reset
124 </button>
0b18f4aa 125 <div class="peertube-select-container">
a6d5ff76 126 <select id="category" name="category" [(ngModel)]="advancedSearch.categoryOneOf" class="form-control">
a2e0046c 127 <option [value]="undefined" i18n>Display all categories</option>
0b18f4aa
C
128 <option *ngFor="let category of videoCategories" [value]="category.id">{{ category.label }}</option>
129 </select>
130 </div>
131 </div>
132
133 <div class="form-group">
134 <label i18n for="licence">Licence</label>
25266908
RK
135 <button i18n class="reset-button reset-button-small" (click)="resetField('licenceOneOf')" *ngIf="advancedSearch.licenceOneOf !== undefined">
136 Reset
137 </button>
0b18f4aa 138 <div class="peertube-select-container">
a6d5ff76 139 <select id="licence" name="licence" [(ngModel)]="advancedSearch.licenceOneOf" class="form-control">
a2e0046c 140 <option [value]="undefined" i18n>Display all licenses</option>
0b18f4aa
C
141 <option *ngFor="let licence of videoLicences" [value]="licence.id">{{ licence.label }}</option>
142 </select>
143 </div>
144 </div>
145
146 <div class="form-group">
147 <label i18n for="language">Language</label>
25266908
RK
148 <button i18n class="reset-button reset-button-small" (click)="resetField('languageOneOf')" *ngIf="advancedSearch.languageOneOf !== undefined">
149 Reset
150 </button>
0b18f4aa 151 <div class="peertube-select-container">
a6d5ff76 152 <select id="language" name="language" [(ngModel)]="advancedSearch.languageOneOf" class="form-control">
a2e0046c 153 <option [value]="undefined" i18n>Display all languages</option>
0b18f4aa
C
154 <option *ngFor="let language of videoLanguages" [value]="language.id">{{ language.label }}</option>
155 </select>
156 </div>
157 </div>
158 </div>
159
160 <div class="col-lg-4 col-md-6 col-xs-12">
161 <div class="form-group">
162 <label i18n for="tagsAllOf">All of these tags</label>
25266908
RK
163 <button i18n class="reset-button reset-button-small" (click)="resetField('tagsAllOf')" *ngIf="advancedSearch.tagsAllOf">
164 Reset
165 </button>
9abd170d 166 <my-select-tags name="tagsAllOf" labelForId="tagsAllOf" id="tagsAllOf" [(ngModel)]="advancedSearch.tagsAllOf"></my-select-tags>
0b18f4aa
C
167 </div>
168
169 <div class="form-group">
170 <label i18n for="tagsOneOf">One of these tags</label>
25266908
RK
171 <button i18n class="reset-button reset-button-small" (click)="resetField('tagsOneOf')" *ngIf="advancedSearch.tagsOneOf">
172 Reset
173 </button>
9abd170d 174 <my-select-tags name="tagsOneOf" labelForId="tagsOneOf" id="tagsOneOf" [(ngModel)]="advancedSearch.tagsOneOf"></my-select-tags>
0b18f4aa 175 </div>
5fb2e288 176
af7fd04a
C
177 <div class="form-group">
178 <label i18n for="host">PeerTube instance host</label>
179
180 <input (change)="onDurationOrPublishedUpdated()" (keydown.enter)="$event.preventDefault()" type="text" id="host" name="host"
181 placeholder="example.com" [(ngModel)]="advancedSearch.host" class="form-control"
182 >
183 </div>
184
8cf43a65
C
185 <div class="form-group">
186 <div class="radio-label label-container">
d0fbc9fd 187 <label for="resultType" i18n>Result types</label>
8cf43a65
C
188 <button i18n class="reset-button reset-button-small" (click)="resetField('resultType')" *ngIf="advancedSearch.resultType !== undefined">
189 Reset
190 </button>
191 </div>
192
193 <div class="peertube-radio-container">
194 <input type="radio" name="resultType" id="resultTypeVideos" value="videos" [(ngModel)]="advancedSearch.resultType">
195 <label i18n for="resultTypeVideos" class="radio">Videos</label>
196 </div>
197
198 <div class="peertube-radio-container">
199 <input type="radio" name="resultType" id="resultTypeChannels" value="channels" [(ngModel)]="advancedSearch.resultType">
200 <label i18n for="resultTypeChannels" class="radio">Channels</label>
201 </div>
202
203 <div class="peertube-radio-container">
204 <input type="radio" name="resultType" id="resultTypePlaylists" value="playlists" [(ngModel)]="advancedSearch.resultType">
205 <label i18n for="resultTypePlaylists" class="radio">Playlists</label>
206 </div>
207
208 </div>
209
5fb2e288
C
210 <div class="form-group" *ngIf="isSearchTargetEnabled()">
211 <div class="radio-label label-container">
d0fbc9fd 212 <label for="searchTarget" i18n>Search target</label>
5fb2e288
C
213 </div>
214
215 <div class="peertube-radio-container">
216 <input type="radio" name="searchTarget" id="searchTargetLocal" value="local" [(ngModel)]="advancedSearch.searchTarget">
217 <label i18n for="searchTargetLocal" class="radio">Instance</label>
218 </div>
219
220 <div class="peertube-radio-container">
221 <input type="radio" name="searchTarget" id="searchTargetSearchIndex" value="search-index" [(ngModel)]="advancedSearch.searchTarget">
222 <label i18n for="searchTargetSearchIndex" class="radio">Vidiverse</label>
223 </div>
224 </div>
0b18f4aa
C
225 </div>
226 </div>
227
228 <div class="submit-button">
25266908
RK
229 <button i18n class="reset-button" (click)="reset()" *ngIf="advancedSearch.size()">
230 Reset
231 </button>
232
0b18f4aa
C
233 <input type="submit" i18n-value value="Filter">
234 </div>
31d065cc 235</form>