OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • firewall-scheduler - disable cell (background-color)?
« previous next »
  • Print
Pages: [1] 2

Author Topic: firewall-scheduler - disable cell (background-color)?  (Read 7618 times)

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
firewall-scheduler - disable cell (background-color)?
« on: May 15, 2018, 06:07:33 pm »
Hi Franco!

in the course of my training in the mvc of opnsense, I found the file, which is responsible for the firewall scheduler. I came across the problem when creating the cicada template, but ignored it for lack of time.

So that this value is not always displayed in white when deactivating a cell, it would be sufficient to set the value to "inherit" instead of "#FFF".

This would make the scheduler independent of the WEB template (GUI) and above all readable.

I attached a modified code screenshot and the screenshot of the original code.  Incidentally, I've already tried it and it works flawlessly.

What do you think ?

best regards rené
« Last Edit: May 15, 2018, 06:10:18 pm by noname12123 »
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: firewall-scheduler - disable cell (background-color)?
« Reply #1 on: May 15, 2018, 06:11:35 pm »
I would suggest to make the code independent from colors but this change is very large, so I did not change that code.
Logged

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #2 on: May 15, 2018, 06:22:23 pm »
Quote from: fabian on May 15, 2018, 06:11:35 pm
I would suggest to make the code independent from colors but this change is very large, so I did not change that code.

A pity.
This leaves the problem that under templates such as cicada, rebellion the scheduler is difficult to read when deleting scheduler entries.

best regards rené
« Last Edit: May 15, 2018, 07:30:34 pm by noname12123 »
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1615
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #3 on: May 15, 2018, 07:35:22 pm »
Hi guys,

Ideally, the ancient JS code surrounding the scheduler edit page should be replaced and adhere to bootstrap colour classes. But since we are not in an ideal world:

https://github.com/opnsense/core/commit/319a8bc

René, can you attach screenshots of one of your themes with and without the patch in place, I'm not entirely sure what it should look like.


Thank you,
Franco
Logged

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #4 on: May 15, 2018, 07:59:32 pm »
Quote from: franco on May 15, 2018, 07:35:22 pm
Hi guys,

Ideally, the ancient JS code surrounding the scheduler edit page should be replaced and adhere to bootstrap colour classes. But since we are not in an ideal world:

https://github.com/opnsense/core/commit/319a8bc

René, can you attach screenshots of one of your themes with and without the patch in place, I'm not entirely sure what it should look like.


Thank you,
Franco

as desired the screenshot of cicada and rebellion theme.

And if you would change the value to "inherit" in the source code, then the cell will be displayed in the same background color after a double-click as the template specified. then the field would be readable again.

in tukan theme it is not so bad, because the foreground text is black and the background is very bright anyway.

best regards
rené
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #5 on: May 15, 2018, 08:17:45 pm »
I think I just declared it bad.

But Fabian knows what I mean.

rené
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: firewall-scheduler - disable cell (background-color)?
« Reply #6 on: May 15, 2018, 09:03:58 pm »
@rene: try my patch here: https://github.com/opnsense/core/pull/2407 - you only have to patch your sass file to support the selectors as well. Then you can theme it however you like.
Logged

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #7 on: May 15, 2018, 10:51:21 pm »
great work guys!!!! :-) incredible fast -> it is almost world record!  ;)

Thanks to Franco, Fabian and Martin for the professional support.
I have sent martin the changes for tukan and cicada.

I think we made 3 really good themes for opnsense. although that's certainly not the most important thing for a firewall. but an important step.

best regards,
rené

Above all, I have to thank Martin very much, who is really always helpful and without him all my zeal would not be worth anything.
« Last Edit: May 15, 2018, 10:59:21 pm by noname12123 »
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: firewall-scheduler - disable cell (background-color)?
« Reply #8 on: May 16, 2018, 06:36:06 pm »
I hope your last theme problems are fixed now ;)

kind regards from Vorarlberg

Fabian
Logged

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #9 on: May 16, 2018, 06:45:42 pm »
Quote from: fabian on May 16, 2018, 06:36:06 pm
I hope your last theme problems are fixed now ;)

kind regards from Vorarlberg

Fabian

I hope so ;-)

regards from vienna
Rene
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1615
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #10 on: May 17, 2018, 08:26:40 am »
Fabian's change was merged to master. Thanks!
Logged

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #11 on: May 17, 2018, 10:55:40 am »
Great work guys i Sent The latest fixed scheduler Updates for tukan and cicada to Martin.

Would be Great if we can get this Versions to the current update.

Best regards
Rene
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #12 on: May 17, 2018, 11:03:15 am »
The scheduler fix for cicada and tukan will come later.
Thx Franco, Fabian and Martin for your Support.

Best regards
Rene
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #13 on: May 18, 2018, 07:29:01 am »
I'll try and PR these over the weekend.. Busy with real work the last few days.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: firewall-scheduler - disable cell (background-color)?
« Reply #14 on: May 18, 2018, 01:39:13 pm »
no problem martin. there are more important things ->  do not stress!!!!
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • firewall-scheduler - disable cell (background-color)?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2