first commit
This commit is contained in:
87
application/views/admin/role_new.php
Executable file
87
application/views/admin/role_new.php
Executable file
@@ -0,0 +1,87 @@
|
||||
<?php echo $header; ?>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h1 class="page-header">
|
||||
New Role<?php echo $this->lang->line('role_new_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">Roles<?php echo $this->lang->line('roles_header'); ?></a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
New Role<?php echo $this->lang->line('role_new_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>
|
||||
<?php echo $this->lang->line('user_new_header'); ?>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<?php echo form_open(BASE_URL.'/admin/settings/roles/new/add'); ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?php echo form_error('username', '<div class="alert alert-danger">', '</div>'); ?>
|
||||
<label class="control-label" for="username">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',
|
||||
'value' => set_value('name', '', FALSE)
|
||||
);
|
||||
echo form_input($data); ?>
|
||||
</div> <!-- /controls -->
|
||||
</div> <!-- /form-group -->
|
||||
|
||||
<div class="form-group">
|
||||
<?php echo form_error('email', '<div class="alert alert-danger">', '</div>'); ?>
|
||||
<label class="control-label" for="email">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', '', FALSE)
|
||||
);
|
||||
|
||||
echo form_input($data); ?>
|
||||
|
||||
</div> <!-- /controls -->
|
||||
</div> <!-- /form-group -->
|
||||
|
||||
</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; ?>
|
||||
Reference in New Issue
Block a user