quintel / etmodel

Professional interface of the Energy Transition model.
https://energytransitionmodel.com/
MIT License
25 stars 12 forks source link

Separate units column #4295

Open louispt1 opened 6 days ago

louispt1 commented 6 days ago

As requested in #3862, units have now been separated into another column. This is what it looks like:

image

A more robust solution might externalise the js in this _table_template to a helper method. I had a bit of trouble with this because I would need to make the html template a .erb to use the helper methods and there were some rendering issues going down that route.

This works so maybe it's easier to leave it as is 😄 .

Closes #3862

mabijkerk commented 6 days ago

@louispt1 what about translations for the word "Unit"? In Dutch this would be "Eenheid".

louispt1 commented 5 days ago

@louispt1 what about translations for the word "Unit"? In Dutch this would be "Eenheid".

Fixed

kndehaan commented 5 days ago

I also had a quick look, looks very good! Would it be possible to move the "Unit" column to the front? So before the first data column (in this case before "2019" column).

louispt1 commented 4 days ago

I also had a quick look, looks very good! Would it be possible to move the "Unit" column to the front? So before the first data column (in this case before "2019" column).

Fixed now :)

kndehaan commented 4 days ago

Looking good!