From a27489bc198343d76376a6b16e4bcd81fd9a85ae Mon Sep 17 00:00:00 2001 From: Sem Date: Fri, 10 Aug 2012 14:31:17 +0200 Subject: Added default options and replaced brief description by full description when fewer fields. --- views/default/forms/event_calendar/edit.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'views/default') diff --git a/views/default/forms/event_calendar/edit.php b/views/default/forms/event_calendar/edit.php index 2ba744fc4..33849962c 100644 --- a/views/default/forms/event_calendar/edit.php +++ b/views/default/forms/event_calendar/edit.php @@ -87,10 +87,18 @@ $body .= elgg_view("input/text",array('name' => 'venue','class'=>'event-calendar $body .= '

'; $body .= '

'.$prefix['venue'].elgg_echo('event_calendar:venue_description').'

'; -$body .= '

'; -$body .= elgg_view("input/text",array('name' => 'description','class'=>'event-calendar-medium-text','value'=>$brief_description)); -$body .= '

'; -$body .= '

'.$prefix['brief_description'].elgg_echo('event_calendar:brief_description_description').'

'; +if ($event_calendar_fewer_fields != 'yes') { + $body .= '

'; + $body .= elgg_view("input/text",array('name' => 'description','class'=>'event-calendar-medium-text','value'=>$brief_description)); + $body .= '

'; + $body .= '

'.$prefix['brief_description'].elgg_echo('event_calendar:brief_description_description').'

'; + +} else { + $body .= '

'; + $body .= elgg_view("input/longtext",array('name' => 'long_description','class'=>'event-calendar-long-text','value'=>$long_description)); + $body .= '

'; + $body .= '

'.$prefix['long_description'].elgg_echo('event_calendar:long_description_description').'

'; +} $body .= '

'; $body .= elgg_view("input/tags",array('name' => 'tags','class'=>'event-calendar-medium-text','value'=>$event_tags)); -- cgit v1.2.3