mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-10 06:24:45 +02:00
Move purpose attributes back to the view
This commit is contained in:
parent
dc9b8dac0e
commit
be4527386c
2 changed files with 2 additions and 8 deletions
|
@ -66,12 +66,7 @@ class ContactForm(forms.Form):
|
|||
street_address = forms.CharField(label="Street address")
|
||||
|
||||
class PurposeForm(forms.Form):
|
||||
purpose_field = forms.CharField(label="Purpose", widget=forms.Textarea(
|
||||
attrs={ 'class':'usa-textarea usa-character-count__field',
|
||||
'id':'with-hint',
|
||||
'aria-describedby':'instructions',
|
||||
'maxlength':'500',
|
||||
}))
|
||||
purpose_field = forms.CharField(label="Purpose", widget=forms.Textarea())
|
||||
|
||||
class AuthorizingOfficialForm(forms.Form):
|
||||
given_name = forms.CharField(label="First name/given name")
|
||||
|
|
|
@ -18,11 +18,10 @@
|
|||
|
||||
<div class="usa-character-count">
|
||||
{{ wizard.form.purpose_field|add_label_class:"usa-label" }}
|
||||
{{ wizard.form.purpose_field}}
|
||||
{{ wizard.form.purpose_field|add_class:"usa-textarea usa-character-count__field"|attr:"aria-describedby:instructions"|attr:"maxlength=500" }}
|
||||
<span class="usa-character-count__message" id="with-hint-textarea-info with-hint-textarea-hint"> You can enter up to 500 characters </span>
|
||||
</div>
|
||||
|
||||
<!-- {{ wizard.form.purpose_field|add_class:"usa-textarea usa-character-count__field"|attr:"aria-describedby:instructions"|attr:"maxlength=50" }} -->
|
||||
</div>
|
||||
|
||||
{% if wizard.steps.prev %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue