Polish
authorCharles Connell <charles@connells.org>
Tue, 18 Mar 2014 20:00:22 +0000 (16:00 -0400)
committerCharles Connell <charles@connells.org>
Tue, 18 Mar 2014 20:00:31 +0000 (16:00 -0400)
karmaworld/apps/courses/forms.py
karmaworld/assets/css/add_course.css [new file with mode: 0644]
karmaworld/assets/css/home.css
karmaworld/settings/common.py
karmaworld/templates/partial/add_course.html

index 3573dd63519c526cd961755a0c5027026cafca46..da68634492cbd554f6d504aeb6671ad12e85d981 100644 (file)
@@ -8,7 +8,7 @@ from django.conf import settings
 from django.forms import CharField
 from django.forms import ValidationError
 
-from ajax_select.fields import AutoCompleteField
+from ajax_select.fields import AutoCompleteField, AutoCompleteSelectWidget
 from ajax_select.fields import AutoCompleteSelectField
 from ajax_select_cascade.fields import AutoCompleteDependentSelectField
 
@@ -36,7 +36,8 @@ class ProfessorForm(NiceErrorModelForm, ACFieldModelForm):
     name = AutoCompleteSelectField('professor_object_by_name', help_text='',
         label="Professor's name",
         # allows creating a new Professor on the fly
-        required=False)
+        required=False,
+        widget=AutoCompleteSelectWidget('professor_object_by_name', attrs={'class': 'small-6 columns'}))
     email = AutoCompleteSelectField('professor_object_by_email', help_text='',
         label="Professor's email address",
         # allows creating a new Professor on the fly
diff --git a/karmaworld/assets/css/add_course.css b/karmaworld/assets/css/add_course.css
new file mode 100644 (file)
index 0000000..437e805
--- /dev/null
@@ -0,0 +1,10 @@
+.results_on_deck
+{
+  padding: 0;
+}
+
+span.required-field
+{
+  font-size: 0.8em;
+  color: red;
+}
\ No newline at end of file
index 41c0199878f7692e7ce9fdea775939f4f4d29620..399fadbfe1fdca10c11f5e8686ae71f8e361f207 100644 (file)
 .ui-menu .ui-menu-item a {
   font-size: 18px;
 }
+
index 37ec641a9b972c79c1c0c7df72cc71af20c4f05f..0f40013dbdadb33dfc9a4ed007b3f988570112c1 100644 (file)
@@ -386,7 +386,7 @@ TAGGIT_STOPWORDS = [u'a', u'an', u'and', u'be', u'from', u'of']
 # https://github.com/sunlightlabs/django-honeypot
 HONEYPOT_FIELD_NAME = "instruction_url" # see that "_url"? bots gotta want that.
 HONEYPOT_VALUE = ""
-HONEYPOT_LABEL = "Do not fill in this field:"
+HONEYPOT_LABEL = "Do not fill in this field (we need to make sure you're not a robot)"
 HONEYPOT_ERROR = "You did not follow directions."
 ########## END HONEYPOT CONFIGURATION
 
index fd8c7aa640ae8da2eca7a822c3bf97dbb0be83f8..334f0818b22eb1496dbf5a2329c9a6201debea45 100644 (file)
@@ -8,6 +8,7 @@
 <script src="{{ STATIC_URL }}js/course.js"></script>
 <script src="{{ STATIC_URL }}js/add-course.js"></script>
 {{ course_form.media }}
+<link href="{{ STATIC_URL }}css/add_course.css" type="text/css" media="all" rel="stylesheet" />
 
 <section id="add-course-form">
   <form method="POST" action="{% url 'home' %}">