oshipka/vm_gen/templates/html/_action_search.html
2021-05-08 15:52:52 +02:00

6 lines
278 B
HTML

{% if has_permission('[[ name|camel_to_snake ]]', 'search') %}
<form action="{{ url_for('search_[[ name|camel_to_snake ]]') }}">
<input type="text" name="q" value="{{ request.args.q }}" placeholder="search [[ name|pluralize ]]">
<input type="submit">
</form>
{% endif %}