| 145 | | NB Only {{{index.html}}} is required to start with since the RESTful controller normally re-uses standard views.[[BR]] |
| 146 | | If Custom Views are wanted they are detected automatically if files are found in {{{/views/<MODULE NAME>/<RESOURCE>_<METHOD>.html}}} |
| | 145 | Within that directory, add HTML templates for {{{index.html}}} and any custom views. A simple {{{index.html}}} is: |
| | 146 | |
| | 147 | {{{ |
| | 148 | {{extend "layout.html"}} |
| | 149 | <div id='home'> |
| | 150 | {{=H2(T(module_name))}} |
| | 151 | <p> |
| | 152 | {{=T("Manage Vehicles")}} |
| | 153 | </p> |
| | 154 | </div> |
| | 155 | }}} |
| | 156 | |
| | 157 | NB Only {{{index.html}}} is required to start with since the RESTful controller normally re-uses standard views. |
| | 158 | |
| | 159 | A custom view for a resource named <MODULE NAME>_<RESOURCE> will be found automatically if the view page is named {{{<RESOURCE>_<METHOD>.html}}} |