<form method="post" action="{{ action }}" class="settings-form{% if class is defined %} {{ class }}{% endif %}">
    {{ fields }}
</form>