<!-- Form Start -->
<div class="block">
    <div class="title lightTextShadow">تعديل المجموعة : <?= $group->gr_name ?></div>
    <br />
    <a href="<?= base_url() ?>authorization/admin_groups/overview" class="button sub inlineBlock rnd3 lightTextShadow">
        <span><?php echo $this->lang->line('button_groups'); ?></span>
    </a>
      
    <div class="content">
        <?php echo form_open_multipart('authorization/admin_groups/edit/' . $id , array('id' => 'new_edit'))?>
        <fieldset class="form boxStyle">                                


            <?php echo $this->template->flash_msg(); ?>

            <label for="group_name" class="label"><?php echo $this->lang->line('group_name'); ?></label>
            <input id="group_name" class="textBox med rnd5" name="group_name" value="<?= set_value('group_name', $group->gr_name) ?>"  /><br>
            <?php echo form_error('group_name'); ?>
            <label for="group_notice" class="label"><?php echo $this->lang->line('group_notice'); ?></label>
            <input id="group_notice" class="textBox med rnd5" name="group_notice" value="<?= set_value('group_notice', $group->gr_notice) ?>"  />
            <?php echo form_error('group_notice'); ?>

        </fieldset>
        <br />
        <fieldset class="form boxStyle">   
            <legend><?php echo lang('group_role'); ?></legend>
            <!--<label for="group_role" class="label"><?php echo lang('group_role'); ?></label><br />-->        
            <?php foreach ($roles as $r): ?>                    
                <input type="checkbox" name="group_role[]" id="chk1" value="<?= $r['right_id'] ?>" <?= ($r['gr_group_id'] == $id) ? "checked" : "" ?> /><label><?php echo $r['right_title'] ?></label><br />
            <?php endforeach; ?>       
            <?php echo form_error('group_role'); ?>
            <br />             
        </fieldset>
        <br />
        <div class="center">
            <input id="submit" type="submit" value="تفريغ الحقول" class="button sub inlineBlock rnd3 lightTextShadow" />
            <input id="submit" type="submit" value="أدخل" class="button sml inlineBlock rnd5 drkTextShadow" />
        </div>
        <?php echo form_close(); ?>
    </div>
</div>
