from django.utils.safestring import mark_safe
from django import forms


class ReviewForm(forms.Form):
    campus_audience = forms.CharField(
        widget=forms.widgets.Textarea(),
        label='What UW audiences does your application target?')
    campus_need = forms.CharField(
        widget=forms.widgets.Textarea(),
        label='What broad UW campus need does your application address?')
    sponsor_name = forms.CharField(label='Name:')
    sponsor_netid = forms.CharField(label='UW NetID:')
    sponsor_email = forms.EmailField(label='Email:')
    dev_name = forms.CharField(label='UW NetID:')
    dev_email = forms.EmailField(label='Email:')
    support_name = forms.CharField(label='Name:')
    support_email = forms.EmailField(label='Email:')
    support_contact = forms.CharField(
        widget=forms.widgets.Textarea(),
        label='Other contact information:',
        required=False)
    ats_review = forms.BooleanField(
        required=False,
        label=mark_safe('Accessibility review with <a href="http://www.\
            washington.edu/accessibility/" title="Accessible Technology \
            Services">UW-IT ATS</a>'),
        label_suffix='')
    ux_review = forms.BooleanField(
        required=False,
        label=mark_safe('Usability review with <a href="http://depts.\
            washington.edu/ux/consultation/" title="ACA User Experience \
            Team">ACA UX team</a>'),
        label_suffix='')
    brand_review = forms.BooleanField(
        required=False,
        label=mark_safe('Consulted <a href="http://www.washington.edu/\
            brand/">UW Brand Guidelines</a>'),
        label_suffix='')
    app_documentation = forms.URLField(
        label='URL for app documentation:',
        required=False)
    app_code = forms.CharField(
        widget=forms.widgets.Textarea(),
        label='How can we review the app?')
    anything_else = forms.CharField(
        widget=forms.widgets.Textarea(),
        label='Anything else that we should know?',
        required=False)

@@ -984,16 +984,30 @@
 rk_safe(
+%0A            (
 'Accessi
@@ -1017,32 +1017,48 @@
 ity review with 
+'%0A             '
 %3Ca href=%22http://
@@ -1061,30 +1061,16 @@
 p://www.
-%5C%0A            
 washingt
@@ -1092,16 +1092,32 @@
 ility/%22 
+'%0A             '
 title=%22A
@@ -1137,30 +1137,16 @@
 hnology 
-%5C%0A            
 Services
@@ -1158,24 +1158,25 @@
 IT ATS%3C/a%3E')
+)
 ,%0A        la
@@ -1274,16 +1274,30 @@
 rk_safe(
+%0A            (
 'Usabili
@@ -1311,16 +1311,32 @@
 ew with 
+'%0A             '
 %3Ca href=
@@ -1349,30 +1349,16 @@
 //depts.
-%5C%0A            
 washingt
@@ -1382,16 +1382,32 @@
 ation/%22 
+'%0A             '
 title=%22A
@@ -1425,30 +1425,16 @@
 erience 
-%5C%0A            
 Team%22%3EAC
@@ -1444,24 +1444,25 @@
 X team%3C/a%3E')
+)
 ,%0A        la
@@ -1563,16 +1563,30 @@
 rk_safe(
+%0A            (
 'Consult
@@ -1627,9 +1627,18 @@
 edu/
-%5C
+brand/%22%3E '
 %0A   
@@ -1646,24 +1646,18 @@
         
-brand/%22%3E
+ '
 UW Brand
@@ -1673,16 +1673,17 @@
 es%3C/a%3E')
+)
 ,%0A      

Fix broken links in form due by using automatic string concatenation over breaking the line with a backslash.