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

29 lines
742 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()
));
echo Bootstrap::formInputTextBlock(array(
2017-04-17 12:49:03 +02:00
'name'=>'category',
'label'=>$L->g('Category 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">
<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
echo Bootstrap::formClose();