]> Dogcows Code - chaz/chatty/blob - lib/Chatty/Form/MessageCreate.pm
basic (non-AJAX) chat implemented
[chaz/chatty] / lib / Chatty / Form / MessageCreate.pm
1 package Chatty::Form::MessageCreate;
2
3 use HTML::FormHandler::Moose;
4 extends 'HTML::FormHandler::Model::DBIC';
5 use namespace::autoclean;
6
7 has '+item_class' => (default => 'Message');
8
9 has_field 'content' => (input_class => 'validate[required]', label => 'Message', required => 1);
10 has_field 'submit' => (type => 'Submit', value => 'Create');
11
12 __PACKAGE__->meta->make_immutable;
13 1;
This page took 0.029401 seconds and 4 git commands to generate.