{%  if autocomplete is not null %}
    {% set addDataControl = "data-autocomplete=" ~ autocomplete  %}
{% endif %}
<div class="{{ class }}">
    <label>{{ label }}</label>
    <input type="{{ type }}" name="{{ idName }}" id="{{ idName }}" placeholder="{{ label }}" {{ addDataControl }} value="{{ value }}" class="form-control"  >
    <button type="button" id="modal-{{ idName }}" class="btn btn-xs" aria-label="Right Align"
            data-moussabind="moussajax.moussaModal"
            data-width="500"
            data-title="New serie"
            data-url="{{ R.url('_Intranet_WorkAjaxeditSerie',{'context' : 'Intranet',param: [value] }) }}"

            >
        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> New {{ label }}
    </button>
</div>