The editlive template tags accepts three kind of options.

  • template tag options: these options affect the template tag behavior
  • data options: options starting with data_
  • widget options: all other options you may pass will be sent to the jQuery UI widget

Template tag options


Add a CSS class to the control’s container.:

{%load editlive_tags%}
{%editlive "object.date_test" wrapclass="lead" as field%}{{field}}


Editlive fields are rendered with standard django template. This option is used to load extra template tags in these template instance. As is this option is not really useful, it’s more a complement to the next option.


With the template_filters option you can control the rendering of the placeholder value.


Smaller placeholder/input.


Set max width of the placeholder.


Set the width of the placeholder.


Toggle readonly mode:

{%load editlive_tags%}
{%editlive "object.date_test" readonly=object.is_archived as field%}{{field}}


If you are iterating over a object set you will need to use the formset argument so each field as its own id.

    {% for line in object.relatedobject_set.all %}
        <td>{% editlive "line.name" formset="myformset" line_name %}{{ line_name }}</td>
        <td>{% editlive "line.email" formset="myformset" line_email %}{{ line_email }}</td>
    {% endfor %}


Add class to the wrapper. A fixedwidth class helper is provided. When used in conjunction with width, if the text of the placeholder is wider than its container will be truncated and an elipsis will be added:

class=”fixedwidth span1”

{%load editlive_tags%}
{%editlive "object.date_test" width="100" class="fixedwidth" as field%}{{field}}