Mercurial > public > sg101
comparison bandmap/forms.py @ 1109:bb7e2fc24690
Convert bandmap to V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 10 Jul 2016 21:42:08 -0500 |
parents | 9a0df7bd2409 |
children |
comparison
equal
deleted
inserted
replaced
1108:7fd997285c9e | 1109:bb7e2fc24690 |
---|---|
19 help_texts = { | 19 help_texts = { |
20 'url': 'Link to website or web presence (optional)', | 20 'url': 'Link to website or web presence (optional)', |
21 'location': 'See examples, above', | 21 'location': 'See examples, above', |
22 } | 22 } |
23 widgets = { | 23 widgets = { |
24 'name': forms.TextInput(attrs={ | |
25 'size': 64, | |
26 'class': 'text'}), | |
27 'url': forms.TextInput(attrs={ | 24 'url': forms.TextInput(attrs={ |
28 'size': 64, | 25 'aria-describedby': 'url-help-text', |
29 'class': 'text', | |
30 'placeholder': 'http://'}), | 26 'placeholder': 'http://'}), |
31 'location': forms.TextInput(attrs={ | 27 'location': forms.TextInput(attrs={ |
32 'size': 64, | 28 'aria-describedby': 'location-help-text', |
33 'class': 'text', | |
34 'placeholder': 'Huntington Beach, CA, USA'}), | 29 'placeholder': 'Huntington Beach, CA, USA'}), |
35 'note': forms.TextInput(attrs={ | 30 'note': forms.TextInput(attrs={ |
36 'size': 64, | |
37 'class': 'text', | |
38 'placeholder': 'Optional short note about the band'}), | 31 'placeholder': 'Optional short note about the band'}), |
39 'lat': forms.HiddenInput(), | 32 'lat': forms.HiddenInput(), |
40 'lon': forms.HiddenInput(), | 33 'lon': forms.HiddenInput(), |
41 } | 34 } |