]> git.parisson.com Git - teleforma.git/commitdiff
fix no value
authoryomguy <yomguy@parisson.com>
Tue, 3 Jul 2012 13:27:04 +0000 (15:27 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 3 Jul 2012 13:27:04 +0000 (15:27 +0200)
teleforma/templates/postman/base_write.html

index cdbb3d77500d5ae8f472d7642a22aa8de37a290d..0f99c0400038a966fec610924f0bca217800ec80 100644 (file)
@@ -20,7 +20,7 @@
 <div style="padding-top: 0.5em;">
 
 <select id="_adminSelect" name="admins" onchange="update_recipients();">
-<option>{% trans "to an administrator" %}</option>
+<option value="">{% trans "to an administrator" %}</option>
 {% get_all_admins as admins %}
 {% for a in admins %}
 <option value="{{ a.username }}">{{a.first_name}} {{a.last_name}}</option>
 </select>
 
 <select id="_professorSelect" name="professors" onchange="update_recipients();">
-<option>{% trans "to a professor" %}</option>
+<option value="">{% trans "to a professor" %}</option>
 {% get_all_professors as professors %}
 {% for p in professors %}
 <option value="{{ p.user.username }}">{{p.user.first_name}} {{p.user.last_name}}</option>
 {% endfor %}
 </select>
 
-{% if user.is_staff %}
-<select id="_iejSelect" name="iejs" onchange="update_recipients();">
-<option>{% trans "to an IEJ" %}</option>
-{% get_all_iejs as iejs %}
-{% for i in iejs %}
-<option value="{{ i.name }}">{{i.name}}</option>
-{% endfor %}
-</select>
-{% endif %}
-
 </div>
 {% endif %}
 
@@ -69,11 +59,6 @@ $("#_adminSelect").click(function () {
       var htmlStr = $(this).val();
       $("#id_recipients").val(htmlStr);
     });
-$("#_iejSelect").click(function () {
-      var htmlStr = $(this).val();
-      $("#id_recipients").val(htmlStr);
-    });
-
 }
 
 $('#send_button').click(function() {