# Copyright (c) 2006 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: TextArea.bunit,v 1.5 2009/11/29 00:18:17 nagler Exp $ req()->initialize_fully; my($form) = Bivio::Biz::Model->new(req(), 'BlogCreateForm'); my($name) = $form->get_field_name_for_html('body'); $form->put_on_request; req()->put(font_with_style => 1); #suppress tags in rendered output Widget(); [ [{ form_model => ['Bivio::Biz::Model::BlogCreateForm'], model => 'BlogCreateForm', field => 'body', rows => 2, cols => 60, wrap => '', edit_attributes => ' foo="bar"', }] => qq(), [{ form_model => ['Bivio::Biz::Model::BlogCreateForm'], model => 'BlogCreateForm', field => 'body', rows => 5, cols => 20, }] => qq(), ];