mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
do not output 'this category is used' for new category
This commit is contained in:
parent
0369e95157
commit
691565473d
|
@ -62,7 +62,12 @@ $(document).ready( function() {
|
|||
<tr>
|
||||
<td></td><td>
|
||||
<?php
|
||||
if($category && !$category->isUsed()) {
|
||||
if($category) {
|
||||
if($category && $category->isUsed()) {
|
||||
?>
|
||||
<p><?php echo getMLText('category_in_use') ?></p>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<form style="display: inline-block;" method="post" action="../op/op.Categories.php" >
|
||||
<?php echo createHiddenFieldWithKey('removecategory'); ?>
|
||||
|
@ -71,10 +76,7 @@ $(document).ready( function() {
|
|||
<button class="btn" type="submit"><i class="icon-remove"></i> <?php echo getMLText("rm_document_category")?></button>
|
||||
</form>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<p><?php echo getMLText('category_in_use') ?></p>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
|
Loading…
Reference in New Issue
Block a user