Browse Source

Display comment in contrib form

Jocelyn Delande 9 years ago
parent
commit
cc3ff87200

+ 1 - 0
wifiwithme/apps/contribmap/forms.py

@@ -38,6 +38,7 @@ class PublicContribForm(forms.ModelForm):
             'longitude': forms.HiddenInput,
             'connect_local': forms.CheckboxInput,
             'connect_internet': forms.CheckboxInput,
+            'comment': forms.Textarea({'rows': 3}),
         }
     # Widget rendering is managed by hand in template for orientions.
     orientations = forms.MultipleChoiceField(choices=ORIENTATIONS)

+ 5 - 0
wifiwithme/apps/contribmap/templates/contribmap/wifi-form.html

@@ -157,6 +157,11 @@ pourraient être intéressantes.
 {% endfor %}
     {{ form.orientations.errors }}
     </label>
+
+    <h2>Remarque/commentaire</h2>
+    {{ form.comment|formcontrol }}
+    {{ form.comment.errors }}
+
     <input type="submit" value="Envoyer" class="btn btn-primary btn-lg"/>
   </form>
   </section>