Skip to content

Commit

Permalink
Search, new routes
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbowen committed Oct 5, 2023
1 parent 60137bd commit 7b39985
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 1 deletion.
35 changes: 35 additions & 0 deletions app/main/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,41 @@ def accessibility():
return render_template("accessibility.html")


@bp.route("/dashboard", methods=["GET"])
def dashboard():
return render_template("dashboard.html")


@bp.route("/search", methods=["GET"])
def search():
return render_template("search.html")


@bp.route("/advanced-search", methods=["GET"])
def advanced_search():
return render_template("search.html")


@bp.route("/record", methods=["GET"])
def results():
return render_template("results.html")


@bp.route("/browse", methods=["GET"])
def browse():
return render_template("browse.html")


@bp.route("/record", methods=["GET"])
def record():
return render_template("record.html")


@bp.route("/all-departments", methods=["GET"])
def departments():
return render_template("departments.html")


@bp.route("/cookies", methods=["GET", "POST"])
def cookies():
form = CookiesForm()
Expand Down
2 changes: 1 addition & 1 deletion app/templates/main/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{%- from 'govuk_frontend_jinja/components/back-link/macro.html' import govukBackLink -%}
{%- from 'govuk_frontend_jinja/components/inset-text/macro.html' import govukInsetText -%}

{% block pageTitle %}Accessibility statement – {{config['SERVICE_NAME']}} – GOV.UK{% endblock %}
{% block pageTitle %}Dashboard – {{config['SERVICE_NAME']}} – GOV.UK{% endblock %}

{% block beforeContent %}
{{ super() }}
Expand Down
41 changes: 41 additions & 0 deletions app/templates/main/search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{% extends "base.html" %}

{%- from 'govuk_frontend_jinja/components/radios/macro.html' import govukRadios -%}
{%- from 'govuk_frontend_jinja/components/inset-text/macro.html' import govukInsetText -%}



{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
{{ super() }}
<h1 class="govuk-heading-xl">Search</h1>


<div class="govuk-form-group govuk-!-display-inline">
<fieldset class="govuk-fieldset">
<legend class="govuk-fieldset__legend govuk-fieldset__legend--m">
<h1 class="govuk-fieldset__heading">
Filter
</h1>
</legend>
<div class="govuk-radios govuk-radios--small" data-module="govuk-radios">
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="changedName" name="changedName" type="radio" value="month">
<label class="govuk-label govuk-radios__label" for="changedName">
My Records
</label>
</div>
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="changedName-2" name="changedName" type="radio" value="year">
<label class="govuk-label govuk-radios__label" for="changedName-2">
All Departments
</label>
</div>
</div>
</fieldset>
</div>

</div>
</div>
{% endblock %}

0 comments on commit 7b39985

Please sign in to comment.