Files
pedwfrontend/components/search/searchforcase.js
T

159 lines
7.5 KiB
JavaScript

import Link from "next/link";
import { useRouter } from "next/router";
import useTranslation from "next-translate/useTranslation";
export default function SearchForCase() {
let { t } = useTranslation();
const router = useRouter();
const { locale } = router;
return (
<div className="card" id="searchforcase-card">
<div className="card-body">
<div class="govuk-body-m ">
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h1 class="govuk-fieldset__heading govuk-heading-m">
{t("search:search-title-label")}
</h1>
</legend>
<div class="govuk-form-group">
<label class="govuk-label" for="address-county">
{t("search:casereference-label")}
</label>
<input
class="govuk-input govuk-!-width-two-thirds"
id="address-county"
name="address-county"
type="text"
/>
</div>
<fieldset class="govuk-fieldset">
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h3 class="govuk-heading-m">
{t("search:sitelocation-legend")}
</h3>
</legend>
<div class="govuk-form-group">
<label class="govuk-label" for="address-line-1">
{t("search:address-line-one-label")}
</label>
<input
class="govuk-input"
id="address-line-1"
name="address-line-1"
type="text"
autocomplete="address-line1"
/>
</div>
<div class="govuk-form-group">
<label class="govuk-label" for="address-town">
{t("search:town-label")}
</label>
<input
class="govuk-input govuk-!-width-two-thirds"
id="address-town"
name="address-town"
type="text"
autocomplete="address-level2"
/>
</div>
<div class="govuk-form-group">
<label class="govuk-label" for="address-county">
{t("search:county-label")}
</label>
<input
class="govuk-input govuk-!-width-two-thirds"
id="address-county"
name="address-county"
type="text"
/>
</div>
<div class="govuk-form-group">
<label class="govuk-label" for="address-postcode">
{t("search:postcode-label")}
</label>
<input
class="govuk-input govuk-input--width-10"
id="address-postcode"
name="address-postcode"
type="text"
autocomplete="postal-code"
/>
</div>
</fieldset>
<div class="govuk-form-group">
<label class="govuk-label" for="address-postcode">
{t("search:lpa-label")}{" "}
</label>
<input
class="govuk-input govuk-input--width-10"
id="address-postcode"
name="address-postcode"
type="text"
autocomplete="postal-code"
/>
</div>
<div class="govuk-form-group">
<label class="govuk-label" for="address-postcode">
{t("search:lpa-reference-label")}{" "}
</label>
<input
class="govuk-input govuk-input--width-10"
id="address-postcode"
name="address-postcode"
type="text"
autocomplete="postal-code"
/>
</div>
<div class="govuk-form-group">
<label class="govuk-label" for="sort">
{t("search:case-type-label")}{" "}
</label>
<select class="govuk-select" id="sort" name="sort">
<option value="">
{t("search:case-type-option-1")}
</option>
<option value="Any/All">
{t("search:case-type-option-2")}
</option>
<option value="Advertisement Appeals">
{t("search:case-type-option-3")}
</option>
<option value="Called in Planning Applications">
{t("search:case-type-option-4")}
</option>
<option value="Discontinuance Notice Appeals">
{t("search:case-type-option-5")}
</option>
<option value="Enforcement Listed Building and Conservation Area Appeals">
{t("search:case-type-option-6")}
</option>
<option value="Enforcement Appeals">
{t("search:case-type-option-7")}
</option>
<option value="Householder Appeals">
{t("search:case-type-option-8")}
</option>
<option value="Lawful Development Certificate Appeals">
{t("search:case-type-option-9")}
</option>
<option value="Planning Appeals">
{t("search:case-type-option-10")}
</option>
<option value="Planning Obligation Appeals">
{t("search:case-type-option-11")}
</option>
<option value="Planning Listed Building and Conservation Area Appeals">
{t("search:case-type-option-12")}
</option>
</select>
</div>
</div>
</div>
</div>
);
}