Clark C. Evans avatar Clark C. Evans committed 9024cd5

tweaks to htraf (dashboard) example in showcase

Comments (0)

Files changed (1)

 
       <body>
       <h3>Select a School</h3>
-      <select id="school" data-htsql="/school{code, name}"></select>
+      <select id="school" 
+        data-htsql="/school{code, name}"></select>
       <div style="width: 500px; height: 350px;"
-          data-htsql="/program{title, count(student)}
-                      ?school=$school&count(student)>0"
-          data-type="pie"
-          data-widget="chart"
-          data-title="Percent of Students by Program"></div>
+        data-htsql="/program{title, count(student)}
+                    ?school=$school&count(student)>0"
+        data-type="pie"
+        data-widget="chart"
+        data-title="Percent of Students by Program"></div>
       <h3>Departments</h3>
       <p>Filter by name: <input id="department_name"/></p>
       <table id="department" data-hide-column-0="yes"
-          data-htsql="/department{code, name, school.name}
-                      ?school=$school&name~$department_name">
+        data-htsql="/department{code, name, school.name}
+                    ?school=$school&name~$department_name">
       </table>
       <p>
-          The selected department:
-          <em data-htsql="/department{name}?code=$department"></em> <br/>
-          The number of courses in the selected department:
-          <strong data-htsql="/department{count(course)}?code=$department">
-          </strong>
+        The selected department:
+        <em data-htsql="/department{name}?code=$department"></em> <br/>
+        The number of courses in the selected department:
+        <strong data-htsql="/department{count(course)}
+                            ?code=$department"></strong>
       </p>
       <h3>Courses</h3>
-      <table id="course" data-htsql="/course?department=$department">
+      <table id="course" 
+        data-htsql="/course?department=$department">
       </table>
       </body>
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.