Template Files Format
Each individual template file is split into the following three files:
- The HTML template file
- This file contains the actual HTML and any potential dynamic Macro replacements. The Macro replaced data is passed to a secondary JavaScript file using either the HTML script element dataset or the script text content as JSON.
- An optional JavaScript file
- This file contains any required scripting including handlers for HTML elements such as buttons, links, and more. There is no Macro replacement performed in JavaScript files for authentication mechanism templates. For example, the templates in C/authsvc/authenticator. However, Macro replacement does work in user self care JavaScript files, such as those in C/mga or C/mmfa. JavaScript files must be included by the HTML template.
- An optional css file
- This contains any required styling for the HTML elements. Stylesheet files must be included by the HTML template.
Directory Structure
There are different layouts for the various AAC template files:
- Authentication Mechanism templates
- The HTML template files exist in the location: <LANG>/authsvc/authenticator/<mech_name>
- The JavaScript template files exist in the location: C/static/javascript/<mech_name>
- The css template files exist in the location: C/static/css/<mech_name>
Note: Some files only exist in the C/static directory and not other language directories, as they do not contain any translated strings. - MMFA User Self Care templates
- The HTML, JavaScript, and css template files exist in the location: <LANG>/mmfa/user/mgmt/mmfa
The exception to this is that the manage.html app templates are split into:- The HTML template files exist in the location: <LANG>/mmfa/user/mgmt/mmfa/usc
- The JavaScript template files exist in the location: <LANG>/mmfa/user/mgmt/mmfa/usc/static/js
- The css template files exist in the location: <LANG>/mmfa/user/mgmt/mmfa/usc/static/css
- Other User Self Care templates
- The HTML, JavaScript, and css template files exist in or under the location: <LANG>/mga/user/mgmt/