2018-04-22 17:45:31 +02:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
2017-04-17 12:49:03 +02:00
|
|
|
|
2018-04-22 17:45:31 +02:00
|
|
|
echo Bootstrap::pageTitle(array('title'=>$L->g('New Category'), 'icon'=>'grid-three-up'));
|
2017-04-17 12:49:03 +02:00
|
|
|
|
2018-04-22 17:45:31 +02:00
|
|
|
echo Bootstrap::formOpen(array());
|
2017-04-17 12:49:03 +02:00
|
|
|
|
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-04-22 17:45:31 +02:00
|
|
|
echo Bootstrap::formInputTextBlock(array(
|
2017-04-17 12:49:03 +02:00
|
|
|
'name'=>'category',
|
2018-04-22 17:45:31 +02:00
|
|
|
'label'=>$L->g('Category name'),
|
|
|
|
'value'=>isset($_POST['category'])?$_POST['category']:'',
|
|
|
|
'class'=>'',
|
|
|
|
'placeholder'=>'',
|
|
|
|
'tip'=>''
|
2017-04-17 12:49:03 +02:00
|
|
|
));
|
|
|
|
|
2018-04-22 17:45:31 +02:00
|
|
|
echo '
|
|
|
|
<div class="form-group mt-4">
|
|
|
|
<button type="submit" class="btn btn-primary mr-2">Save</button>
|
|
|
|
<a class="btn btn-secondary" href="'.HTML_PATH_ADMIN_ROOT.'categories" role="button">Cancel</a>
|
|
|
|
</div>
|
|
|
|
';
|
2017-04-17 12:49:03 +02:00
|
|
|
|
2018-04-22 17:45:31 +02:00
|
|
|
echo Bootstrap::formClose();
|