From 9bd58eb460cb91490be6d65e4c7fa898f8258b97 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 30 Mar 2018 17:32:12 +0200 Subject: [PATCH] [teacher.view] create card with same design as others [data.teacher] created handler 'ic_reset' + added button 'CANCEL' to reset form & untoggle --- webpack/component/teacher/view.vue | 5 +++++ webpack/data/teacher.js | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/webpack/component/teacher/view.vue b/webpack/component/teacher/view.vue index 62c77da..e69eb45 100644 --- a/webpack/component/teacher/view.vue +++ b/webpack/component/teacher/view.vue @@ -33,6 +33,10 @@
+
+ 0 + HETD +
heures à faire @@ -43,6 +47,7 @@ diff --git a/webpack/data/teacher.js b/webpack/data/teacher.js index 4b541c1..fb73499 100644 --- a/webpack/data/teacher.js +++ b/webpack/data/teacher.js @@ -281,7 +281,17 @@ gstore.add('create_h', ''); gstore.add('create_err_valid', false); gstore.add('create_err', ''); -/* (4) Define create handler */ +/* (4) Define reset handler */ +gstore.add('ic_reset', function(){ + gstore.add('create_cat', '-'); + gstore.add('create_name', ''); + gstore.add('create_cas', ''); + gstore.add('create_h', ''); + gstore.add('create_err_valid', false); + gstore.add('create_err', ''); +}); + +/* (5) Define create handler */ gstore.add('ic_handler', function(prof_id){ /* (4.1) Trim text input */