You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
3.2 KiB
96 lines
3.2 KiB
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
Gérer les
|
|
<small>Produits</small>
|
|
</h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="#"><i class="fa fa-dashboard"></i> Accueil</a></li>
|
|
<li class="active">Produits</li>
|
|
</ol>
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<!-- Small boxes (Stat box) -->
|
|
<div class="row">
|
|
<div class="col-md-12 col-xs-12">
|
|
|
|
<div id="messages"></div>
|
|
|
|
<?php if (session()->getFlashdata('success')): ?>
|
|
<div class="alert alert-success alert-dismissible" role="alert">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<?php echo session()->getFlashdata('success'); ?>
|
|
</div>
|
|
<?php elseif (session()->getFlashdata('error')): ?>
|
|
<div class="alert alert-error alert-dismissible" role="alert">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<?php echo session()->getFlashdata('error'); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<h3 class="box-title">Mise à jours du produits</h3>
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<form role="form" action="<?php base_url('users/update') ?>" method="post" enctype="multipart/form-data">
|
|
|
|
|
|
|
|
<div class="box-footer">
|
|
<button type="submit" class="btn btn-primary">Enregistrer</button>
|
|
<a href="<?php echo base_url('products/') ?>" class="btn btn-warning">Retour</a>
|
|
</div>
|
|
</form>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
<!-- /.box -->
|
|
</div>
|
|
<!-- col-md-12 -->
|
|
</div>
|
|
<!-- /.row -->
|
|
|
|
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$(".select_group").select2();
|
|
$("#description").wysihtml5();
|
|
|
|
$("#mainProductNav").addClass('active');
|
|
$("#manageProductNav").addClass('active');
|
|
|
|
var btnCust = '<button type="button" class="btn btn-secondary" title="Add picture tags" ' +
|
|
'onclick="alert(\'Call your custom code here.\')">' +
|
|
'<i class="glyphicon glyphicon-tag"></i>' +
|
|
'</button>';
|
|
$("#product_image").fileinput({
|
|
overwriteInitial: true,
|
|
maxFileSize: 1500,
|
|
showClose: false,
|
|
showCaption: false,
|
|
browseLabel: '',
|
|
removeLabel: '',
|
|
browseIcon: '<i class="glyphicon glyphicon-folder-open"></i>',
|
|
removeIcon: '<i class="glyphicon glyphicon-remove"></i>',
|
|
removeTitle: 'Cancel or reset changes',
|
|
elErrorContainer: '#kv-avatar-errors-1',
|
|
msgErrorClass: 'alert alert-block alert-danger',
|
|
// defaultPreviewContent: '<img src="/uploads/default_avatar_male.jpg" alt="Your Avatar">',
|
|
layoutTemplates: {
|
|
main2: '{preview} ' + btnCust + ' {remove} {browse}'
|
|
},
|
|
allowedFileExtensions: ["jpg", "png", "gif"]
|
|
});
|
|
|
|
});
|
|
</script>
|