Beispiel #1
0
    </div>

    <div class="panel-body">

        <?php 
if (isset($validation_errors)) {
    RHtml::showValidationErrors($validation_errors);
}
$newForm = array();
if (isset($newPostForm)) {
    $newForm = $newPostForm;
}
if ($type == "new") {
    $url = "post/new/{$groupId}";
    $title = RForm::setValue($newForm, 'title');
    $content = RHtml::decode(RForm::setValue($newForm, 'content'));
    $submitText = "Post";
} else {
    $url = "post/edit/{$topic->id}";
    $title = $topic->title;
    $content = RHtml::decode($topic->content);
    $submitText = "Edit";
}
?>
        <?php 
echo RForm::openForm($url, array('id' => 'viewFrom'));
?>

        <div class="form-group">
            <label class="col-sm-2 control-label" style="padding-left: 0;">Group</label>
            <div class="col-sm-10">