text: from django import forms
  from .models import Response
  from .models import Consent
  from .models import Interview
  from .models import Interview_q
  from .models import Gallery
  
  #Branch
  
  class Response(forms.ModelForm):
      #SectionA
      NUMBERS = [('1','1'),('2','2'),('3','3'),('4','4'),('5','5')]
      questionA_1 = forms.CharField(
          label='I enjoy looking at art.',
          widget=forms.RadioSelect(choices=NUMBERS))
  
      questionA_2 = forms.CharField(
          label='In my spare time I attend art or art history events.',
          widget=forms.RadioSelect(choices=NUMBERS))
      
      questionA_3 = forms.CharField(
          label='I enjoy looking at street art.',
          widget=forms.RadioSelect(choices=NUMBERS))
  
      questionA_4 = forms.CharField(
          label='Mostly when I see street art, I am pleased.',
          widget=forms.RadioSelect(choices=NUMBERS))
  
      questionA_5 = forms.CharField(
          label='I think that street art should be removed from the streets.',
          widget=forms.RadioSelect(choices=NUMBERS))
  
      #SectionB1
      CHOICES = [('Y','Yes'),('N','No'),('IDK',"I don't know")]
      questionB1_1 = forms.CharField(
          label='Are you familiar with this artwork or the artist?', 
          widget=forms.RadioSelect(choices=CHOICES))
      
      questionB1_2 = forms.CharField(label='If yes what do you know about it?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}), required=False)
  
      questionB1_3 = forms.CharField(
          label='Describe your reaction to the artwork. What do you think it is about? How does it make you feel? Or if you prefer, write the first three words which spring to mind.',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      #SectionB2
      #Canvas
      questionB1_4 = forms.CharField(
          label='Why did you draw the boundary here? Why did you choose this background image? Is there an element of the work you were unable to draw around that you feel should have been included within this frame?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      #SectionB3
      #description text
      #Canvas redraw
      questionB1_5 = forms.CharField(
          label='Why did you / did you not change where you would draw the frame encompassing the artwork?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      questionB1_6 = forms.CharField(
          label='Why did you draw the boundary here? Why did you choose this background image? Is there an element of the work you were unable to draw around that you feel should have been included within this frame?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      questionB1_7 = forms.CharField(
          label='How do you now feel about the artwork? Or if you prefer, write the first three words which spring to mind.',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      #SectionB4
      #image of auction
      questionB1_8 = forms.CharField(
          label='How do you know feel about the artwork in its gallery setting? Or if you prefer, write the first three words which spring to mind.',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      #SectionB4.5
      #auction canvas p
      #auction canvas
  
      #SectionB5
      questionB1_9 = forms.CharField(
          label='To what extent do you think the meaning and political associations of the piece might have changed now it’s no longer on the street?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      questionB1_10 = forms.CharField(
          label='What do you think should happen to street art when the building needs to be demolished? Do you think what happened in this case was the best solution? Why?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      questionB1_11 = forms.CharField(
          label='Why do you think it sold for so much? Do you think it was worth that price?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      questionB1_12 = forms.CharField(
          label='If you have any further comments about the topic, please leave them here:',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      class Meta:
          model = Response
          fields = ('questionA_1','questionA_2','questionA_3','questionA_4','questionA_5','questionB1_1','questionB1_2','questionB1_3','questionB1_4','questionB1_5','questionB1_6','questionB1_7','questionB1_8','questionB1_9','questionB1_10','questionB1_11','questionB1_12','drawing_0', 'drawing_1', 'drawing_2')
          widgets = {
              'drawing_0': forms.HiddenInput(),
              'drawing_1': forms.HiddenInput(),
              'drawing_2': forms.HiddenInput(),
          }
  
  class Consent(forms.ModelForm):
      consent0 = forms.BooleanField(required = True, label='I am over 18 years old.')
      consent1 = forms.BooleanField(required = True, label='I confirm that I have read and understand the information for the above study. I have had the opportunity to consider the information, ask questions and have had these answered satisfactorily.')
      consent2 = forms.BooleanField(required = True, label='I understand that my participation is voluntary and that I am free to withdraw at any time, without giving any reason, and without any adverse consequences or academic penalty.')
      consent3 = forms.BooleanField(required = True, label='I understand that research data collected during the study may be looked at by designated individuals from the University of Oxford where it is relevant to my taking part in this study. I give permission for these individuals to access my data.')
      consent4 = forms.BooleanField(required = True, label='I understand that this project has been reviewed by, and received ethics clearance through, the University of Oxford Central University Research Ethics Committee.')
      consent5 = forms.BooleanField(required = True, label='I understand who will have access to personal data provided, how the data will be stored and what will happen to the data at the end of the project.')
      consent6 = forms.BooleanField(required = True, label='I understand how this research will be written up and published.')
      consent7 = forms.BooleanField(required = True, label='I understand how to raise a concern or make a complaint.')
      consent8 = forms.BooleanField(required = True, label='I agree to take part in the study.')
      class Meta:
          model = Consent
          fields=('consent0','consent1','consent2','consent3','consent4','consent5','consent6','consent7','consent8')
  
  class Interview(forms.ModelForm):
      over18 = forms.BooleanField(required = True, label='I am over 18 years old.')
      name = forms.CharField(label='Name:',
          widget=forms.TextInput(attrs={'size':60}))
      email = forms.CharField(label='Email:',
          widget=forms.TextInput(attrs={'size':60}))
      class Meta:
          model = Interview
          fields=('over18','name','email')
  
  class Interview_q(forms.ModelForm):
      class Meta:
          model = Interview_q
          fields=('int_drawing_0','int_drawing_1') 
          widgets = {
              'int_drawing_0': forms.HiddenInput(),
              'int_drawing_1': forms.HiddenInput()
          } 
  
  
  class Gallery(forms.ModelForm):
      #SectionA
      NUMBERS = [('1','1'),('2','2'),('3','3'),('4','4'),('5','5')]
      questionA_1 = forms.CharField(
          label='I enjoy looking at art.',
          widget=forms.RadioSelect(choices=NUMBERS))
  
      questionA_2 = forms.CharField(
          label='In my spare time I attend art or art history events.',
          widget=forms.RadioSelect(choices=NUMBERS))
      
      questionA_3 = forms.CharField(
          label='I enjoy looking at street art.',
          widget=forms.RadioSelect(choices=NUMBERS))
  
      questionA_4 = forms.CharField(
          label='Mostly when I see street art, I am pleased.',
          widget=forms.RadioSelect(choices=NUMBERS))
  
      questionA_5 = forms.CharField(
          label='I think that street art should be removed from the streets.',
          widget=forms.RadioSelect(choices=NUMBERS))
  
      #SectionB1
      #image of gallery
      CHOICES = [('Y','Yes'),('N','No'),('IDK',"I don't know")]
      questionB1_1 = forms.CharField(
          label='Are you familiar with this artwork or the artist?', 
          widget=forms.RadioSelect(choices=CHOICES))
      
      questionB1_2 = forms.CharField(label='If yes what do you know about it?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}), required=False)
  
      questionB1_3 = forms.CharField(
          label='Describe your reaction to the artwork. What do you think it is about? How does it make you feel? Or if you prefer, write the first three words which spring to mind.',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      #SectionB2
      #Canvas gallery
      questionB1_4 = forms.CharField(
          label='Why did you draw the boundary here? Why did you choose this background image? Is there an element of the work you were unable to draw around that you feel should have been included within this frame?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      #SectionB3
      #description text
      #Canvas redraw gallery
      questionB1_5 = forms.CharField(
          label='Why did you / did you not change where you would draw the frame encompassing the artwork?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      questionB1_6 = forms.CharField(
          label='Why did you draw the boundary here? Why did you choose this background image? Is there an element of the work you were unable to draw around that you feel should have been included within this frame?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      questionB1_7 = forms.CharField(
          label='How do you now feel about the artwork? Or if you prefer, write the first three words which spring to mind.',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      #SectionB4
      #image of building
      questionB1_8 = forms.CharField(
          label='How do you know feel about the artwork in its street setting? Or if you prefer, write the first three words which spring to mind.',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      #SectionB4.5
      #building canvas p
      #building canvas
  
      #SectionB5
      questionB1_9 = forms.CharField(
          label='To what extent do you think the meaning and political associations of the piece might have changed now it’s no longer on the street?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      questionB1_10 = forms.CharField(
          label='What do you think should happen to street art when the building needs to be demolished? Do you think what happened in this case was the best solution? Why?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      questionB1_11 = forms.CharField(
          label='Why do you think it sold for so much? Do you think it was worth that price?',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      questionB1_12 = forms.CharField(
          label='If you have any further comments about the topic, please leave them here:',
          widget=forms.Textarea(attrs={'rows':10,'cols':60}))
  
      class Meta:
          model = Gallery
          fields = ('questionA_1','questionA_2','questionA_3','questionA_4','questionA_5','questionB1_1','questionB1_2','questionB1_3','questionB1_4','questionB1_5','questionB1_6','questionB1_7','questionB1_8','questionB1_9','questionB1_10','questionB1_11','questionB1_12','drawing_0', 'drawing_1', 'drawing_2')
          widgets = {
              'drawing_0': forms.HiddenInput(),
              'drawing_1': forms.HiddenInput(),
              'drawing_2': forms.HiddenInput(),
          }
  