1 | <div> |
---|
2 | <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'center'" style="height: 600px;"> |
---|
3 | <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'"> |
---|
4 | <h2> |
---|
5 | <span class="rftIcon rftIconUser"></span> |
---|
6 | <span class="headerText">Main Menu</span> |
---|
7 | </h2> |
---|
8 | </div> |
---|
9 | |
---|
10 | <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"> |
---|
11 | |
---|
12 | <div class="rftIndexMenuBlock" title="Sessions"> |
---|
13 | <div class="rftIndexMenuMask"> |
---|
14 | <span class="rftIcon rftIconSession"></span><span class="label">Sessions</span> |
---|
15 | </div> |
---|
16 | <button id="btnContentCreate" data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftIndexMenuButton', class: 'green twoHeight', iconClass: 'rftIcon rftIconPlus'">Create and edit</button> |
---|
17 | <button id="btnContentFacilitate" data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftIndexMenuButton', class: 'green twoHeight', iconClass: 'rftIcon rftIconForward'">Facilitate</button> |
---|
18 | </div> |
---|
19 | |
---|
20 | <div class="rftIndexMenuBlock" title="Content"> |
---|
21 | <div class="rftIndexMenuMask"> |
---|
22 | <span class="rftIcon rftIconInspect"></span><span class="label">Content</span> |
---|
23 | </div> |
---|
24 | <button id="btnSurveys" data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftIndexMenuButton', class: 'blue oneHeight', iconClass: 'rftIcon rftIconSurvey'">Surveys</button> |
---|
25 | <button id="btnQuestions" data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftIndexMenuButton', class: 'orange oneHeight', iconClass: 'rftIcon rftIconQuestion'">Questions</button> |
---|
26 | <button id="btnApplications" data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftIndexMenuButton', class: 'purple oneHeight', iconClass: 'rftIcon rftIconApplication'">Applications</button> |
---|
27 | <button id="btnDashboards" data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftIndexMenuButton', class: 'red oneHeight', iconClass: 'rftIcon rftIconDashboard'">Dashboards</button> |
---|
28 | </div> |
---|
29 | |
---|
30 | <div class="rftIndexMenuBlock" title="results"> |
---|
31 | <div class="rftIndexMenuMask"> |
---|
32 | <span class="rftIcon rftIconGameData"></span><span class="label">Results</span> |
---|
33 | </div> |
---|
34 | <button id="btnResults" data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftIndexMenuButton', class: 'blue fourHeight', iconClass: 'rftIcon rftIconGameData'">Results</button> |
---|
35 | </div> |
---|
36 | </div> |
---|
37 | </div> |
---|
38 | |
---|
39 | <script> |
---|
40 | require([ |
---|
41 | 'dojo/on', |
---|
42 | 'dojo/query', |
---|
43 | 'dijit/registry', |
---|
44 | 'rft/content', |
---|
45 | 'dojo/domReady!' |
---|
46 | ], function(on, query, registry, content){ |
---|
47 | debugger; |
---|
48 | registry.byId("btnSessionsCreate").on("click", function(){ |
---|
49 | content.goTo("sessions", null); |
---|
50 | }); |
---|
51 | registry.byId("btnSessionsFacilitate").on("click", function(){ |
---|
52 | content.goTo("sessions", null); |
---|
53 | }); |
---|
54 | |
---|
55 | registry.byId("btnSurveys").on("click", function(){ |
---|
56 | content.goTo("surveys", null); |
---|
57 | }); |
---|
58 | registry.byId("btnQuestions").on("click", function(){ |
---|
59 | content.goTo("questions", null); |
---|
60 | }); |
---|
61 | registry.byId("btnApplications").on("click", function(){ |
---|
62 | content.goTo("applications", null); |
---|
63 | }); |
---|
64 | registry.byId("btnDashboards").on("click", function(){ |
---|
65 | content.goTo("dashboards", null); |
---|
66 | }); |
---|
67 | |
---|
68 | registry.byId("btnResults").on("click", function(){ |
---|
69 | content.goTo("results", null); |
---|
70 | }); |
---|
71 | |
---|
72 | }); |
---|
73 | </script> |
---|
74 | </div> |
---|