This commit is contained in:
Michel Roux 2023-01-04 14:40:07 +01:00
parent 0d8dd65028
commit abfb1bfe7f
2 changed files with 23 additions and 5 deletions

View File

@ -3,6 +3,20 @@
<section class="hero is-fullheight-with-navbar">
<div class="hero-body m-auto">
<p class="title">{{ _("π😼た") }}</p>
<div class="subtitle">
<form action="{{ url_for('index') }}">
<div class="field has-addons">
<div class="control">
{{ search_form.q(placeholder=_("Search animes ..."), class="input", value=request.args.get("q", "")) }}
</div>
<div class="control">
<button type="submit" class="button">
<i class="fa fa-search"></i>
</button>
</div>
</div>
</form>
</div>
</div>
</section>
{% endblock body %}

View File

@ -32,11 +32,15 @@
<div class="navbar-end">
{% if request.endpoint != "index" %}
<form action="{{ url_for('index') }}" class="navbar-item">
<div class="control has-icons-right">
{{ search_form.q(placeholder=_("Search animes ..."), class="input is-rounded", value=request.args.get("q", "")) }}
<span class="icon is-small is-right">
<i class="fa fa-search"></i>
</span>
<div class="field has-addons">
<div class="control">
{{ search_form.q(placeholder=_("Search animes ..."), class="input", value=request.args.get("q", "")) }}
</div>
<div class="control">
<button type="submit" class="button">
<i class="fa fa-search"></i>
</button>
</div>
</div>
</form>
{% endif %}