From a12c3baf615013412813967dec6333cac7ce78d4 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 5 Apr 2017 18:54:57 +0200 Subject: Add some styling hints. --- contact.cgi | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'contact.cgi') diff --git a/contact.cgi b/contact.cgi index 7256b5a..414e66c 100755 --- a/contact.cgi +++ b/contact.cgi @@ -46,25 +46,32 @@ my $form = CGI::FormBuilder->new( $form->field( name => 'name', + class => 'form-control', ); $form->field( name => 'email', + id => 'inputEmail', + class => 'form-control', + placeholder => 'Email', ); $form->field( name => 'human', label => '', + class => 'checkbox', options => ["I'm not a robot!"], multiple => 0, - jsmessage => '- Sorry, no robots allowed!', + message => '- Sorry, no robots allowed!', ); $form->field( name => 'eyes', label => 'eye color', - options => [qw(blue green other)], + class => 'form-control', type => 'select', + options => [qw(blue green other)], ); $form->field( name => 'comment', + class => 'form-control', type => 'textarea', rows => 5, ); -- cgit v1.2.3