Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292036

Consolidate administrative tables into singular theme callback/component

$
0
0

In doing the Twig conversion, we are moving many concatenation-based theme functions into templates. Some of these are for administrative forms, which are based on tables.

Most of these follow a similar design pattern:

HEADING
-------

[ Global operation button(s) ]

[ Filter form ]

[ Operations form ]

[ Show/hide details link ]

+===========================================+
| HEADING        | HEADING     | OPERATIONS |
+================+=============+============+
| Foo            | Oof         | edit del   +
+ ---------------|-------------|------------+
| Bar            | Rab         | edit del   +
+ ---------------|-------------|------------+
| Baz            | Zab         | edit del   +
+===========================================+

[ Global operation button(s) ]

This pattern is similar to what we sometimes accomplish with http://drupal.org/project/views_bulk_operations

Below are some URLs in core where these exist (this is not an exhaustive list).

/admin/content
/admin/content/comment
/admin/structure/types
/admin/people
/admin/people/roles
/admin/config/content/formats
/admin/config/media/image-styles
/admin/config/regional/date-time
/admin/modules (similar)

Many of these provide a theme function to style the form they use. It seems better that we should provide instead a consolidated "administrative interface" theme component so that we can reduce the duplication in the theme system


Viewing all articles
Browse latest Browse all 292036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>