o
    g                     @   sL   d dl mZ d dlmZmZ d dlmZ G dd deZG dd deZdS )	    )forms)AuthenticationFormUserCreationForm)Userc                   @   sD   e Zd ZejejddddddZejejddddddZd	S )
CustomAuthenticationFormform-controlzEnter your usernameusername)classplaceholderidattrs)widgetzEnter your passwordpasswordN)	__name__
__module____qualname__r   	CharField	TextInputr   PasswordInputr    r   r   //var/www/html/bloggers_ems/events/forms/auth.pyr      s    
r   c                       s   e Zd ZejdejdddddZejddejddddd	Z	ejddejdd
ddd	Z
 fddZG dd dZ  ZS )UserRegistrationFormTr   zEnter your email addressr	   r
   r   )requiredr      zEnter your first name)
max_lengthr   r   zEnter your last namec                    sd   t  j|i | | jd jjddd | jd jjddd | jd jjddd d S )	Nr   r   zChoose a usernamer   	password1zCreate a password	password2zConfirm your password)super__init__fieldsr   r   update)selfargskwargs	__class__r   r   r    .   s   zUserRegistrationForm.__init__c                   @   s   e Zd ZeZdZdS )zUserRegistrationForm.Meta)r   
first_name	last_nameemailr   r   N)r   r   r   r   modelr!   r   r   r   r   Meta>   s    r,   )r   r   r   r   
EmailField
EmailInputr*   r   r   r(   r)   r    r,   __classcell__r   r   r&   r   r      s4    	r   N)	djangor   django.contrib.auth.formsr   r   django.contrib.auth.modelsr   r   r   r   r   r   r   <module>   s
    