fmeshsync fix with synology,vm's and lxc
This commit is contained in:
@@ -147,41 +147,6 @@
|
||||
.inventory-tab { color: #000; }">{{ settings.general.get('custom_css', '') }}</textarea>
|
||||
</label>
|
||||
</section>
|
||||
<section class="settings-section" data-settings-section="meshcentral">
|
||||
<h2>{{ t('settings.mesh_mapping') }}</h2>
|
||||
{% set mesh = settings.meshcentral %}
|
||||
{% set mapping = mesh.get('category_mapping', {}) %}
|
||||
<p class="muted">{{ t('settings.mesh_mapping_help') }}</p>
|
||||
<label>{{ t('settings.fallback_category') }}
|
||||
<select name="mesh_fallback_category_id" required>
|
||||
{% for category in categories %}
|
||||
<option value="{{ category.id }}" {% if category.id == (mesh.get('fallback_category_id', 1)|int) %}selected{% endif %}>{{ category.name }} (ID {{ category.id }})</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
<div class="form-grid">
|
||||
{% set mesh_types = [
|
||||
('1', 'settings.mesh_type_desktop'),
|
||||
('2', 'settings.mesh_type_notebook'),
|
||||
('3', 'settings.mesh_type_mobile'),
|
||||
('4', 'settings.mesh_type_server'),
|
||||
('5', 'settings.mesh_type_5'),
|
||||
('6', 'settings.mesh_type_6'),
|
||||
('7', 'settings.mesh_type_7'),
|
||||
('8', 'settings.mesh_type_linux_other')
|
||||
] %}
|
||||
{% for type_id, type_label in mesh_types %}
|
||||
<label>{{ t(type_label) }} ({{ t('settings.meshcentral_type') }} {{ type_id }})
|
||||
<select name="mesh_category_{{ type_id }}">
|
||||
<option value="">{{ t('settings.use_fallback') }}</option>
|
||||
{% for category in categories %}
|
||||
<option value="{{ category.id }}" {% if mapping.get(type_id) is not none and category.id == (mapping.get(type_id)|int) %}selected{% endif %}>{{ category.name }} (ID {{ category.id }})</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
<section class="settings-section" data-settings-section="authentication">
|
||||
<h2>{{ t('settings.authentication') }}</h2>
|
||||
<p class="muted">{{ t('settings.auth_help') }}</p>
|
||||
|
||||
Reference in New Issue
Block a user