{% macro render_input(field, inline=False) -%}
<div class="form-group">
  {% if inline %}
  {{ field.label(class="sr-only") }}
  {{ field(class="form-control", placeholder=field.label.text) }}
  {% else %}
  {#<p>{{ field }}</p>#}
    {% if field.widget.input_type == 'submit' %}
      {{ field(class="btn btn-default") }}
    {% else %}
      {% if field.widget.input_type != 'hidden' -%}
        {{ field.label }}
      {% endif %}
      {{ field(class="form-control") }}
    {% endif %}
  {% endif %}
</div>
{%- endmacro %}

{% macro render_form(form, button_text) -%}
<form class="form" method="post">
  {% for field in form -%}
  {{ render_input(field) }}
  {%- endfor %}
</form>
{%- endmacro %}

{% macro navbar_button(text, view=None) %}
{% if view %}
{% with url = url_for(view) %}
<li{{ ' class="active"'|safe if url == request.path }}><a href="{{ url }}">{{ text }}</a></li>
{% endwith %}
{% else %}
<li><a href="#">{{ text }}</a></li>
{% endif %}
{% endmacro %}

{% macro render_input(field, inline=False) -%}
<div class="form-group">
  {% if inline %}
  {{ field.label(class="sr-only") }}
  {{ field(class="form-control", placeholder=field.label.text) }}
  {% else %}
  {#<p>{{ field }}</p>#}
    {% if field.widget.input_type == 'submit' %}
      {{ field(class="btn btn-default") }}
    {% else %}
      {% if field.widget.input_type != 'hidden' -%}
        {{ field.label }}
      {% endif %}
      {{ field(class="form-control") }}
    {% endif %}
  {% endif %}
</div>
{%- endmacro %}

{% macro render_form(form, inline=False) -%}
<form class="form" method="post">
  {% for field in form -%}
  {{ render_input(field, inline) }}
  {%- endfor %}
</form>
{%- endmacro %}

{% macro navbar_button(text, view=None) %}
{% if view %}
{% with url = url_for(view) %}
<li{{ ' class="active"'|safe if url == request.path }}><a href="{{ url }}">{{ text }}</a></li>
{% endwith %}
{% else %}
<li><a href="#">{{ text }}</a></li>
{% endif %}
{% endmacro %}

Add the ability for inline forms to the render_form macro
Add the ability for inline forms to the render_form macro
