diff --git a/.DS_Store b/.DS_Store index e670f7a..1db1709 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/build/components.html b/build/components.html index dd68fe4..a4be84e 100644 --- a/build/components.html +++ b/build/components.html @@ -10,15 +10,129 @@ - \ No newline at end of file diff --git a/build/components.js b/build/components.js index f978894..193bc1f 100644 --- a/build/components.js +++ b/build/components.js @@ -5,3 +5,22 @@ Ractive.components.parent = Ractive.extend({ Ractive.components.teacher = Ractive.extend({ template:'#teacher' }); + +// $(document).ready(function(){ +// // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered +// $('.modal-trigger').leanModal({ +// dismissible: false, // Modal can be dismissed by clicking outside of the modal +// opacity: .5, // Opacity of modal background +// in_duration: 300, // Transition in duration +// out_duration: 200, // Transition out duration +// ready: function() { alert('Ready'); }, // Callback for Modal open +// complete: function() { alert('Closed'); } // Callback for Modal close +// } +// ); +// }); + + $(document).ready(function(){ + // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered + $('.modal-trigger').leanModal(); + }); + diff --git a/build/index.html b/build/index.html index 7d44a6c..e432fde 100644 --- a/build/index.html +++ b/build/index.html @@ -3,16 +3,9 @@ RCard - - - - - - - @@ -28,20 +21,141 @@ -
+ + + + + + + diff --git a/build/index.js b/build/index.js index 8cbd2d5..b07b058 100644 --- a/build/index.js +++ b/build/index.js @@ -8,6 +8,25 @@ Ractive.components.teacher = Ractive.extend({ template:'#teacher' }); +// $(document).ready(function(){ +// // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered +// $('.modal-trigger').leanModal({ +// dismissible: false, // Modal can be dismissed by clicking outside of the modal +// opacity: .5, // Opacity of modal background +// in_duration: 300, // Transition in duration +// out_duration: 200, // Transition out duration +// ready: function() { alert('Ready'); }, // Callback for Modal open +// complete: function() { alert('Closed'); } // Callback for Modal close +// } +// ); +// }); + + $(document).ready(function(){ + // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered + $('.modal-trigger').leanModal(); + }); + + $.getJSON('/data/'+location.pathname.split('/').slice(3).join('/'), function(res){ diff --git a/client/components/teacher/teacher.html b/client/components/teacher/teacher.html index 2c594fa..9ba99cf 100644 --- a/client/components/teacher/teacher.html +++ b/client/components/teacher/teacher.html @@ -1,11 +1,125 @@ -
-
-
-
- {{studentName}} - {{age}} -

I am a very simple card. I am good at containing small bits of information. - I am convenient because I require little markup to use effectively.

-
-
+ + + + +
+ + + + Modal + + + + + +
+
+ +
    + {{#each fields:i}} + {{>field}} + {{/each}} + Fields are in here +
+
+ +
+ + +
+
+ {{studentName}} - {{age}} +

I am a very simple card. I am good at containing small bits of information. + I am convenient because I require little markup to use effectively.

+ Class 8Y/IT1
+ ICT Module Box
+
+ Behaviour
+ etc.
+

This is where the actual table data goes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameItem NameItem Price
AlvinEclair$0.87
AlanJellybean$3.76
JonathanLollipop$7.00
ShannonKitKat$9.99
+ +
+
+ + +
+ +
+ + + + + + + + + diff --git a/client/components/teacher/teacher.js b/client/components/teacher/teacher.js index 23744ba..e08850f 100644 --- a/client/components/teacher/teacher.js +++ b/client/components/teacher/teacher.js @@ -1,3 +1,22 @@ Ractive.components.teacher = Ractive.extend({ template:'#teacher' }); + +// $(document).ready(function(){ +// // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered +// $('.modal-trigger').leanModal({ +// dismissible: false, // Modal can be dismissed by clicking outside of the modal +// opacity: .5, // Opacity of modal background +// in_duration: 300, // Transition in duration +// out_duration: 200, // Transition out duration +// ready: function() { alert('Ready'); }, // Callback for Modal open +// complete: function() { alert('Closed'); } // Callback for Modal close +// } +// ); +// }); + + $(document).ready(function(){ + // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered + $('.modal-trigger').leanModal(); + }); + diff --git a/client/index.html b/client/index.html index cd353ff..5fe0e08 100644 --- a/client/index.html +++ b/client/index.html @@ -3,16 +3,9 @@ RCard - - - - - - - @@ -20,5 +13,12 @@
+ + + + + + +