o
    w`fh                     @   sL   d dl mZ ddlmZmZmZmZ G dd dejZG dd dejZ	dS )	    )forms   )EventProposalSpeakerSessionTypec                       s8   e Zd Z fddZd fdd	ZG dd dZ  ZS )	ProposalFormc                    s2  | dd | _| dd | _t j|i | | jd jjddd | jd jjddd | jd	 jjdd
d | jd jjddd | jd jjddd | jd jjddi | jd jjddd | jd jjddi | jd jjddd | jd jjddd d S )Ncfpusertitleform-control+Enter a descriptive title for your proposalclassplaceholderorganisation!Your organization or company namecontact_numberYour contact phone numberabstract<Provide a clear and concise description of your presentation	sub_theme$Optional sub-theme for your proposalsession_typer   form-selectlearning_objectives+What attendees will learn from your sessionsponsorshipform-check-inputadditional_notesAAny additional information you'd like to share with the reviewerssupporting_document.pdfr   accept)	popr	   r
   super__init__fieldswidgetattrsupdate)selfargskwargs	__class__ 0/var/www/html/bloggers_ems/events/forms/event.pyr'      sR   zProposalForm.__init__Tc                    s:   t  jdd}| jr| j|_| jr| j|_|r|  |S )NF)commit)r&   saver	   r
   	submitter)r,   r3   proposalr/   r1   r2   r4   2   s   zProposalForm.savec                   @   s   e Zd ZeZdZejddddejddddejddddejddd	d
dejddddej	ddidejdddd
dej
ddidejdddd
dejddddd
ZdS )zProposalForm.Meta)
r   r   r   r   r   r   r   r   r!   r   r   r   r   r*   r   r      r   )rowsr   r   r   r   r      r   r      r    r"   r#   )
r   r   r   r   r   r   r   r   r   r!   N)__name__
__module____qualname__r   modelr(   r   	TextInputTextareaSelectRadioSelect	FileInputwidgetsr1   r1   r1   r2   Meta<   sZ    
rF   )T)r<   r=   r>   r'   r4   rF   __classcell__r1   r1   r/   r2   r      s    -
r   c                   @   s   e Zd ZG dd dZdS )SpeakerFormc                	   @   s|   e Zd ZeZdZejddddejdddddej	dd	d
dejddddej
ddddejdddddZdS )zSpeakerForm.Meta)namebiophotoorganizationwebsitesocial_mediar   zSpeaker's full namer   r7   r:   z!Speaker's biography and expertise)r   r9   r   zimage/*r#   z!Speaker's organization or companyzhttps://example.comz@JSON format: {"twitter": "@username", "linkedin": "https://..."}N)r<   r=   r>   r   r?   r(   r   r@   rA   rD   URLInputrE   r1   r1   r1   r2   rF   w   s:    
rF   N)r<   r=   r>   rF   r1   r1   r1   r2   rH   v   s    rH   N)
djangor   modelsr   r   r   r   	ModelFormr   rH   r1   r1   r1   r2   <module>   s    r