|
74 | 74 | {% endif %}
|
75 | 75 |
|
76 | 76 | <div class="pmf-category-actions">
|
77 |
| - <!-- Add FAQ to category (always) --> |
| 77 | + <!-- Add FAQ to category --> |
| 78 | + {% if categoryInfo[key]['id'] is not empty %} |
78 | 79 | <a class="btn btn-info mb-1 mt-1"
|
79 | 80 | href="./faq/add/{{ categoryInfo[key]['id'] }}/{{ categoryInfo[key]['lang'] }}"
|
80 | 81 | title="{{ 'ad_quick_entry'|translate }}" data-bs-toggle="tooltip" data-bs-placement="top">
|
81 | 82 | <i aria-hidden="true" class="bi bi-indent"></i>
|
82 | 83 | </a>
|
| 84 | + {% endif %} |
83 | 85 |
|
84 | 86 | <!-- Add subcategory (if current language) -->
|
| 87 | + {% if categoryInfo[key]['id'] is not empty %} |
85 | 88 | <a class="btn btn-info"
|
86 | 89 | href="./category/add/{{ categoryInfo[key]['id'] }}/{{ categoryInfo[key]['lang'] }}"
|
87 | 90 | title="{{ 'ad_quick_category'|translate }}" data-bs-toggle="tooltip" data-bs-placement="top">
|
88 | 91 | <i aria-hidden="true" class="bi bi-plus-square"></i>
|
89 | 92 | </a>
|
| 93 | + {% endif %} |
90 | 94 |
|
91 | 95 | <!-- Edit category (if current language) -->
|
| 96 | + {% if categoryInfo[key]['id'] is not empty %} |
92 | 97 | <a class="btn btn-info"
|
93 | 98 | href="./category/edit/{{ categoryInfo[key]['id'] }}" title="{{ 'ad_kateg_rename'|translate }}"
|
94 | 99 | data-bs-toggle="tooltip" data-bs-placement="top">
|
95 | 100 | <i aria-hidden="true" class="bi bi-pencil"></i>
|
96 | 101 | </a>
|
| 102 | + {% endif %} |
97 | 103 |
|
98 | 104 | <!-- Translate category -->
|
| 105 | + {% if categoryInfo[key]['id'] is not empty %} |
99 | 106 | <a class="btn btn-info"
|
100 | 107 | href="./category/translate/{{ categoryInfo[key]['id'] }}"
|
101 | 108 | title="{{ 'ad_categ_translate'|translate }}" data-bs-toggle="tooltip" data-bs-placement="top">
|
102 | 109 | <i aria-hidden="true" class="bi bi-globe"></i>
|
103 | 110 | </a>
|
| 111 | + {% endif %} |
104 | 112 |
|
105 | 113 | <!-- Delete category (if no subcategories) -->
|
106 | 114 | {% if children is empty %}
|
|
0 commit comments