Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-17100

Introduce twig macros for commonly used form elements

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-a1
    • None
    • None

    Description

      Quite a few form elements like select or input are currently created inside PHP files. Part of this is done due to the need to autogenerate these fields. However, twig does come with form macros that can be used instead and allow part of this auto generation (read that as: the HTML part) while compiling the template files.

      This will allow adjusting HTML and styling elements better without the need to directly modify PHP files. It should also enable styling parts of phpBB's forms which was so far not possible.

      Due to the size of required changes, this ticket is about first introducing the concept and first macros. Follow up tickets and PRs will build upon these and continue the work of moving HTML code from PHP files.

      Attachments

        Issue Links

          Activity

            People

              Marc Marc
              Marc Marc
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: