Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Improvement to table pages

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    12 Posts 3 Posters 2.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Steve_B Netgate
      last edited by

      Update.

      The jQuery now automatically adds the icon for you. On page load if ait detected with  id="infoblock" the icon will be added and thehidden. So:

      print_info_box("Hints for firewall users");

      becomes:

      and everything is handled automatically.

      Als ik kan

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        would it be ok to create an "icon-embed-btn' class in pfSense.css, to get rid of the inline style ?

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          Looking good.
          If I open the info text (click the "i" icon) the text is displayed - good.
          Then there is an "x" in the top right corner of the info text box. If I click that the info text box closes - seems reasonable :)
          But then clicking the "i" icon again does not open the info text. I guess the info text box is "gone for good". (until a page refresh)

          Alias-Info-x.png
          Alias-Info-x.png_thumb

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • S
            Steve_B Netgate
            last edited by

            Unfortunante 'X' has been suppressed in jQuery

            Als ik kan

            1 Reply Last reply Reply Quote 0
            • S
              Steve_B Netgate
              last edited by

              All of the files I identified have been updated and pushed. (I got carried away).

              These files look like they still need some fonts-awesome love and need it more than most :) :

              system_camanager.php
              system_certmanager.php

              Or perhaps I missed a PR?

              Centralizing the embedded icon style sounds like a very good idea. icon-embed-button would be good, or perhaps just icon-button.

              It should be possible to use sed (or similar) to replace all  occurrences of '" style="margin-top: 10px;"' with ' icon-embed-button"' I would think.

              Als ik kan

              1 Reply Last reply Reply Quote 0
              • H
                heper
                last edited by

                @steve_b

                Vpn menu fa convcert = https://github.com/pfsense/pfsense/pull/2017

                1 Reply Last reply Reply Quote 0
                • S
                  Steve_B Netgate
                  last edited by

                  Thank you :)

                  Als ik kan

                  1 Reply Last reply Reply Quote 0
                  • H
                    heper
                    last edited by

                    It should be possible to use sed (or similar) to replace all  occurrences of '" style="margin-top: 10px;"' with ' icon-embed-button"' I would think.

                    https://github.com/pfsense/pfsense/pull/2027

                    sed= easy / git=hard  :p

                    1 Reply Last reply Reply Quote 0
                    • S
                      Steve_B Netgate
                      last edited by

                      Yes!

                      Als ik kan

                      1 Reply Last reply Reply Quote 0
                      • S
                        Steve_B Netgate
                        last edited by

                        If you see a good idea, copy it  ;)

                        Inspired by Heper's changes above I have done something similar for the confirm on delete pop-ups.

                        Now all instances of "fa-trash" will automatically get a "Are you sure you wish to . . " confirmation dialog added, so all of the "onclick="return confirm("Do you . . " stuff has been removed from the HTML.

                        There are one or two places where this behavior is not desired (e.g.: vpn_ipsec.php). Adding the "no-confirm" class to the icon will suppress the pop-up.

                        I also moved the styling used in

                        <nav class="action-buttons">to the css file.

                        Thanks again for everyone's help.</nav>

                        Als ik kan

                        1 Reply Last reply Reply Quote 0
                        • S
                          Steve_B Netgate
                          last edited by

                          Improvement to infoblock mechanism

                          The infoblock mechanism now works slightly differently. Here is an example:

                          Notice the 'false' at the end of the print_info_box? That is a new argument that suppresses the 'X' close button that is normally present in a text box.

                          
                          is exactly the same, except that the information block is initially open.
                          
                          It is now possible to have more than one infoblock (or infoblock_open) on a page. To do that, the classes _must begin with_ infoblock or infoblock_open but must also have a unique suffix. For example:
                          
                          

                          Als ik kan

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.