oshipka/vm_gen/templates/html/_action_search.html

6 lines
278 B
HTML
Raw Normal View History

2021-05-08 15:52:52 +02:00
{% 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 %}