Fix character profile view missing fields (Race, Age, Languages, Nationality, Class)

This commit is contained in:
mARTin-B78 2026-08-23 12:18:08 +02:00
parent 882e1ede55
commit c9d063d0c7
2 changed files with 11 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -1418,7 +1418,10 @@ async function _charDetailPage(rec, allChars, opts) {
_lcdFieldEdit('Voller Name', sh.full_name, 'full_name', sourcesByField['full_name']), _lcdFieldEdit('Voller Name', sh.full_name, 'full_name', sourcesByField['full_name']),
_lcdFieldEdit('Vorname', sh.first_name, 'first_name', sourcesByField['first_name']), _lcdFieldEdit('Vorname', sh.first_name, 'first_name', sourcesByField['first_name']),
_lcdFieldEdit('Nachname', sh.last_name, 'last_name', sourcesByField['last_name']), _lcdFieldEdit('Nachname', sh.last_name, 'last_name', sourcesByField['last_name']),
_lcdFieldEdit('Alter', sh.age_estimate, 'age_estimate', sourcesByField['age_estimate']),
_lcdFieldEdit('Geschlecht', sh.gender, 'gender', sourcesByField['gender']), _lcdFieldEdit('Geschlecht', sh.gender, 'gender', sourcesByField['gender']),
_lcdFieldEdit('Rasse / Spezies', sh.race_species, 'race_species', sourcesByField['race_species']),
_lcdFieldEdit('Sprachen', sh.languages, 'languages', sourcesByField['languages']),
_lcdFieldEdit('Titel', sh.title, 'title', sourcesByField['title']), _lcdFieldEdit('Titel', sh.title, 'title', sourcesByField['title']),
_lcdFieldEdit('Beruf / Rolle', sh.profession, 'profession', sourcesByField['profession']), _lcdFieldEdit('Beruf / Rolle', sh.profession, 'profession', sourcesByField['profession']),
_lcdFieldEdit('Auch bekannt als', sh.aliases, 'aliases', sourcesByField['aliases']), _lcdFieldEdit('Auch bekannt als', sh.aliases, 'aliases', sourcesByField['aliases']),
@ -1433,6 +1436,8 @@ async function _charDetailPage(rec, allChars, opts) {
]) ])
+ _lcdSection('mdi-book-open-outline', 'Geschichte', [ + _lcdSection('mdi-book-open-outline', 'Geschichte', [
_lcdFieldEdit('Hintergrund & Herkunft', sh.backstory, 'backstory', sourcesByField['backstory']), _lcdFieldEdit('Hintergrund & Herkunft', sh.backstory, 'backstory', sourcesByField['backstory']),
_lcdFieldEdit('Nationalität / Herkunft', sh.nationality_background, 'nationality_background', sourcesByField['nationality_background']),
_lcdFieldEdit('Soziale Klasse', sh.social_class, 'social_class', sourcesByField['social_class']),
_lcdFieldEdit('Motivation', sh.motivation, 'motivation', sourcesByField['motivation']), _lcdFieldEdit('Motivation', sh.motivation, 'motivation', sourcesByField['motivation']),
_lcdFieldEdit('Ängste', sh.fears, 'fears', sourcesByField['fears']), _lcdFieldEdit('Ängste', sh.fears, 'fears', sourcesByField['fears']),
]) ])
@ -1884,7 +1889,10 @@ function _charDetailModal(rec, allChars) {
_lcdField('Voller Name', sh.full_name, true), _lcdField('Voller Name', sh.full_name, true),
_lcdField('Vorname', sh.first_name, true), _lcdField('Vorname', sh.first_name, true),
_lcdField('Nachname', sh.last_name, true), _lcdField('Nachname', sh.last_name, true),
_lcdField('Alter', sh.age_estimate, true),
_lcdField('Geschlecht', sh.gender, true), _lcdField('Geschlecht', sh.gender, true),
_lcdField('Rasse / Spezies', sh.race_species, true),
_lcdField('Sprachen', sh.languages, true),
_lcdField('Titel', sh.title, true), _lcdField('Titel', sh.title, true),
_lcdField('Beruf / Rolle', sh.profession, true), _lcdField('Beruf / Rolle', sh.profession, true),
_lcdField('Auch bekannt als', sh.aliases, true), _lcdField('Auch bekannt als', sh.aliases, true),
@ -1899,6 +1907,8 @@ function _charDetailModal(rec, allChars) {
]) ])
+ _lcdSection('mdi-book-open-outline', 'Geschichte', [ + _lcdSection('mdi-book-open-outline', 'Geschichte', [
_lcdField('Hintergrund & Herkunft', sh.backstory, true), _lcdField('Hintergrund & Herkunft', sh.backstory, true),
_lcdField('Nationalität / Herkunft', sh.nationality_background, true),
_lcdField('Soziale Klasse', sh.social_class, true),
_lcdField('Motivation', sh.motivation, true), _lcdField('Motivation', sh.motivation, true),
_lcdField('Ängste', sh.fears, true), _lcdField('Ängste', sh.fears, true),
]) ])