ó
Gj\c           @   s\  d  d l  m Z d  d l m Z d  d l Td  d l m Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ	 d e f d „  ƒ  YZ
 d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d S(    iÿÿÿÿ(   t	   ModelForm(   t   forms(   t   *(   t   BetterModelFormt   ExamFormFormc           B   s   e  Z d  d d „  ƒ  YZ RS(   t   Metac           B   s   e  Z e Z d Z RS(   t   namet   introductiont
   start_yeart   payment_amountt   typet   enabled(   s   names   introductions
   start_years   payment_amounts   types   enabled(   t   __name__t
   __module__t   ExamFormt   modelt   fields(    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   	   s   (    (   R   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR      s   t   ModalityCategoryFormc           B   s   e  Z d  d d „  ƒ  YZ RS(   R   c           B   s   e  Z e Z d Z RS(   t   titlet   subtitlet   ordert   minimum_scanst   upload_disabled(   s   titles   subtitles   orders   minimum_scanss   upload_disabled(   R   R   t   ModalityCategoryR   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR      s   (    (   R   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR      s   t   ModalityItemFormc           B   s   e  Z d  d d „  ƒ  YZ RS(   R   c           B   s   e  Z e Z d Z RS(   R   t   categoryR
   R   t   minimumt   maximum(   s   names   categorys   types   orders   minimums   maximum(   R   R   t   ModalityItemR   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR      s   (    (   R   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR      s   t   ApplicantDetailsFormc           B   s$   e  Z d  „  Z d d d „  ƒ  YZ RS(   c         O   sý   t  t |  ƒ j | | Ž  t |  j d _ t |  j d _ t |  j d _ t |  j d _ t |  j d _ t |  j d _ t |  j d _ t |  j d _ t |  j d	 _ t |  j d
 _ t |  j d _ t |  j d _ t |  j d _ t |  j d _ d  S(   NR   t
   first_namet   surnamet   email_addresst   contact_numbert   dobt	   job_titlet   current_employert   employment_start_datet   work_address_1t	   work_townt   work_countyt   work_postcodet   work_country(   t   superR   t   __init__t   TrueR   t   required(   t   selft   argst   kwargs(    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR,      s    R   c           B   sÀ   e  Z e Z d  i d d d d d d g d 6d d	 6d
 d 6f d i d d d g d 6d d	 6d d 6f d i d d d d d d d g d 6d d	 6f d i d d d d d  d! g d 6d" d	 6f g Z RS(#   t   personal_detailsR   R   R   R    R!   R"   R   s   Personal Detailst   legendsH   Applicants for the practical exam must be an ordinary member of the SVT.t   descriptiont
   employmentR#   R$   R%   t
   Employments€   Applicants for the practical exam must be currently employed in the UK or ireland to perform vascular diagnostic investigations.t   work_addressR&   t   work_address_2R'   R(   R)   R*   t   other_sites_workeds   Work Addresst   mailing_addresst   mailing_address_1t   mailing_address_2t   mailing_townt   mailing_countyt   mailing_postcodet   mailing_countrys   Mailing Address(   R   R   t   ExamApplicationR   t	   fieldsets(    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   0   s
   0',(    (   R   R   R,   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR      s   	t   AcademicDetailsFormc           B   s$   e  Z d  „  Z d d d „  ƒ  YZ RS(   c         O   sm   t  t |  ƒ j | | Ž  t |  j d _ t |  j d _ t |  j d _ t |  j d _ t |  j d _ d  S(   Nt   university_namet   degree_titlet   degree_classt   year_awardedt   degree_certificate(   R+   RC   R,   R-   R   R.   (   R/   R0   R1   (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR,   =   s    R   c           B   sZ   e  Z e Z d  i d d d d d g d 6d d 6f d	 i d
 d d g d 6d d 6f g Z RS(   t   undergraduate_educationRD   RE   RF   RG   RH   R   s   Undergraduate EducationR3   t   postgraduate_educationt   pg_university_namet   pg_degree_titlet   pg_year_awardeds&   Postgraduate Education (if applicable)(   R   R   RA   R   RB   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   E   s   &(    (   R   R   R,   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyRC   ;   s   	t   NonDegreeEvidenceFormc           B   s$   e  Z d  „  Z d d d „  ƒ  YZ RS(   c         O   s-   t  t |  ƒ j | | Ž  t |  j d _ d  S(   Nt   non_degree_evidence(   R+   RN   R,   R-   R   R.   (   R/   R0   R1   (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR,   O   s    R   c           B   sR   e  Z e Z d  i d g d 6d d 6f d i d g d 6d d 6d g d 6f g Z RS(   t
   non_degreet   non_degree_applicantR   s   Non Degree ApplicantsR3   RO   t    t   classes(   R   R   RA   R   RB   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   S   s   (    (   R   R   R,   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyRN   M   s   	t
   TheoryFormc           B   s   e  Z d  d d „  ƒ  YZ RS(   R   c           B   s   e  Z e Z d Z RS(   t   phi_y1t   phi_y2t   phi_y3t   phi_y4t   phi_y5t   phi_y6t   vt_y1t   vt_y2t   vt_y3t   vt_y4t   vt_y5t   vt_y6(   s   phi_y1s   phi_y2s   phi_y3s   phi_y4s   phi_y5s   phi_y6s   vt_y1s   vt_y2s   vt_y3s   vt_y4s   vt_y5s   vt_y6(   R   R   RA   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   ]   s   (    (   R   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyRT   [   s   t   TheoryResultsLetterFormc           B   s   e  Z d  d d „  ƒ  YZ RS(   R   c           B   s   e  Z e Z d Z RS(   t   exam_results_letter(   s   exam_results_letter(   R   R   RA   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   e   s   (    (   R   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyRa   c   s   t   ExperienceFormc           B   s$   e  Z d  „  Z d d d „  ƒ  YZ RS(   c         O   s-   t  t |  ƒ j | | Ž  t |  j d _ d  S(   Nt   three_years_experience(   R+   Rc   R,   R-   R   R.   (   R/   R0   R1   (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR,   l   s    R   c           B   s   e  Z e Z d Z RS(   Rd   (   s   three_years_experience(   R   R   RA   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   p   s   (    (   R   R   R,   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyRc   j   s   	t   ExaminerFormc           B   s   e  Z d  d d „  ƒ  YZ RS(   R   c           B   s   e  Z e Z d Z RS(   t   examiner_titlet   examiner_first_namet   examiner_surnamet   examiner_emailt   examiner_unable_reason(   s   examiner_titles   examiner_first_names   examiner_surnames   examiner_emails   examiner_unable_reason(   R   R   RA   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   v   s   (    (   R   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyRe   t   s   t   ReferenceFormc           B   s   e  Z d  d d „  ƒ  YZ RS(   R   c        
   B   s   e  Z e Z d
 Z RS(   R   t	   address_1t	   address_2t   townt   countyt   countryt   postcodet   emailt	   telephonet   job_role(
   s   names	   address_1s	   address_2s   towns   countys   countrys   postcodes   emails	   telephones   job_role(   R   R   t   ExamApplicationReferenceR   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   |   s   (    (   R   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyRk   z   s   t   ReferenceUploadFormc           B   s$   e  Z d  „  Z d d d „  ƒ  YZ RS(   c         O   s-   t  t |  ƒ j | | Ž  t |  j d _ d  S(   Nt   reference_upload(   R+   Rv   R,   R-   R   R.   (   R/   R0   R1   (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR,   ‚   s    R   c           B   s   e  Z e Z d Z RS(   Rw   (   s   reference_upload(   R   R   RA   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   †   s   (    (   R   R   R,   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyRv   €   s   	t   DeclarationFormc           B   s$   e  Z d  „  Z d d d „  ƒ  YZ RS(   c         O   s¥   t  t |  ƒ j | | Ž  x! |  j D] } t |  j | _ q# W|  j j j d k r¡ t	 |  j d _ t
 j ƒ  |  j d _ t	 |  j d _ t
 j ƒ  |  j d _ n  d  S(   Ns   re-validationt   duplex_scans_completedt   vascular_scanning_experience(   R+   Rx   R,   R   R-   R.   t   instancet   examR
   t   FalseR   t   HiddenInputt   widget(   R/   R0   R1   t   field(    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR,   Œ   s    R   c           B   s   e  Z e Z d Z RS(   t   ordinary_membert   currently_employedt   six_month_employedt   scans_completedt   copy_degree_certificatet   theory_exams_passedt   exam_results_lettersRy   Rz   t   suitable_avs_assessort   referees_providedt   understand_retake(   s   ordinary_members   currently_employeds   six_month_employeds   scans_completeds   copy_degree_certificates   theory_exams_passeds   exam_results_letterss   duplex_scans_completeds   vascular_scanning_experiences   suitable_avs_assessors   referees_provideds   understand_retake(   R   R   RA   R   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyR   –   s   (    (   R   R   R,   R   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyRx   Š   s   	
N(   t   django.formsR    t   djangoR   t   modelst   form_utils.formsR   R   R   R   R   RC   RN   RT   Ra   Rc   Re   Rk   Rv   Rx   (    (    (    s<   /var/www/svtgbi.org/svtgbi/modules/exam_application/forms.pyt   <module>   s    
!

