Version 0.5.5.94: field type conversion, exclusion filters and value lists

- Change the data type of custom fields with stored values via a preview:
  values that cannot be converted need an explicit decision, the
  conversion runs in one transaction with row locks and a stale-preview
  check, old values are saved to data/backups and recorded in history.
- Table filters: "!value" excludes rows, "=value" compares exactly;
  Excel-like value list (▾) per column in all tables. The software job
  list computes its value list on the server over the full job history.
- Bulk edit offers custom fields with type-specific input and validation.
- MeshCentral mappings: optional "value if empty" with a guard path;
  fallbacks are skipped when only basic data was delivered.
- Deleting a field removes its translations (same name can be reused);
  one confirmation with the value count replaces the checkbox.
- Job list filters recognize the "reinstall" action and the
  "software deployment" job type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
RolandandClaude Opus 5.5 committed 2026-11-18 21:14:21 +01:00
1 parent 261b4f2029
commit 40cd88871f
20 files changed
+1400 -187

No files matched your search

+20 -4
View File
@@ -9,7 +9,7 @@
<label>{{ t('common.field') }}
<select name="field_name" id="bulk-field" required>
<option value="">{{ t('common.please_select') }}</option>
{% for field in fields %}<option value="{{ field.field_name }}">{{ field.label }}</option>{% endfor %}
{% for field in fields %}<option value="{{ field.field_name }}" data-type="{{ field.data_type or '' }}" data-custom="{{ '1' if field.custom else '0' }}">{{ field.label }}</option>{% endfor %}
</select>
</label>
<label>{{ t('history.new_value') }}
@@ -22,6 +22,11 @@
<option value="">{{ t('assets.bulk_edit.no_parent') }}</option>
{% for parent in parent_candidates %}<option value="{{ parent.id }}">{{ parent.name }}{% if parent.asset_tag %} – {{ parent.asset_tag }}{% endif %} ({{ parent.category.name }})</option>{% endfor %}
</select>
<select id="bulk-boolean-value" class="hidden-control">
<option value="">{{ t('assets.bulk_edit.empty_value') }}</option>
<option value="true">{{ t('common.yes') }}</option>
<option value="false">{{ t('common.no') }}</option>
</select>
<select id="bulk-category-value" class="hidden-control">
<option value="">{{ t('assets.bulk_edit.select_category') }}</option>
{% for category in categories %}<option value="{{ category.id }}">{{ category.name }}</option>{% endfor %}
@@ -40,16 +45,27 @@
const status = document.getElementById('bulk-status-value');
const parent = document.getElementById('bulk-parent-value');
const category = document.getElementById('bulk-category-value');
const controls = [input, status, parent, category];
const bool = document.getElementById('bulk-boolean-value');
const controls = [input, status, parent, category, bool];
field.addEventListener('change', () => {
const selected = field.value;
const active = selected === 'status' ? status : selected === 'parent_asset_id' ? parent : selected === 'category_id' ? category : input;
const option = field.selectedOptions[0];
const isCustom = option && option.dataset.custom === '1';
const dataType = option ? option.dataset.type : '';
const active = selected === 'status' ? status : selected === 'parent_asset_id' ? parent : selected === 'category_id' ? category : (isCustom && dataType === 'boolean') ? bool : input;
controls.forEach(control => {
control.classList.toggle('hidden-control', control !== active);
if (control === active) control.name = 'new_value'; else control.removeAttribute('name');
});
const dateFields = ['assigned_on','purchase_date','warranty_until'];
input.type = dateFields.includes(selected) ? 'date' : 'text';
input.removeAttribute('step');
if (dateFields.includes(selected) || (isCustom && dataType === 'date')) input.type = 'date';
else if (isCustom && dataType === 'datetime') input.type = 'datetime-local';
else if (isCustom && dataType === 'integer') { input.type = 'number'; input.step = '1'; }
else if (isCustom && dataType === 'decimal') { input.type = 'number'; input.step = 'any'; }
else if (isCustom && dataType === 'email') input.type = 'email';
else if (isCustom && dataType === 'url') input.type = 'url';
else input.type = 'text';
});
})();
</script>
+1 -1
View File
@@ -14,7 +14,7 @@
--am-warning:{{ colors.get('warning_color', '#d97706') }};
--am-danger:{{ colors.get('danger_color', '#b42318') }};
}
</style><script>(()=>{try{if(localStorage.getItem('assetmanager.sidebar.collapsed')==='true')document.documentElement.classList.add('sidebar-collapsed-preset')}catch(_){}})();</script><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ title or general.get('title', 'AssetManager') }}</title>{% set favicon_path = general.get('favicon') or general.get('logo') %}{% if favicon_path %}<link rel="icon" href="{{ favicon_path }}">{% endif %}<link rel="stylesheet" href="/static/css/app.css?v={{ application_version() }}"><link rel="stylesheet" href="/custom.css"></head><body{% if request and request.url.path == '/assets' %} class="asset-list-scroll-page"{% endif %} data-record-count-template="{{ t('lists.record_count', 'Angezeigt: {visible} von {total} Datensätzen')|e }}" data-record-count-title="{{ t('lists.record_count_hint', 'Die Anzeige berücksichtigt die aktuell gesetzten Tabellenfilter.')|e }}" data-filter-active-label="{{ t('lists.filter_active', 'Filter aktiv')|e }}" data-filters-active-template="{{ t('lists.filters_active', '{count} Filter aktiv')|e }}" data-filter-status-template="{{ t('lists.filter_status', 'Gefiltert: {visible} von {total} Datensätzen')|e }}" data-clear-filters-label="{{ t('lists.clear_filters', 'Filter zurücksetzen')|e }}" data-row-number-label="{{ t('lists.row_number', 'Zeilennummer')|e }}" data-row-number-resize-label="{{ t('lists.row_number_resize', 'Ziehen, um die Breite der Nummernspalte zu ändern')|e }}" data-column-resize-label="{{ t('lists.column_resize', 'Ziehen, um die Spaltenbreite zu ändern')|e }}" data-multi-value-filter-hint="{{ t('lists.multi_value_filter_hint', 'Mehrere Suchwerte können zeilenweise eingefügt werden. Innerhalb einer Spalte gilt ODER.')|e }}" data-advanced-filter-title="{{ t('lists.advanced_filter.title')|e }}" data-advanced-filter-operator="{{ t('lists.advanced_filter.operator')|e }}" data-advanced-filter-value="{{ t('lists.advanced_filter.value')|e }}" data-advanced-filter-value-from="{{ t('lists.advanced_filter.value_from')|e }}" data-advanced-filter-value-to="{{ t('lists.advanced_filter.value_to')|e }}" data-advanced-filter-equal="{{ t('lists.advanced_filter.equal')|e }}" data-advanced-filter-gt="{{ t('lists.advanced_filter.gt')|e }}" data-advanced-filter-gte="{{ t('lists.advanced_filter.gte')|e }}" data-advanced-filter-lt="{{ t('lists.advanced_filter.lt')|e }}" data-advanced-filter-lte="{{ t('lists.advanced_filter.lte')|e }}" data-advanced-filter-range="{{ t('lists.advanced_filter.range')|e }}" data-advanced-filter-apply="{{ t('lists.advanced_filter.apply')|e }}" data-advanced-filter-clear="{{ t('lists.advanced_filter.clear')|e }}" data-advanced-filter-empty="{{ t('lists.advanced_filter.empty')|e }}" data-advanced-filter-not-empty="{{ t('lists.advanced_filter.not_empty')|e }}" data-persist-browser-state="{{ 'true' if session_user and session_user.persist_browser_state else 'false' }}" data-toast-position="{{ session_user.toast_position if session_user else 'top-right' }}" data-toast-duration="{{ session_user.toast_duration_seconds if session_user else 6 }}" data-toast-close-label="{{ t('common.close')|e }}">
</style><script>(()=>{try{if(localStorage.getItem('assetmanager.sidebar.collapsed')==='true')document.documentElement.classList.add('sidebar-collapsed-preset')}catch(_){}})();</script><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ title or general.get('title', 'AssetManager') }}</title>{% set favicon_path = general.get('favicon') or general.get('logo') %}{% if favicon_path %}<link rel="icon" href="{{ favicon_path }}">{% endif %}<link rel="stylesheet" href="/static/css/app.css?v={{ application_version() }}"><link rel="stylesheet" href="/custom.css"></head><body{% if request and request.url.path == '/assets' %} class="asset-list-scroll-page"{% endif %} data-record-count-template="{{ t('lists.record_count', 'Angezeigt: {visible} von {total} Datensätzen')|e }}" data-record-count-title="{{ t('lists.record_count_hint', 'Die Anzeige berücksichtigt die aktuell gesetzten Tabellenfilter.')|e }}" data-filter-active-label="{{ t('lists.filter_active', 'Filter aktiv')|e }}" data-filters-active-template="{{ t('lists.filters_active', '{count} Filter aktiv')|e }}" data-filter-status-template="{{ t('lists.filter_status', 'Gefiltert: {visible} von {total} Datensätzen')|e }}" data-clear-filters-label="{{ t('lists.clear_filters', 'Filter zurücksetzen')|e }}" data-row-number-label="{{ t('lists.row_number', 'Zeilennummer')|e }}" data-row-number-resize-label="{{ t('lists.row_number_resize', 'Ziehen, um die Breite der Nummernspalte zu ändern')|e }}" data-column-resize-label="{{ t('lists.column_resize', 'Ziehen, um die Spaltenbreite zu ändern')|e }}" data-multi-value-filter-hint="{{ t('lists.multi_value_filter_hint', 'Mehrere Suchwerte können zeilenweise eingefügt werden. Innerhalb einer Spalte gilt ODER.')|e }}" data-advanced-filter-title="{{ t('lists.advanced_filter.title')|e }}" data-value-list-open="{{ t('lists.value_list.open')|e }}" data-value-list-search="{{ t('lists.value_list.search')|e }}" data-value-list-select-all="{{ t('lists.value_list.select_all')|e }}" data-value-list-empty="{{ t('lists.value_list.empty')|e }}" data-value-list-cancel="{{ t('common.cancel')|e }}" data-value-list-limited="{{ t('lists.value_list.limited')|e }}" data-value-list-yes="{{ t('common.yes')|e }}" data-value-list-no="{{ t('common.no')|e }}" data-value-list-error="{{ t('lists.value_list.error')|e }}" data-value-list-scan-limited="{{ t('lists.value_list.scan_limited')|e }}" data-advanced-filter-operator="{{ t('lists.advanced_filter.operator')|e }}" data-advanced-filter-value="{{ t('lists.advanced_filter.value')|e }}" data-advanced-filter-value-from="{{ t('lists.advanced_filter.value_from')|e }}" data-advanced-filter-value-to="{{ t('lists.advanced_filter.value_to')|e }}" data-advanced-filter-equal="{{ t('lists.advanced_filter.equal')|e }}" data-advanced-filter-gt="{{ t('lists.advanced_filter.gt')|e }}" data-advanced-filter-gte="{{ t('lists.advanced_filter.gte')|e }}" data-advanced-filter-lt="{{ t('lists.advanced_filter.lt')|e }}" data-advanced-filter-lte="{{ t('lists.advanced_filter.lte')|e }}" data-advanced-filter-range="{{ t('lists.advanced_filter.range')|e }}" data-advanced-filter-apply="{{ t('lists.advanced_filter.apply')|e }}" data-advanced-filter-clear="{{ t('lists.advanced_filter.clear')|e }}" data-advanced-filter-empty="{{ t('lists.advanced_filter.empty')|e }}" data-advanced-filter-not-empty="{{ t('lists.advanced_filter.not_empty')|e }}" data-persist-browser-state="{{ 'true' if session_user and session_user.persist_browser_state else 'false' }}" data-toast-position="{{ session_user.toast_position if session_user else 'top-right' }}" data-toast-duration="{{ session_user.toast_duration_seconds if session_user else 6 }}" data-toast-close-label="{{ t('common.close')|e }}">
<header class="main-header">
<a class="brand" href="/">{% if general.get('logo') %}<img src="{{ general.get('logo') }}" alt="Logo">{% endif %}<span>{{ general.get('title', 'AssetManager') }}</span>{% if general.get('company_name') %}<span class="brand-company">– {{ general.get('company_name') }}</span>{% endif %}</a>
+1 -1
View File
@@ -2,5 +2,5 @@
<div class="toolbar"><h1>{{ t('fields.title') }}</h1><div class="toolbar-actions"><a class="button" href="/settings/fields/new">➕ {{ t('fields.add') }}</a><a class="button button-secondary" href="/settings">{{ t('common.back') }}</a></div></div>
<p class="muted">{{ t('fields.catalog_help') }}</p>
<div class="sticky-table management-table-scroll"><table class="data-table"><thead><tr><th>{{ t('fields.field') }}</th><th>{{ t('fields.label') }}</th><th>{{ t('common.description') }}</th><th>{{ t('fields.data_type') }}</th><th>{{ t('fields.read_only') }}</th><th>{{ t('fields.system') }}</th><th>{{ t('fields.stored_values') }}</th><th>{{ t('common.actions') }}</th></tr></thead><tbody>
{% for d in definitions %}<tr><td><code>{{d.field_name}}</code></td><td>{{d.label}}</td><td>{{d.description or ''}}</td><td>{{ t('fields.data_type_' ~ d.data_type, data_types.get(d.data_type,d.data_type)) }}</td><td>{{t('common.yes') if d.readonly else t('common.no')}}</td><td>{{t('common.yes') if d.is_system else t('common.no')}}</td><td>{{value_counts.get(d.id,0)}}</td><td><a class="button button-secondary" href="/settings/fields/{{d.id}}/edit">{{t('common.edit')}}</a>{% if not d.is_system %}<form class="inline-form" method="post" action="/settings/fields/{{d.id}}/delete" onsubmit="return confirm({{ t('fields.delete_confirm')|tojson }});"><label class="checkbox-label"><input class="checkbox" type="checkbox" name="confirm_values">{{ t('fields.confirm_values') }}</label><button class="button button-danger">{{t('common.delete')}}</button></form>{% endif %}</td></tr>{% endfor %}
{% for d in definitions %}<tr><td><code>{{d.field_name}}</code></td><td>{{d.label}}</td><td>{{d.description or ''}}</td><td>{{ t('fields.data_type_' ~ d.data_type, data_types.get(d.data_type,d.data_type)) }}</td><td>{{t('common.yes') if d.readonly else t('common.no')}}</td><td>{{t('common.yes') if d.is_system else t('common.no')}}</td><td>{{value_counts.get(d.id,0)}}</td><td><a class="button button-secondary" href="/settings/fields/{{d.id}}/edit">{{t('common.edit')}}</a>{% if not d.is_system %}{% set stored = value_counts.get(d.id, 0) %}<form class="inline-form" method="post" action="/settings/fields/{{d.id}}/delete" onsubmit='return confirm({{ (t("fields.delete_confirm_values", field=d.label, count=stored) if stored else t("fields.delete_confirm_empty", field=d.label))|tojson }});'>{% if stored %}<input type="hidden" name="confirm_values" value="{{ stored }}">{% endif %}<button class="button button-danger">{{t('common.delete')}}</button></form>{% endif %}</td></tr>{% endfor %}
</tbody></table></div>{% endblock %}
+95
View File
@@ -0,0 +1,95 @@
{% extends 'base.html' %}
{% block content %}
{% set from_label = t('fields.data_type_' ~ definition.data_type, data_types.get(definition.data_type, definition.data_type)) %}
{% set to_label = t('fields.data_type_' ~ to_type, data_types.get(to_type, to_type)) %}
<div class="toolbar"><div><h1>{{ t('fields.conversion.title') }}</h1>
<p class="muted">{{ t('fields.conversion.subtitle', field=definition.label, from_type=from_label, to_type=to_label) }}</p></div>
<a class="button button-secondary" href="/settings/fields/{{ definition.id }}/edit">{{ t('common.cancel') }}</a></div>
{% if notice %}<p class="notice warning">{{ notice }}</p>{% endif %}
<form method="post" action="/settings/fields/{{ definition.id }}/convert-type" id="field-conversion-form">
{% for key, value in hidden.items() %}<input type="hidden" name="{{ key }}" value="{{ value }}">{% endfor %}
<input type="hidden" name="to_type" value="{{ to_type }}">
<input type="hidden" name="fingerprint" value="{{ plan.fingerprint }}">
<section class="panel">
<h2>{{ t('fields.conversion.summary') }}</h2>
<ul class="compact-list">
<li>{{ t('fields.conversion.count_converted', count=plan.converted|length) }}</li>
<li>{{ t('fields.conversion.count_empty', count=plan.empty_count) }}</li>
<li><strong>{{ t('fields.conversion.count_failed', count=plan.failed|length) }}</strong></li>
</ul>
<p class="muted">{{ t('fields.conversion.safety_help') }}</p>
</section>
{% if plan.failed %}
<section class="panel">
<h2>{{ t('fields.conversion.failed_title') }}</h2>
<p class="muted">{{ t('fields.conversion.failed_help') }}</p>
<div class="form-grid">
<label>{{ t('fields.conversion.apply_all') }}
<select id="conversion-all-decision"><option value="">{{ t('common.please_select') }}</option><option value="replace">{{ t('fields.conversion.replace_with') }}</option><option value="clear">{{ t('fields.conversion.clear') }}</option></select>
</label>
<label>{{ t('fields.conversion.replacement') }}<input id="conversion-all-replacement" autocomplete="off"></label>
<div><button type="button" class="button button-secondary" id="conversion-all-apply">{{ t('fields.conversion.apply_all_button') }}</button></div>
</div>
<div class="table-scroll"><table class="data-table">
<thead><tr><th>{{ t('fields.conversion.asset') }}</th><th>{{ t('fields.conversion.current_value') }}</th><th>{{ t('fields.conversion.reason') }}</th><th>{{ t('fields.conversion.decision') }}</th><th>{{ t('fields.conversion.replacement') }}</th></tr></thead>
<tbody>
{% for item in plan.failed %}
{% set error = errors.get(item.row_id) %}
<tr{% if error %} class="row-error"{% endif %}>
<td><a href="/assets/{{ item.asset_id }}" target="_blank" rel="noopener">{{ asset_names.get(item.asset_id, '#' ~ item.asset_id) }}</a></td>
<td><code>{{ item.old_display }}</code></td>
<td>{{ t('fields.conversion.reason.' ~ item.error, item.error) }}{% if error %}<br><strong class="text-danger">{{ t('fields.conversion.reason.' ~ error, error) }}</strong>{% endif %}</td>
<td><select name="decision_{{ item.row_id }}" class="conversion-decision">
<option value="">{{ t('common.please_select') }}</option>
<option value="replace" {% if form.get('decision_' ~ item.row_id) == 'replace' %}selected{% endif %}>{{ t('fields.conversion.replace_with') }}</option>
<option value="clear" {% if form.get('decision_' ~ item.row_id) == 'clear' %}selected{% endif %}>{{ t('fields.conversion.clear') }}</option>
</select></td>
<td><input name="replacement_{{ item.row_id }}" class="conversion-replacement" value="{{ form.get('replacement_' ~ item.row_id) or '' }}" autocomplete="off"></td>
</tr>
{% endfor %}
</tbody>
</table></div>
</section>
{% endif %}
{% if mapping_adjustments %}
<section class="panel">
<h2>{{ t('fields.conversion.mappings_title') }}</h2>
<p class="muted">{{ t('fields.conversion.mappings_help') }}</p>
<ul class="compact-list">{% for item in mapping_adjustments %}<li><code>{{ item.mapping.source_path }}</code>: {{ item.current }} → <strong>{{ item.suggestion }}</strong></li>{% endfor %}</ul>
<label class="checkbox-label"><input class="checkbox" type="checkbox" name="adjust_mappings" {% if not form or form.get('adjust_mappings', 'on') == 'on' %}checked{% endif %}> {{ t('fields.conversion.adjust_mappings') }}</label>
</section>
{% endif %}
{% if plan.converted %}
<section class="panel">
<details{% if plan.converted|length <= 20 %} open{% endif %}><summary>{{ t('fields.conversion.converted_title', count=plan.converted|length) }}</summary>
<div class="table-scroll"><table class="data-table">
<thead><tr><th>{{ t('fields.conversion.asset') }}</th><th>{{ t('fields.conversion.current_value') }}</th><th>{{ t('fields.conversion.new_value') }}</th></tr></thead>
<tbody>{% for item in plan.converted %}<tr><td>{{ asset_names.get(item.asset_id, '#' ~ item.asset_id) }}</td><td><code>{{ item.old_display }}</code></td><td><code>{{ item.new_display }}</code></td></tr>{% endfor %}</tbody>
</table></div></details>
</section>
{% endif %}
<div class="form-actions">
<a class="button button-secondary" href="/settings/fields/{{ definition.id }}/edit">{{ t('common.cancel') }}</a>
<button type="submit" class="button-save" onclick="return confirm({{ t('fields.conversion.confirm', field=definition.label, to_type=to_label)|tojson }})">💾 {{ t('fields.conversion.execute') }}</button>
</div>
</form>
<script>
(() => {
const apply = document.getElementById('conversion-all-apply');
if (!apply) return;
apply.addEventListener('click', () => {
const decision = document.getElementById('conversion-all-decision').value;
const replacement = document.getElementById('conversion-all-replacement').value;
document.querySelectorAll('.conversion-decision').forEach(select => { select.value = decision; });
if (decision === 'replace') document.querySelectorAll('.conversion-replacement').forEach(input => { input.value = replacement; });
});
})();
</script>
{% endblock %}
+4 -1
View File
@@ -91,7 +91,7 @@
<h2>3. {{ t('mesh.field_mappings') }}</h2>
<p class="muted">{{ t('mesh.mappings_help') }} {{ t('mesh.mappings_examples') }}: <code>node.osdesc</code>, <code>sys.hardware.windows.cpu[].Name</code>, <code>node.name|name</code>.</p>
<form method="post" action="/sync/meshcentral/mappings/save">
<div class="table-scroll management-table-scroll"><table class="data-table mesh-mapping-table"><thead><tr><th>{{ t('common.active') }}</th><th>{{ t('mesh.priority') }}</th><th>{{ t('mesh.target_field') }}</th><th>{{ t('mesh.source_path') }}</th><th>{{ t('mesh.transformation') }}</th><th>{{ t('mesh.multi_values') }}</th><th>{{ t('mesh.separator') }}</th><th>{{ t('mesh.update_rule') }}</th><th>{{ t('common.description') }}</th><th></th></tr></thead><tbody>
<div class="table-scroll management-table-scroll"><table class="data-table mesh-mapping-table"><thead><tr><th>{{ t('common.active') }}</th><th>{{ t('mesh.priority') }}</th><th>{{ t('mesh.target_field') }}</th><th>{{ t('mesh.source_path') }}</th><th>{{ t('mesh.transformation') }}</th><th>{{ t('mesh.multi_values') }}</th><th>{{ t('mesh.separator') }}</th><th>{{ t('mesh.update_rule') }}</th><th title="{{ t('mesh.empty_value_help') }}">{{ t('mesh.empty_value') }}</th><th>{{ t('common.description') }}</th><th></th></tr></thead><tbody>
{% for m in mappings %}
<tr>
<td><input type="checkbox" name="mapping_{{m.id}}_enabled" {% if m.enabled %}checked{% endif %}></td>
@@ -102,6 +102,7 @@
<td><select name="mapping_{{m.id}}_multi_value_mode">{% for v in ['first','join','json','count'] %}<option value="{{v}}" {% if m.multi_value_mode==v %}selected{% endif %}>{{v}}</option>{% endfor %}</select></td>
<td><input class="mapping-separator" name="mapping_{{m.id}}_separator" value="{{m.separator|replace('\n','\\n')|replace('\t','\\t')}}"></td>
<td><select name="mapping_{{m.id}}_update_rule"><option value="fill_empty" {% if m.update_rule=='fill_empty' %}selected{% endif %}>{{ t('mesh.rule_fill_empty') }}</option><option value="meshcentral_wins" {% if m.update_rule=='meshcentral_wins' %}selected{% endif %}>{{ t('mesh.rule_mesh_wins') }}</option><option value="local_wins" {% if m.update_rule=='local_wins' %}selected{% endif %}>{{ t('mesh.rule_local_wins') }}</option></select></td>
<td><input class="mapping-empty-value" name="mapping_{{m.id}}_empty_value" value="{{m.empty_value or ''}}" title="{{ t('mesh.empty_value_help') }}" maxlength="255"><input class="mapping-empty-value-guard" name="mapping_{{m.id}}_empty_value_guard" value="{{m.empty_value_guard or ''}}" placeholder="{{ t('mesh.empty_value_guard') }}" title="{{ t('mesh.empty_value_guard_help') }}" maxlength="255"></td>
<td><input name="mapping_{{m.id}}_description" value="{{m.description or ''}}"></td>
<td>{% if not m.is_system %}<button class="button danger" type="submit" formaction="/sync/meshcentral/mappings/{{m.id}}/delete" formmethod="post" onclick="return confirm({{ t('mesh.delete_mapping_confirm')|tojson }})">{{ t('common.delete') }}</button>{% endif %}</td>
</tr>
@@ -122,6 +123,8 @@
<label>{{ t('mesh.multi_values') }}<select name="multi_value_mode"><option value="first">first</option><option value="join">join</option><option value="json">json</option><option value="count">count</option></select></label>
<label>{{ t('mesh.separator') }}<input name="separator" value="\n"></label>
<label>{{ t('mesh.update_rule') }}<select name="update_rule"><option value="fill_empty">{{ t('mesh.rule_fill_empty') }}</option><option value="meshcentral_wins">{{ t('mesh.rule_mesh_wins') }}</option><option value="local_wins">{{ t('mesh.rule_local_wins') }}</option></select></label>
<label>{{ t('mesh.empty_value') }}<input name="empty_value" maxlength="255" title="{{ t('mesh.empty_value_help') }}"><small class="muted">{{ t('mesh.empty_value_help') }}</small></label>
<label>{{ t('mesh.empty_value_guard') }}<input name="empty_value_guard" maxlength="255" placeholder="sys.hardware.windows"><small class="muted">{{ t('mesh.empty_value_guard_help') }}</small></label>
<label>{{ t('common.description') }}<input name="description"></label>
<label class="checkbox-label"><input class="checkbox" type="checkbox" name="enabled" checked> {{ t('common.active') }}</label>
</div><button class="button button-save">+ {{ t('mesh.create_mapping') }}</button>
+8 -7
View File
@@ -91,6 +91,7 @@
data-storage-key="software-jobs"
data-server-filters="1"
data-server-filter-url="/software"
data-value-list-url="/software/job-filter-values"
data-server-filter-total="{{ jobs_filtered_total if jobs_filters_active else jobs|length }}"
data-restart-label="↻ {{ t('jobs.restart')|e }}"
data-restart-confirm="{{ t('jobs.restart.confirm')|e }}"
@@ -99,13 +100,13 @@
<th class="selection-column" data-no-sort="1" data-no-filter="1"><input type="checkbox" id="select-all-restartable-jobs" aria-label="{{ t('jobs.select_all_restartable')|e }}"></th>
<th data-server-filter-name="job_id" data-filter-type="integer" data-server-filter-value="{{ job_filters.job_id|e }}">{{ t('software.job_id') }}</th>
<th data-server-filter-name="created_at" data-filter-type="datetime" data-server-filter-value="{{ job_filters.created_at|e }}">{{ t('software.time') }}</th>
<th data-server-filter-name="asset" data-server-filter-value="{{ job_filters.asset|e }}">{{ t('common.assets') }}</th>
<th data-server-filter-name="job_type" data-server-filter-value="{{ job_filters.job_type|e }}">{{ t('jobs.type') }}</th>
<th data-server-filter-name="package" data-server-filter-value="{{ job_filters.package|e }}">{{ t('software.package') }}</th>
<th data-server-filter-name="action" data-server-filter-value="{{ job_filters.action|e }}">{{ t('jobs.action') }}</th>
<th data-server-filter-name="priority" data-filter-type="integer" data-server-filter-value="{{ job_filters.priority|e }}">{{ t('jobs.priority') }}</th>
<th data-server-filter-name="platform" data-server-filter-value="{{ job_filters.platform|e }}">{{ t('software.platform') }}</th>
<th data-server-filter-name="status" data-server-filter-value="{{ job_filters.status|e }}">{{ t('software.status') }}</th>
<th data-server-filter-name="asset" data-value-list="server" data-server-filter-value="{{ job_filters.asset|e }}">{{ t('common.assets') }}</th>
<th data-server-filter-name="job_type" data-value-list="server" data-server-filter-value="{{ job_filters.job_type|e }}">{{ t('jobs.type') }}</th>
<th data-server-filter-name="package" data-value-list="server" data-server-filter-value="{{ job_filters.package|e }}">{{ t('software.package') }}</th>
<th data-server-filter-name="action" data-value-list="server" data-server-filter-value="{{ job_filters.action|e }}">{{ t('jobs.action') }}</th>
<th data-server-filter-name="priority" data-value-list="server" data-filter-type="integer" data-server-filter-value="{{ job_filters.priority|e }}">{{ t('jobs.priority') }}</th>
<th data-server-filter-name="platform" data-value-list="server" data-server-filter-value="{{ job_filters.platform|e }}">{{ t('software.platform') }}</th>
<th data-server-filter-name="status" data-value-list="server" data-server-filter-value="{{ job_filters.status|e }}">{{ t('software.status') }}</th>
<th>{{ t('software.details') }}</th>
<th>{{ t('jobs.actions') }}</th>
</tr></thead>