This RFC is addition to [RFC] Merge style components
Introduction
With removal of styles components, theme and template sections of styles section of admin control panel become pointless. Layout will require moving stuff around.
Proposal
I propose to revamp styles section of admin control panel.
Menu on left side:
- Installed Styles (default item)
- Install Style
- Purge Cache
Installed Styles shows list of styles that are installed. It will be separated into two sections: active styles and inactive styles. Each row will have these items:
- Style name
- Used by, which shows number of users using it
- Default style column: radio box, allowing admin to quickly change default style
- Options block.
Options block in installed styles section will include:
- Activate / Deactivate (same as now)
- Details. This will allow admin to rename style and will show copyright, version and template inheritance information
- Edit. This will allow admin to edit css and template files. It will be shown as directory tree browser, allowing admin to select .html and .css files within style directory and edit them.
- Delete (same as now)
- Preview (same as now)
Install Style section will show list of available styles, similar to end of styles section now. In addition, if php has write permission to styles directory, it will have option to upload and install style.
Purge Cache section: copy of "purge cache" button from admin control panel index. It is confusing for users to having to go to acp index to clear compiled templates cache, so this menu item will help.
Patch
Ticket: click here
Pull request: click here




