$sharing_options = get_visibility_statuses('radio-options', $exclude_statuses);
if (count($sharing_options) == 1) {
    // Only one visibility status is available, don't show radio but set hidden field
    $Form->hidden('comment_status', $sharing_options[0][0]);
} else {
    // Display visibiliy options
    $Form->radio('comment_status', $edited_Comment->status, $sharing_options, T_('Visibility'), true);
}
// Display renderers
$comment_renderer_checkboxes = $edited_Comment->renderer_checkboxes(NULL, false);
if (!empty($comment_renderer_checkboxes)) {
    $Form->info(T_('Text Renderers'), $comment_renderer_checkboxes);
}
// Display comment attachments
$LinkOwner = new LinkComment($edited_Comment);
if ($LinkOwner->count_links()) {
    // there are attachments to display
    $Form->switch_template_parts(array('fieldset_begin' => '<tr><td class="left" valign="top"><strong>$fieldset_title$:</strong></td><td class="row2 left">'));
    $Form->begin_fieldset(T_('Attachments'));
    if ($current_User->check_perm('files', 'view')) {
        // User has permission to view files
        display_attachments($LinkOwner);
    } else {
        echo T_('You do not have permission to edit file attachments for this comment');
    }
    $Form->end_fieldset();
    $Form->switch_template_parts($disp_params['edit_form_params']);
}
$Form->begin_fieldset();
$Form->submit(array('actionArray[update]', T_('Save changes'), 'SaveButton submit'));
$Form->end_fieldset();