##// END OF EJS Templates
Merged with the old validation changes.
neko259 -
r75:bb74538a merge default
parent child Browse files
Show More
@@ -40,7 +40,6 b' class PostForm(forms.Form):'
40 40
41 41 class ThreadForm(PostForm):
42 42 regex_tags = re.compile(ur'^[\w\s\d]+$', re.UNICODE)
43
44 43 tags = forms.CharField(max_length=100)
45 44
46 45 def clean_tags(self):
@@ -8,6 +8,19 b' html {'
8 8 color: #00FF00
9 9 }
10 10
11 .input_field {
12
13 }
14
15 .input_field_name {
16
17 }
18
19 .input_field_error {
20 color: #FF0000;
21 }
22
23
11 24 .title {
12 25 font-weight: bold;
13 26 color: #ffcc00;
@@ -62,6 +62,19 b' li {'
62 62 color: #fff;
63 63 }
64 64
65 .input_field {
66
67 }
68
69 .input_field_name {
70
71 }
72
73 .input_field_error {
74 color: #FF0000;
75 }
76
77
65 78 .title {
66 79 color: #182F6F;
67 80 font-weight: bold;
@@ -108,18 +108,22 b''
108 108 <div class="form-row">
109 109 <div class="form-label">{% trans 'Title' %}</div>
110 110 <div class="form-input">{{ form.title }}</div>
111 <div class="form-errors">{{ form.title.errors }}</div>
111 112 </div>
112 113 <div class="form-row">
113 114 <div class="form-label">{% trans 'Text' %}</div>
114 115 <div class="form-input">{{ form.text }}</div>
116 <div class="form-errors">{{ form.text.errors }}</div>
115 117 </div>
116 118 <div class="form-row">
117 119 <div class="form-label">{% trans 'Image' %}</div>
118 120 <div class="form-input">{{ form.image }}</div>
121 <div class="form-errors">{{ form.image.errors }}</div>
119 122 </div>
120 123 <div class="form-row">
121 124 <div class="form-label">{% trans 'Tags' %}</div>
122 125 <div class="form-input">{{ form.tags }}</div>
126 <div class="form-errors">{{ form.tags.errors }}</div>
123 127 </div>
124 128 </div>
125 129 <div class="form-submit"><input type="submit"
@@ -61,6 +61,7 b''
61 61 <hr />
62 62 {% endif %}
63 63
64 <<<<<<< local
64 65 <form id="form" enctype="multipart/form-data" method="post"
65 66 >{% csrf_token %}
66 67 <div class="post-form-w">
@@ -69,14 +70,17 b''
69 70 <div class="form-row">
70 71 <div class="form-label">{% trans 'Title' %}</div>
71 72 <div class="form-input">{{ form.title }}</div>
73 <div class="form-errors">{{ form.title.errors }}</div>
72 74 </div>
73 75 <div class="form-row">
74 76 <div class="form-label">{% trans 'Text' %}</div>
75 77 <div class="form-input">{{ form.text }}</div>
78 <div class="form-errors">{{ form.text.errors }}</div>
76 79 </div>
77 80 <div class="form-row">
78 81 <div class="form-label">{% trans 'Image' %}</div>
79 82 <div class="form-input">{{ form.image }}</div>
83 <div class="form-errors">{{ form.image.errors }}</div>
80 84 </div>
81 85 </div>
82 86 <div class="form-submit"><input type="submit"
General Comments 0
You need to be logged in to leave comments. Login now