Closed dorodere closed 1 year ago
Turns out the settings as I have them currently in mind will be a lot more complicated than that. We'll need
description
field describing what this setting is used for, end-user facingkind
field which denotes the type (Rust won't let us use type
without further hassle) and will need some kind of validation machinery, also generating appropriate HTML inputs on the flyOn the other hand, I think it's also fair to hardcode the individual settings for now, as the usage has to be hardcoded either way. I'll sleep about this.
There are some general settings which need to be configured in an end-user friendly way, such as this section:
https://github.com/dorodere/komplett-normale-busliste/blob/0cc9c08f9f8401d3c0e2a85017296a9ffff12c4a/templates/login.html.hbs#L26
Or the upcoming default deadline weekday.
This boils down to the following tasks:
settings
, basically forming a key-value store betweenTEXT
and untyped stuff. This should probably be initialized with a fair bit of default stuff.