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"> <section class="hero is-fullheight-with-navbar">
<div class="hero-body m-auto"> <div class="hero-body m-auto">
<p class="title">{{ _("π😼た") }}</p> <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> </div>
</section> </section>
{% endblock body %} {% endblock body %}

View File

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