|
| 1 | +<cfoutput> |
| 2 | + |
| 3 | +<div class="jumbotron"> |
| 4 | + <img src="includes/images/ColdBoxLogoSquare_125.png" class="pull-left margin10" alt="logo"/> |
| 5 | + <h1>#prc.welcomeMessage#</h1> |
| 6 | + <p> |
| 7 | + <strong>#getColdBoxSetting("codename")# #getColdBoxSetting("version")# (#getColdBoxSetting("suffix")#)</strong>. |
| 8 | + Test Harness Application |
| 9 | + <a class="btn btn-primary" href="index.cfm?fwreinit=1" > |
| 10 | + <strong>Reinitialize Framework</strong> |
| 11 | + </a> |
| 12 | + </p> |
| 13 | +</div> |
| 14 | + |
| 15 | +<div class="row"> |
| 16 | + <div class="col-md-9"> |
| 17 | + |
| 18 | + <h2>#html.slugify( "html helper ' can slugify via the string util" )#</h2> |
| 19 | + |
| 20 | + <section id="eventHandlers"> |
| 21 | + <div class="page-header"> |
| 22 | + <h2> |
| 23 | + Registered Event Handlers: #sayHello()# #sayViewHello()# |
| 24 | + </h2> |
| 25 | + </div> |
| 26 | + |
| 27 | + <div style="border:1px dotted gray; padding: 10px; margin: 10px 0px"> |
| 28 | + #view( view = "viewWithArgs", args = { data = "Hi I am Data!" } )# |
| 29 | + </div> |
| 30 | + |
| 31 | + <p> |
| 32 | + You can click on the following event handlers to execute their default action |
| 33 | + <span class="label label-important">index()</span> |
| 34 | + </p> |
| 35 | + <ul> |
| 36 | + <cfloop list="#getSetting("RegisteredHandlers")#" index="handler"> |
| 37 | + <li><a href="#event.buildLink( handler )#">#handler#</a></li> |
| 38 | + </cfloop> |
| 39 | + </ul> |
| 40 | + </section> |
| 41 | + |
| 42 | + <section id="modules"> |
| 43 | + <div class="page-header"> |
| 44 | + <h2> |
| 45 | + Registered Modules |
| 46 | + </h2> |
| 47 | + </div> |
| 48 | + <p>Below are your application's loaded modules, click on them to visit them.</p> |
| 49 | + <ul> |
| 50 | + <cfloop collection="#getSetting( "Modules" )#" item="thisModule"> |
| 51 | + <li> |
| 52 | + <a href="#event.buildLink( getModuleConfig( thisModule ).entryPoint )#">#thisModule#</a> |
| 53 | + </li> |
| 54 | + </cfloop> |
| 55 | + </ul> |
| 56 | + <cfif structCount( getSetting("Modules") ) eq 0> |
| 57 | + <div class="alert alert-info">There are no modules in your application</div> |
| 58 | + </cfif> |
| 59 | + </section> |
| 60 | + |
| 61 | + <section id="named-routes"> |
| 62 | + <div class="page-header"> |
| 63 | + <h2> |
| 64 | + Named Routes Construction |
| 65 | + </h2> |
| 66 | + </div> |
| 67 | + <ul> |
| 68 | + <li><a href="#event.route( "contactus" )#">#event.route( "contactus" )#</a></li> |
| 69 | + <li><a href="#event.buildLink( { name: "testRoute" } )#">#event.buildLink( { name: "testRoute" } )#</a></li> |
| 70 | + <li><a href="#event.route( "testRouteWithParams", { id=1, name='test' } )#">#event.route( "testRouteWithParams", { id=1, name='test' } )#</a></li> |
| 71 | + <li><a href="#event.buildLink( { name: "complexParams", params : { id=1, name='test' } } )#">#event.route( "complexParams", { id=1, name='test' } )#</a></li> |
| 72 | + </ul> |
| 73 | + </section> |
| 74 | + |
| 75 | + </div> |
| 76 | + |
| 77 | +</div> |
| 78 | +</cfoutput> |
0 commit comments