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

40 lines
1.1 KiB
PHP
Raw Normal View History

<?php defined('BLUDIT') or die('Bludit CMS.'); ?>
2017-04-17 12:49:03 +02:00
<?php echo Bootstrap::formOpen(array('id'=>'jsform', 'class'=>'tab-content')); ?>
2017-04-17 12:49:03 +02: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
<?php
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::formInputText(array(
'name'=>'name',
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 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
<?php echo Bootstrap::formClose(); ?>