{% extends "base.html" %} {% block content %}
{% if edit %}

Edit {{ class_name }} : {{ obj }}

{% else%}

Create new {{ class_name }}

{% endif %}
{% csrf_token %} {% include "blocks/display_form.html" %}
{% endblock %} {% block scriptsready %} $( "form label" ).addClass(function( index ) { return "col-sm-2 control-label"; }); $( "form input" ).addClass(function( index ) { return "form-control"; }); $( "form select" ).addClass(function( index ) { return "form-control selectpicker"; }); $('.has-popover').popover({'trigger':'hover'}); {% endblock %} {% block scripts %} {% endblock %}