<s> from django . forms . widgets import Input <EOL> class EmailWidget ( Input ) : <EOL> """<STR_LIT>""" <EOL> input_type = '<STR_LIT:email>' <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> self . placeholder = kwargs . pop ( '<STR_LIT>' , None ) <EOL> return super ( EmailWidget , self ) . __init__ ( * args , ** kwargs ) <EOL> def render ( self , name , value , attrs = None ) : <EOL> attrs = attrs or { } <EOL> if self . placeholder : <EOL> attrs [ '<STR_LIT>' ] = self . placeholder <EOL> return super ( EmailWidget , self ) . render ( name , value , attrs ) <EOL> class ColorWidget ( Input ) : <EOL> """<STR_LIT>""" <EOL> input_type = '<STR_LIT>' <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> self . placeholder = kwargs . pop ( '<STR_LIT>' , None ) <EOL> return super ( ColorWidget , self ) . __init__ ( * args , ** kwargs ) <EOL> def render ( self , name , value , attrs = None ) : <EOL> attrs = attrs or { } <EOL> if self . placeholder : <EOL> attrs [ '<STR_LIT>' ] = self . placeholder <EOL> return super ( ColorWidget , self ) . render ( name , value , attrs ) </s>
