Merge pull request #5205 from solgenomics/topic/generic_trial_upload
[sgn.git] / lib / CXGN / Page / Form / EditablePasswordField.pm
blobcdf892da6ecbf0972e0c6fffdf4a29ce450bae6c
1 =head1 NAME
3 EditablePasswordField.pm -- implements an editable password field on a html form.
5 =head1 DESCRIPTION
7 Please see L<CXGN::Page::Form> for more information.
9 =head1 AUTHOR(S)
11 Evan Herbst
13 =cut
16 use strict;
17 use CXGN::Page::Form::PasswordField;
20 package CXGN::Page::Form::EditablePasswordField;
22 use base qw / CXGN::Page::Form::PasswordField /;
24 sub new {
25 my $class = shift;
26 my $self = $class->SUPER::new(@_);
27 return $self;
30 sub render {
31 my $self = shift;
33 return " <input type=\"password\" class=\"form-control\" id=\"" . $self->get_id() . "\" name=\"".$self->get_field_name()."\" value=\"".$self->get_contents()."\" size=\"".$self->get_length()."\" />\n";
37 return 1;