<div class="col-lg-12 list-surveys">
    <h3>
        <?php echo sprintf(gT("Editing user group (Owner: %s)"), Yii::app()->session['user']); ?>
    </h3>

    <div class="row">
        <?php echo CHtml::form(array("admin/usergroups/sa/edit/ugid/{$ugid}"), 'post', array('class'=>'col-md-6 col-md-offset-3', 'id'=>'usergroupform', 'name'=>'usergroupform')); ?>
            
            <div class="form-group">
                <label for='name'><?php eT("Name:"); ?></label>
                <input type='text' size='50' maxlength='20' id='name' name='name' value="<?php echo htmlspecialchars($esrow['name'],ENT_QUOTES, 'UTF-8'); ?>" class="form-control" />
            </div>

            <div class="form-group">
                <label for='description'><?php eT("Description:"); ?></label>
                <textarea cols='50' rows='4' id='description' name='description' class="form-control"><?php echo htmlspecialchars($esrow['description'],ENT_QUOTES, 'UTF-8'); ?></textarea>
            </div>

            <input type='submit' value='<?php eT("Update user group"); ?>' class="hidden" />
            <input type='hidden' name='action' value='editusergroupindb' />
            <input type='hidden' name='owner_id' value='<?php echo Yii::app()->session['loginID']; ?>' />
            <input type='hidden' name='ugid' value='<?php echo $ugid; ?>' />
        </form>
    </div>
</div>    

</div>

