{% load l10n sniplates rijkshuisstijl %}{% singleline %} {% comment %} class: Sets additional wrapper classes. choices: Set to model choices to create datalist providing suggestions (requires id). id: Sets the input id. form_id: Sets the form attribute. name: Sets the input name. placeholder: Sets the placeholder label. value: Sets the input value. type: Sets the input type. size: Sets the input size. disabled: Makes the input disabled. min: Sets the input mininum value. max: Sets the input maximum value. readonly: Makes the input read-only. required: Makes the input required. onchange: Sets the onchange attribute. {% endcomment %} {% singleline %} {% if type == 'file' %} {% endif %} {% if choices %} {% try %} {% for key, value in choices %} {% endfor %} {% except %} {% for choice in choices %} {% firstof choice.0 choice.pk as choice_value %} {% endfor %} {% endtry %} {% endif %} {% endsingleline %}