forms,templates: move error message about missing course upper, and make it red
fixes #4028
This commit is contained in:
parent
c21b4a2004
commit
c302a871f6
|
@ -130,6 +130,12 @@ laquelle vous souhaitez diffuser votre document')
|
|||
self.helper.layout = Layout(
|
||||
Field('copyright', css_class="span12"),
|
||||
Field('licence', css_class="span12"),
|
||||
HTML('''
|
||||
{% if form.course_name.errors %}
|
||||
<div class="alert-error">
|
||||
{{ form.course_name.errors }}
|
||||
</div>
|
||||
{% endif %}'''),
|
||||
HTML('<script>var licence_pks_with_mycourse_tag = [%s];</script>' %
|
||||
', '.join(map(str, licence_pks_with_mycourse_tag))),
|
||||
Fieldset(u'Diffusion sur la plate-forme MyCourse',
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
{% load url from future %}
|
||||
{% if wizard.form.course_name.errors %}
|
||||
<div class="alert">
|
||||
{{ wizard.form.course_name.errors }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<style>
|
||||
.type-ue .controls button {
|
||||
height: auto;
|
||||
|
|
Reference in New Issue