aboutsummaryrefslogtreecommitdiffstats
path: root/public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html')
-rw-r--r--public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html b/public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html
new file mode 100644
index 0000000..8854d5d
--- /dev/null
+++ b/public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html
@@ -0,0 +1,30 @@
+<form [formGroup]="searchForm" (ngSubmit)="onSubmit()" class="form">
+ <fieldset class="form__fieldset">
+ <legend class="form__legend">Search a new recipe</legend>
+ <div class="form__item">
+ <label for="search-by" class="form__label">By</label>
+ <select
+ id="search-by"
+ name="search-by"
+ class="form__select"
+ formControlName="by"
+ >
+ <option value="name" selected>Name</option>
+ <option value="ingredient">Ingredient</option>
+ <option value="category">Category</option>
+ </select>
+ </div>
+ <div class="form__item">
+ <label for="search-query" class="form__label">Query</label>
+ <input
+ type="search"
+ name="search-query"
+ id="search-query"
+ formControlName="query"
+ class="form__input"
+ placeholder="Keywords..."
+ />
+ </div>
+ <button class="btn" type="submit">Search</button>
+ </fieldset>
+</form>