2018-04-22 17:45:31 +02:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
2017-04-17 12:49:03 +02:00
|
|
|
|
2018-06-24 13:37:45 +02:00
|
|
|
echo Bootstrap::pageTitle(array('title'=>$L->g('Edit Category'), 'icon'=>'tags'));
|
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',
|
|
|
|
'value'=>$Security->getTokenCSRF()
|
|
|
|
));
|
|
|
|
|
2018-04-22 17:45:31 +02:00
|
|
|
echo Bootstrap::formInputHidden(array(
|
2018-04-27 20:36:43 +02:00
|
|
|
'name'=>'oldKey',
|
|
|
|
'value'=>$categoryMap['key']
|
2017-04-17 12:49:03 +02:00
|
|
|
));
|
|
|
|
|
2018-04-22 17:45:31 +02:00
|
|
|
echo Bootstrap::formInputTextBlock(array(
|
2018-04-27 20:36:43 +02:00
|
|
|
'name'=>'name',
|
2018-04-22 17:45:31 +02:00
|
|
|
'label'=>$L->g('Category name'),
|
2018-04-27 20:36:43 +02:00
|
|
|
'value'=>$categoryMap['name'],
|
2018-04-22 17:45:31 +02:00
|
|
|
'class'=>'',
|
|
|
|
'placeholder'=>'',
|
|
|
|
'tip'=>''
|
|
|
|
));
|
|
|
|
|
|
|
|
echo Bootstrap::formInputGroupText(array(
|
2018-04-27 20:36:43 +02:00
|
|
|
'name'=>'newKey',
|
2018-04-22 17:45:31 +02:00
|
|
|
'label'=>$L->g('Category key'),
|
|
|
|
'labelInside'=>DOMAIN_CATEGORIES,
|
2018-04-27 20:36:43 +02:00
|
|
|
'value'=>$categoryMap['key'],
|
|
|
|
'class'=>'',
|
|
|
|
'placeholder'=>'',
|
|
|
|
'tip'=>''
|
|
|
|
));
|
|
|
|
|
|
|
|
echo Bootstrap::formInputTextBlock(array(
|
|
|
|
'name'=>'template',
|
|
|
|
'label'=>$L->g('Category template'),
|
|
|
|
'value'=>isset($categoryMap['template'])?$categoryMap['template']:'',
|
2018-04-22 17:45:31 +02:00
|
|
|
'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" name="edit">'.$L->g('Save').'</button>
|
|
|
|
<button type="submit" class="btn btn-secondary mr-2" name="delete">'.$L->g('Delete').'</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
|
|
|
|
2018-04-22 17:45:31 +02:00
|
|
|
echo Bootstrap::formClose();
|