File: helpers.html

package info (click to toggle)
python-fswrap 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 192 kB
  • sloc: python: 786; xml: 4; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
{% macro input_field(name, value='', type='text') -%}
  <input type="{{ type }}" value="{{ value|e }}" name="{{ name }}">
{%- endmacro %}

{% macro textarea(name, value='', rows=10, cols=40) -%}
  <textarea name="{{ name }}" rows="{{ rows }}" cols="{{ cols }}">{{
    value|e }}</textarea>
{%- endmacro %}

{% macro form(action='', method='post') -%}
  <form action="{{ action|e }}" method="{{ method }}">{{ caller() }}</form>
{%- endmacro %}