o
    fA                     @   sl   d dl mZ ddlmZ d dlmZmZmZ d dlm	Z	 G dd deZ
G dd	 d	eZG d
d deZdS )    )forms   )User_Profile)UserChangeFormPasswordChangeFormUserCreationForm)password_validationc                   @   s   e Zd ZG dd dZdS )Update_Profile_Formc                
   @   s   e Zd ZeZg 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ejddidejdddd	dejddidd
Z	dS )zUpdate_Profile_Form.Meta)profile_pic
first_name	last_nameemailphone	job_titleaddressorganisationform-controlrequired)classr   attrsr         )r   rowscols)r   r   r   r   r   r   r   N)
__name__
__module____qualname__r   modelfieldsr   
EmailInput	TextInputwidgets r#   r#    /var/www/html/dev/myapp/forms.pyMeta   s    
r%   N)r   r   r   r%   r#   r#   r#   r$   r	      s    r	   c                   @   sR   e Zd ZejdejdddddZejdejdddddZG d	d
 d
ZdS )Add_User_FormPasswordr   zYour Passwordr   placeholderr   )labelwidgetzConfirm PasswordzConfirm Your Passwordc                
   @   s   e Zd ZeZg dZdddddZejddd	d
dej	dddd
dej	d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dZ
dS )zAdd_User_Form.Meta)
r
   r   r   r   r   r   r   r   	password1	password2zEmail Addressz
First Namez	Last NamezPhone Number)r   r   r   r   r   r   zYour Email Address)r   r   r)   r   zYour First NamezYour Last NamezYour Phone NumberzYour Job titler(   zYour Organisation NamezYour Address)r   r   r   r   r   r   r   N)r   r   r   r   r   r   lablesr   r    r!   r"   r#   r#   r#   r$   r%      s    
r%   N)	r   r   r   r   	CharFieldPasswordInputr,   r-   r%   r#   r#   r#   r$   r&      s    r&   c                	   @   st   e Zd Zejddejddddddd	Zejd
dejddddde dZ	ejddejdddddd	Z
dS )ChangePasswordFormzOld PasswordFzcurrent-passwordTr   zEnter Password)autocomplete	autofocusr   r)   r   )r*   stripr+   zNew Passwordznew-password)r2   r   r)   )r*   r4   r+   	help_textzConfirm New PasswordN)r   r   r   r   r/   r0   old_passwordr   "password_validators_help_text_htmlnew_password1new_password2r#   r#   r#   r$   r1   '   s    


r1   N)djangor   modelsr   django.contrib.auth.formsr   r   r   django.contrib.authr   r	   r&   r1   r#   r#   r#   r$   <module>   s    