Projet

Général

Profil

0001-forms-add-empty-span-to-checkbox-widget-for-custom-C.patch

Frédéric Péters, 30 août 2018 22:34

Télécharger (912 octets)

Voir les différences:

Subject: [PATCH] forms: add empty span to checkbox widget, for custom CSS
 styles (#25978)

 wcs/qommon/form.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/form.py
231 231
        attrs.update(self.attrs)
232 232
    return htmltag("input", xml_end=True, type="checkbox", name=self.name,
233 233
                   value="yes", checked=self.value and "checked" or None,
234
                   **attrs)
234
                   **attrs) + htmltext('<span></span>')  # for custom style
235 235
CheckboxWidget.render_content = checkbox_render_content
236 236

  
237 237

  
238
-