Macros ====== These macros will help you to generate Rings codes quickly and easily. render_field() -------------- Render a field of a form created with Flask-WTF/WTForms. Example ^^^^^^^ .. code:: jinja {% from 'rings/wtf.html' import render_field %}
Args ^^^^ .. py:function:: render_field(field, button_type="btn-blue", class="") :param field: The field to render :param button_type: The style of the submit button, defaults to "btn-blue" :param class: The extra classes to be added to the field Tip: You can include spaces in the ``button_type`` argument, for example: .. code:: jinja {% from 'rings/wtf.html' import render_field %} render_form() ------------- Render a form created with Flask-WTF/WTForms. Example ^^^^^^^ .. code:: jinja {% from 'rings/wtf.html' import render_form %}