forked from projects/thebadspace
477d6727f4
Activated the full text search on the index pages as well as plugging in a tempalte to show location information. Still needs to be styled but it's all wired up. Also cleaned some typos in the About description. One day I'll be able to spell. One day.
34 lines
953 B
Twig
34 lines
953 B
Twig
{% extends "base/frame.twig" %}
|
|
{% block stylesheets %}
|
|
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
<section role="start">
|
|
<div role="index-wrapper">
|
|
<div role="index-search">
|
|
<form action="{{ path('index') }}" method="post" enctype="multipart/form-data">
|
|
<input type="text" name="index_search" value="" placeholder="Take a look"/>
|
|
<button>
|
|
<i class="ti ti-search"></i>
|
|
</button>
|
|
</form>
|
|
{{ options.count }}
|
|
Bad Spaces tracked. Shot by
|
|
<a href="https://unsplash.com/photos/935EcPU1pBI">Ussama Azam</a>
|
|
|
|
</div>
|
|
{% if options.items is defined %}
|
|
<div role="index-results">
|
|
<h3>Found</h3>
|
|
{% for item in options.items %}
|
|
<a class="search-link" href="/location/{{ item.uuid }}">{{ item.name }}</a><br/>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
|
|
</section>
|
|
{% endblock %}
|