bludit/bl-kernel/admin/views/new-category.php

29 lines
759 B
PHP
Raw Normal View History

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