Tranform user field into select2 field
authorLeonidas Poulopoulos <leopoul@noc.grnet.gr>
Thu, 28 Aug 2014 08:14:38 +0000 (11:14 +0300)
committerLeonidas Poulopoulos <leopoul@noc.grnet.gr>
Thu, 28 Aug 2014 08:14:38 +0000 (11:14 +0300)
templates/apply.html

index f6188dd..64d24bc 100644 (file)
@@ -85,6 +85,9 @@
 <script>
        $(document).ready( function(){
                $('#id_then').removeAttr("multiple");
+               {% if user.is_superuser %}
+                       $("#id_applier").select2();
+               {% endif %}
                $("#id_protocol").select2();
                $("#id_fragmenttype").select2();
                $("#id_then").select2();