When enabled, it should check for the existence of a file named template.css file in /atomic/css/. If the file exists, just enabled the switch. If it doesn't exist, show a button with "Create template.css" switch stays disabled and becomes greyed out until the user clicks the button. When the user clicks the button, the template.css file is created, the success message shows next to it, the button disappears and the switch is no longer grayed out.
The AJAX file that controls this (but is currently broken) is in /atomic/ajax. It hardcodes the name of the template file in the path so it's preferred those paths are dynamic in case the user renamed the template folder.
When enabled, it should check for the existence of a file named
template.css
file in/atomic/css/
. If the file exists, just enabled the switch. If it doesn't exist, show a button with "Create template.css" switch stays disabled and becomes greyed out until the user clicks the button. When the user clicks the button, the template.css file is created, the success message shows next to it, the button disappears and the switch is no longer grayed out.The AJAX file that controls this (but is currently broken) is in
/atomic/ajax
. It hardcodes the name of the template file in the path so it's preferred those paths are dynamic in case the user renamed the template folder.