comparison sat_templates/templates/bulma/input/field.html @ 259:a18374320194

bulma (components/common, input/field, input/form): use `xmlattr` for `id`
author Goffi <goffi@goffi.org>
date Sat, 01 Aug 2020 17:01:31 +0200
parents 60bf3e45d7b2
children edefc1f25219
comparison
equal deleted inserted replaced
258:5e51ce9376ed 259:a18374320194
112 112
113 @param text(str): label of the button 113 @param text(str): label of the button
114 @param id(none, str): id of the element 114 @param id(none, str): id of the element
115 #} 115 #}
116 <div class="control {{class}}"> 116 <div class="control {{class}}">
117 <button {{ 'id="{id}"'.format(id=id)|safe if id }} class="button is-primary form_submit {{kwargs.pop('class', '')}}" type="submit">{{text}}</button> 117 <button{{ {'id': id}|xmlattr }} class="button is-primary form_submit {{kwargs.pop('class', '')}}" type="submit">{{text}}</button>
118 </div> 118 </div>
119 {% endmacro %} 119 {% endmacro %}