hide _id in foreign key title

This commit is contained in:
Manuel Gugger 2023-03-20 18:45:09 +01:00
parent 88b11b6f89
commit 176735fae1

View File

@ -10,7 +10,7 @@
{% for model_field in view_model.fields -%}
<div class="field">
<label class="{{ model_field | get_html_input_type }}" for="{{ model_field.field_name }}">
{{ model_field.field_name | split(pat="_") | join(sep=" ") | title }}{% if not model_field.is_option %} *{% endif %}
{{ model_field.field_name | replace(from="_id", to="") | split(pat="_") | join(sep=" ") | title }}{% if not model_field.is_option %} *{% endif %}
</label>
<div class="control">
{% if model_field.field_type == "SelectList" %}