178 lines
4.2 KiB
PHP
178 lines
4.2 KiB
PHP
|
|
<!-- Body page content -->
|
|
|
|
<script src="<?php echo base_url(); ?>/assets/default/jquery/dist/jquery.min.js"></script>
|
|
<script type="text/javascript" src="<?php echo base_url(); ?>/assets/jquery.multi-select.js"></script>
|
|
<script type="text/javascript">
|
|
jQuery(document).ready(function($){
|
|
$('#people').multiSelect();
|
|
});
|
|
</script>
|
|
<style type="text/css">
|
|
.multi-select-container {
|
|
display: inline-block;
|
|
position: relative;
|
|
width:100%;
|
|
}
|
|
|
|
.multi-select-menu {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 2em;
|
|
z-index: 1;
|
|
float: left;
|
|
min-width: 100%;
|
|
background: #fff;
|
|
margin: 1em 0;
|
|
border: 1px solid #aaa;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
display: none;
|
|
}
|
|
|
|
.multi-select-menuitem {
|
|
display: block;
|
|
font-size: 0.875em;
|
|
padding: 0.6em 1em 0.6em 30px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.multi-select-menuitem--titled:before {
|
|
display: block;
|
|
font-weight: bold;
|
|
content: attr(data-group-title);
|
|
margin: 0 0 0.25em -20px;
|
|
}
|
|
|
|
.multi-select-menuitem--titledsr:before {
|
|
display: block;
|
|
font-weight: bold;
|
|
content: attr(data-group-title);
|
|
border: 0;
|
|
clip: rect(0 0 0 0);
|
|
height: 1px;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: absolute;
|
|
width: 1px;
|
|
}
|
|
|
|
.multi-select-menuitem + .multi-select-menuitem {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.multi-select-presets {
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.multi-select-menuitem input {
|
|
position: absolute;
|
|
margin-top: 0.25em;
|
|
margin-left: -20px;
|
|
}
|
|
|
|
.multi-select-button {
|
|
display: block;
|
|
margin-top:2px;
|
|
width:100%;
|
|
max-width: 100%!important;
|
|
font-size: 0.875em;
|
|
padding: 0.85em 0.6em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
vertical-align: -0.5em;
|
|
background-color: #fff;
|
|
border: 1px solid #aaa;
|
|
cursor: default;
|
|
}
|
|
|
|
.multi-select-button:after {
|
|
content: "";
|
|
position: absolute;
|
|
display: inline-block;
|
|
width: 0;
|
|
height: 0;
|
|
border-style: solid;
|
|
border-width: 0.4em 0.4em 0 0.4em;
|
|
border-color: #999 transparent transparent transparent;
|
|
margin-left: 0.4em;
|
|
vertical-align: 0.1em;
|
|
right:5px;
|
|
top:17px;
|
|
}
|
|
|
|
.multi-select-container--open .multi-select-menu {
|
|
display: block;
|
|
}
|
|
|
|
.multi-select-container--open .multi-select-button:after {
|
|
border-width: 0 0.4em 0.4em 0.4em;
|
|
border-color: transparent transparent #999 transparent;
|
|
}
|
|
|
|
.multi-select-container--positioned .multi-select-menu {
|
|
/* Avoid border/padding on menu messing with JavaScript width calculation */
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.multi-select-container--positioned .multi-select-menu label {
|
|
/* Allow labels to line wrap when menu is artificially narrowed */
|
|
white-space: normal;
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div class="">
|
|
<div class="page-title">
|
|
|
|
<div class="title_left">
|
|
<h1>Create Group</h1>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div class="row">
|
|
<div class="col-md-12 col-sm-12 ">
|
|
<div class="x_panel">
|
|
<div class="x_content">
|
|
<br />
|
|
<form id="" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Group/Create_Group" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
|
|
|
|
|
<div class="item form-group">
|
|
<label class="control-label col-md-1 col-sm-1 " for="first-name">Group Name<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="group_name" name="group_name" required="required" class="form-control ">
|
|
</div>
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="last-name">Modules List<a style="color:red;">*</a></label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<select id="people" name="module_id[]" class="form-control" multiple required>
|
|
<?php foreach ($access_modules as $key => $value) { ?>
|
|
<option value="<?php echo $value->module_id; ?>"><?php echo $value->modules; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-5 col-sm-5 offset-md-1">
|
|
<button class="btn btn-secondary" onclick="history.back()">Cancel</button>
|
|
<button type="submit" class="btn btn-success">Submit</button>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<!-- /Body page content -->
|