2018-11-07 15:40:22 +01:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.'); ?>
|
2017-04-17 12:49:03 +02:00
|
|
|
|
2018-11-07 15:40:22 +01:00
|
|
|
<?php echo Bootstrap::formOpen(array('id'=>'jsform', 'class'=>'tab-content')); ?>
|
2017-04-17 12:49:03 +02:00
|
|
|
|
2018-11-07 15:40:22 +01:00
|
|
|
<div class="align-middle">
|
|
|
|
<div class="float-right mt-1">
|
|
|
|
<button type="submit" class="btn btn-primary btn-sm" name="save"><?php $L->p('Save') ?></button>
|
|
|
|
<a class="btn btn-secondary btn-sm" href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>" role="button"><?php $L->p('Cancel') ?></a>
|
|
|
|
</div>
|
|
|
|
<?php echo Bootstrap::pageTitle(array('title'=>$L->g('New category'), 'icon'=>'tag')); ?>
|
|
|
|
</div>
|
2017-04-17 12:49:03 +02:00
|
|
|
|
2018-11-07 15:40:22 +01:00
|
|
|
<?php
|
2018-04-22 17:45:31 +02:00
|
|
|
echo Bootstrap::formInputHidden(array(
|
2017-04-17 12:49:03 +02:00
|
|
|
'name'=>'tokenCSRF',
|
2018-07-17 19:13:01 +02:00
|
|
|
'value'=>$security->getTokenCSRF()
|
2017-04-17 12:49:03 +02:00
|
|
|
));
|
|
|
|
|
2018-11-07 15:40:22 +01:00
|
|
|
echo Bootstrap::formInputText(array(
|
|
|
|
'name'=>'name',
|
2018-08-08 00:16:35 +02:00
|
|
|
'label'=>$L->g('Name'),
|
2018-04-22 17:45:31 +02:00
|
|
|
'value'=>isset($_POST['category'])?$_POST['category']:'',
|
|
|
|
'class'=>'',
|
|
|
|
'placeholder'=>'',
|
|
|
|
'tip'=>''
|
2017-04-17 12:49:03 +02:00
|
|
|
));
|
|
|
|
|
2018-11-07 15:40:22 +01:00
|
|
|
echo Bootstrap::formTextarea(array(
|
|
|
|
'name'=>'description',
|
|
|
|
'label'=>$L->g('Description'),
|
|
|
|
'value'=>isset($_POST['description'])?$_POST['description']:'',
|
|
|
|
'class'=>'',
|
|
|
|
'placeholder'=>'',
|
|
|
|
'tip'=>'',
|
|
|
|
'rows'=>3
|
|
|
|
));
|
|
|
|
?>
|
2017-04-17 12:49:03 +02:00
|
|
|
|
2018-11-07 15:40:22 +01:00
|
|
|
<?php echo Bootstrap::formClose(); ?>
|