<?php echo $header; ?>
<div class="container-fluid">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">
                Edit Role<?php echo $this->lang->line('role_edit_header'); ?>
            </h1>
            <ol class="breadcrumb">
                <li>
                    <i class="fa fa-dashboard"></i>
                    <a href="<?php echo BASE_URL; ?>/admin"><?php echo $this->lang->line('nav_dash'); ?></a>
                </li>
                <li>
                    <i class="fa fa-fw fa-user"></i>
                    <a href="<?php echo BASE_URL; ?>/admin/users"><?php echo $this->lang->line('user_header'); ?></a>
                </li>
                <li class="active">
                    <i class="fa fa-fw fa-pencil"></i>
                    Edit Role<?php echo $this->lang->line('role_edit_header'); ?>
                </li>
            </ol>
        </div>
    </div>
</div>
<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <i class="fa fa-pencil fa-fw"></i>Edit Role
                        <?php echo $this->lang->line('role_edit_header'); ?>
                    </h3>
                </div>

                <div class="panel-body">
                    <?php foreach ($users as $u) {
			 echo form_open(BASE_URL.'/admin/settings/roles/edited/'.$this->uri->segment(5)); ?>

                    <div class="form-group">
                        <?php echo form_error('name', '<div class="alert alert-danger">', '</div>'); ?>
                        <label class="control-label" for="name">Role
                            name<?php echo $this->lang->line('role_new_name'); ?></label>
                        <div class="controls">
                            <?php 	$data = array(
						  'name'        => 'name',
						  'id'          => 'role_name',
						  'class'       => 'form-control disabled',
						  'value'		=> set_value('name', $u['name'])
						);
			
						echo form_input($data); ?>


                        </div> <!-- /controls -->
                    </div> <!-- /form-group -->

                    <div class="form-group">
                        <?php echo form_error('slug', '<div class="alert alert-danger">', '</div>'); ?>
                        <label class="control-label" for="slug">Role
                            slug<?php echo $this->lang->line('role_new_slug'); ?></label>
                        <div class="controls">
                            <?php 	$data = array(
						  'name'        => 'slug',
						  'id'          => 'role_slug',
						  'class'       => 'form-control',
						  'value'		=> set_value('slug', $u['slug']),
						);
			
						echo form_input($data); ?>

                        </div> <!-- /controls -->
                    </div> <!-- /form-group -->



                </div>

                <div class="panel-footer">
                    <?php 	$data = array(
						  'name'        => 'submit',
						  'id'          => 'submit',
						  'class'       => 'btn btn-primary',
						  'value'		=> $this->lang->line('btn_save'),
						);
					 echo form_submit($data); ?>
                    <a class="btn"
                        href="<?php echo BASE_URL; ?>/admin/settings/roles"><?php echo $this->lang->line('btn_cancel'); ?></a>
                </div> <!-- /form-actions -->
                <?php  echo form_close(); 
			 }
			 ?>
            </div>
        </div>
    </div>
</div>
<?php echo $footer; ?>