contact
This commit is contained in:
parent
f71af8182f
commit
7fa17fe8e3
|
@ -9,8 +9,8 @@ from django.forms.widgets import Textarea
|
|||
from django.utils.html import urlize
|
||||
|
||||
class ContactForm(forms.Form):
|
||||
email = forms.EmailField()
|
||||
name = forms.CharField(max_length=255)
|
||||
email = forms.EmailField()
|
||||
message = forms.CharField(widget=Textarea(attrs={'cols': 10, 'rows': 6}))
|
||||
|
||||
'''
|
||||
|
|
|
@ -7,6 +7,12 @@
|
|||
<table>
|
||||
|
||||
{{ form.as_table }}
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
<input type="submit" value="Submit" />
|
||||
</td>
|
||||
</table>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user