From d8ffe763571482902e979f296850196fef847b8f Mon Sep 17 00:00:00 2001 From: Joe Reeve Date: Sat, 7 Nov 2015 15:11:48 +0000 Subject: [PATCH] Teacher/parent --- build/components.html | 12 ++++++++++++ build/components.js | 8 ++++++-- build/index.html | 12 ++++++++++++ build/index.js | 8 ++++++-- client/components/parent/parent.css | 1 + client/components/parent/parent.js | 4 ++-- client/components/teacher/teacher.css | 0 client/components/teacher/teacher.html | 11 +++++++++++ client/components/teacher/teacher.js | 3 +++ data.sh | 2 ++ gulpfile.js | 2 +- students.csv | 19 +++++++++++++++++++ 12 files changed, 75 insertions(+), 7 deletions(-) create mode 100644 client/components/teacher/teacher.css create mode 100644 client/components/teacher/teacher.html create mode 100644 client/components/teacher/teacher.js create mode 100755 data.sh create mode 100644 students.csv diff --git a/build/components.html b/build/components.html index 86f96c4..dd68fe4 100644 --- a/build/components.html +++ b/build/components.html @@ -9,4 +9,16 @@ + + \ No newline at end of file diff --git a/build/components.js b/build/components.js index 228f922..f978894 100644 --- a/build/components.js +++ b/build/components.js @@ -1,3 +1,7 @@ -Ractive.components.student = Ractive.extend({ - template:'#student' +Ractive.components.parent = Ractive.extend({ + template:'#parent' +}); + +Ractive.components.teacher = Ractive.extend({ + template:'#teacher' }); diff --git a/build/index.html b/build/index.html index 3141681..7d44a6c 100644 --- a/build/index.html +++ b/build/index.html @@ -27,6 +27,18 @@ + +
diff --git a/build/index.js b/build/index.js index 9a928cd..8cbd2d5 100644 --- a/build/index.js +++ b/build/index.js @@ -1,7 +1,11 @@ $(document).ready(function(){ - Ractive.components.student = Ractive.extend({ - template:'#student' + Ractive.components.parent = Ractive.extend({ + template:'#parent' +}); + +Ractive.components.teacher = Ractive.extend({ + template:'#teacher' }); diff --git a/client/components/parent/parent.css b/client/components/parent/parent.css index e69de29..8b13789 100644 --- a/client/components/parent/parent.css +++ b/client/components/parent/parent.css @@ -0,0 +1 @@ + diff --git a/client/components/parent/parent.js b/client/components/parent/parent.js index 228f922..343413e 100644 --- a/client/components/parent/parent.js +++ b/client/components/parent/parent.js @@ -1,3 +1,3 @@ -Ractive.components.student = Ractive.extend({ - template:'#student' +Ractive.components.parent = Ractive.extend({ + template:'#parent' }); diff --git a/client/components/teacher/teacher.css b/client/components/teacher/teacher.css new file mode 100644 index 0000000..e69de29 diff --git a/client/components/teacher/teacher.html b/client/components/teacher/teacher.html new file mode 100644 index 0000000..2c594fa --- /dev/null +++ b/client/components/teacher/teacher.html @@ -0,0 +1,11 @@ +
+
+
+
+ {{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.

+
+
+
+
diff --git a/client/components/teacher/teacher.js b/client/components/teacher/teacher.js new file mode 100644 index 0000000..23744ba --- /dev/null +++ b/client/components/teacher/teacher.js @@ -0,0 +1,3 @@ +Ractive.components.teacher = Ractive.extend({ + template:'#teacher' +}); diff --git a/data.sh b/data.sh new file mode 100755 index 0000000..146fb25 --- /dev/null +++ b/data.sh @@ -0,0 +1,2 @@ +#!/bin/bash +mongoimport --db test -c student --headerline --upsert --file ./students.csv --type csv diff --git a/gulpfile.js b/gulpfile.js index a062b0e..0cf96cc 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -40,7 +40,7 @@ gulp.task('componentHTML', function(){ }); gulp.task('pageHTML', function(cb){ - runSequence('componentHTML', 'index', cb); + runSequence('componentHTML', 'siteHTML', cb); }) gulp.task('siteHTML', function(){ diff --git a/students.csv b/students.csv new file mode 100644 index 0000000..49f67c6 --- /dev/null +++ b/students.csv @@ -0,0 +1,19 @@ +Name,,Mindset,~3 Y7 Learn Session3,~4 Y7 Learn Session4,~6 Exam Int Y7-a,LOP Intervention,EAL,SEN,SEN Detail +"BROTAC, Alberto",,,2C,2C,2C,,Y,K,"Potential SLCN need, has word finding issue. Writes as he speaks, very little punctuation. Vulnerable boy who is largely at risk of the influence of others, and candidate for bullying. Needs sig. differentiation. Largely unaware of his own need." +"BURTON EDWARDS, Shakur",,,3C,3B,3B,Y,N,K,Dyslexic but with v. strong vocabulary. Likes 1-1 support and struggles to work independantly. Struggles with written word and getting ideas to paper but very intelligent - seek other ways for him to show his knowledge. Can be easily lead. +"CHAVEZ, Ainhoa",,,,3B,3B,,Y,N, +"DUNNAGE, Skye",,,,,,Y,,K,"Cognition&Learning. Poor attendance/gaps in learning. Poor social interaction with peers (bossy), prefers adults. Slow in learning. Literacy biggest issue. Reading OK. Assessed for dyslecxia but not. A Spencer assessed March 2015 using Phab and Tomal" +"DUREJKO, Kacper",,,,3B,3B,,Y,N, +"DUREJKO, Oskar",,,,3B,3B,,Y,N, +"ES SAHLY, Iman",,,,,,,Y,N, +"FROST, Emma", 07535 560 815 14107990 664033,,3C,3B,3B,,N,K,Emma has a range of complex difficulties. SAP and low functioning - low level threes. Lacks confidence which affects application of learning. Low cognitive range. Maths is weakest area; Keeps anxieties to herself. Will need significant support. Very quiet +"HUSSEIN, Latifah",,,,3C,3C,,,N, +"IOSIF, Ricardo",,,,,,,,K,"Eng2yrs. Should be an advanced bi-lingual. Things starting to click with English and Maths - making huge efforts. Anxious about move to NHS. Distinct lack of progress in English but speaks three languages, so Linguistically he could be a very high flyer" +"JAMA, Ali",,,2A,3B,3B,,Y,N, +"K.C, Sonam",,,,3B,3B,,Y,N, +"KAMAL, Aia",,,3C,3B,3B,,Y,N, +"KYERE, Ginnell",,,2A,3C,3C,,,K, +"MAHOMAD, Asma",07908 155356 ,,2A,3C,3C,,Y,K,Thi sis not an EAL need. We believe that potentially Asma has significant difficulties in her first language. She has had disrupted education throughout her life so far. Family happy with progress but school concerned that it is too slow in maths and engl +"MATTA, Prabjot",,,,3A,3A,,N,N, +"SARAFRAZ, Hamad",,,3A,3A,3A,,Y,K,Hamas has had Sp-eech and languag einput in the past and he has been able to progress. Needs overlearning of new owrds and explicit vocabulary teaching. Will benefit from scaffolds when writing and frequent use of the thesausrus. +SPASOVA Neli,,,,,,,,N, \ No newline at end of file