{% extends "base.html" %} {% block content %}
{% if obj.name %}

Edit {{ class_name }} : {{ obj.name }}

{% elif obj.c_id %}

Edit {{ class_name }} : {{ obj.c_id }}

{% 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"; }); {% endblock %} {% block scripts %} {% endblock %}