From: Charles Connell Date: Tue, 18 Mar 2014 20:00:22 +0000 (-0400) Subject: Polish X-Git-Tag: release-20150131~147 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a5ce9bfce3638c7f1745dbd1230a5bfde0ab7cab;p=oweals%2Fkarmaworld.git Polish --- diff --git a/karmaworld/apps/courses/forms.py b/karmaworld/apps/courses/forms.py index 3573dd6..da68634 100644 --- a/karmaworld/apps/courses/forms.py +++ b/karmaworld/apps/courses/forms.py @@ -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 index 0000000..437e805 --- /dev/null +++ b/karmaworld/assets/css/add_course.css @@ -0,0 +1,10 @@ +.results_on_deck +{ + padding: 0; +} + +span.required-field +{ + font-size: 0.8em; + color: red; +} \ No newline at end of file diff --git a/karmaworld/assets/css/home.css b/karmaworld/assets/css/home.css index 41c0199..399fadb 100644 --- a/karmaworld/assets/css/home.css +++ b/karmaworld/assets/css/home.css @@ -123,3 +123,4 @@ .ui-menu .ui-menu-item a { font-size: 18px; } + diff --git a/karmaworld/settings/common.py b/karmaworld/settings/common.py index 37ec641..0f40013 100644 --- a/karmaworld/settings/common.py +++ b/karmaworld/settings/common.py @@ -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 diff --git a/karmaworld/templates/partial/add_course.html b/karmaworld/templates/partial/add_course.html index fd8c7aa..334f081 100644 --- a/karmaworld/templates/partial/add_course.html +++ b/karmaworld/templates/partial/add_course.html @@ -8,6 +8,7 @@ {{ course_form.media }} +