linuxmuster / linuxmuster-webui7

Next generation web interface for linuxmuster.net v7.
https://www.linuxmuster.net
GNU General Public License v3.0
12 stars 8 forks source link

Password print: custom latex templates are not selectable #248

Open lemertens opened 2 years ago

lemertens commented 2 years ago

The documentation of sophomorix-print states that customized latex templates are to be placed in

/etc/linuxmuster/sophomorix/<school>/latex-templates

but those templates are not shown in the corresponding drop-down box when printing password If the same files are put into

/usr/share/sophomorix/lang/latex/templates

they are visible so i suspect that the directory in /etc/linuxmuster.... is not read when populating the drop-down box

kiarn commented 2 years ago

Hello @lemertens

The path /etc/linuxmuster/sophomorix//latex-templates is read : https://github.com/linuxmuster/linuxmuster-webui7/blob/09df0911567335cfb365108e1a83d4eaa8257fa2/usr/lib/linuxmuster-webui/plugins/lmn_settings/views.py#L148

I suspect here a simple name conflict, I will have a look at it when I find some time.

Arnaud

kiarn commented 2 years ago

Hello @lemertens

Wait a minute, I think I miss an information : do you mean printing passwords as admin or as teacher ? In the teacher view, the teachers are not able to select a template, they always use the configured one ( in settings ).

Arnaud