__('Name'), 'arguments' => [ 'type' => 'text', 'name' => 'name', 'required' => true, 'value' => $calendar->name(), ], ]; // Group. $inputs[] = [ 'label' => __('Group'), 'arguments' => [ 'type' => 'select_groups', 'returnAllGroup' => true, 'name' => 'id_group', 'selected' => $calendar->id_group(), 'required' => true, ], ]; // Description. $inputs[] = [ 'label' => __('Description'), 'arguments' => [ 'type' => 'textarea', 'name' => 'description', 'required' => false, 'value' => $calendar->description(), 'rows' => 50, 'columns' => 30, ], ]; // Submit. $inputs[] = [ 'arguments' => [ 'name' => 'button', 'label' => (($create === true) ? __('Create') : __('Update')), 'type' => 'submit', 'attributes' => 'class="sub next"', ], ]; // Print form. HTML::printForm( [ 'form' => [ 'action' => $url.'&op=edit&action=save&id='.$calendar->id(), 'method' => 'POST', ], 'inputs' => $inputs, ], false, true );