Commit e8304e54 authored by ZeMKI's avatar ZeMKI
Browse files

Create a supervisor in the backend

* now there's a user interface to activate supervisors
* you can send test emails to check what's in there
* default text in app/utilities
* bugfixed keyenter 13 that was active on the whole website instead of only the interview
parent 5d142e17
......@@ -52,10 +52,15 @@ class CreateUserCommand extends Command
if ($this->store($role, $email, $user)) {
Mail::to($email)->send(new VerificationEmail($user));
Mail::to($email)->send(new VerificationEmail($user,config('utilities.emailDefaultText')));
$this->info('An email was sent to '.$user->email.' he/she needs to set the password.');
return true;
} else
{
$this->info('There it was an error during user creation, please try again.');
return false;
}
}
......
......@@ -178,6 +178,10 @@ class UserController extends Controller
{
// case from admin area
if($request->testEmail){
Mail::to($request->email)->send(new VerificationEmail(new User,$request->emailtext? $request->emailtext : config('utilities.emailDefaultText')));
return redirect('/admin/supervisor')->with(['message'=>'Test Email sent to '.$request->email]);
}
$editpermissions = Permission::where('name', 'like', '%interviews')->get()->toArray();
......@@ -202,16 +206,17 @@ class UserController extends Controller
// supervisor create a researcher
$user->supervised_by = Auth::user()->id;
Mail::to($user->email)->send(new VerificationEmail($user));
$user->save();
$user->attachRole($role, $study);
Mail::to($user->email)->send(new VerificationEmail($user,$request->emailtext? $request->emailtext : config('utilities.emailDefaultText')));
}
$user->attachPermissions($editpermissions, $study);
return response("An email verification was sent to " . $user->email . " please let the user open it");
if(!$request->emailtext)return response("An email verification was sent to " . $user->email . " please let the user open it");
else return redirect('/admin/supervisor')->with(['message'=>'User registered']);
}
......
......@@ -16,9 +16,10 @@ class VerificationEmail extends Mailable
*
* @return void
*/
public function __construct(User $user)
public function __construct(User $user, $emailtext)
{
$this->user = $user;
$this->emailtext = $emailtext;
}
/**
......@@ -28,6 +29,6 @@ class VerificationEmail extends Mailable
*/
public function build()
{
return $this->from('noreply@kommunikative-figurationen.de')->markdown('email.setpassword')->with(['user' => $this->user]);
return $this->from('no_reply@kommunikative-figurationen.de')->markdown('email.setpassword')->with(['user' => $this->user, 'text' => $this->emailtext]);
}
}
......@@ -2,6 +2,12 @@
return [
'base64logo' => "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAXkXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZtpViQ5lKz/axW9BNcsLUfjOb2Dt/z+TB5AkARZBfUgkwg83DXcwa6ZJMz6f/+7zf/wlX1JJsRcUk3p4ivUUF3jTbnur3p+2iucn+crhcdn9vN18/6B45Ln1d+/5va4v3E9fjzw1oftn6+b8vjElUdD9r3h8+XVs96P50Fy3d3X7WMgpj5uSLXk56H2xwPzMbIzlMf/8D6s+0W/m08XMlaakY68c8tbf/EzqXfPyHz17bw2fndO7wLvo0/8tEY33lNq16epvU+R608jde7xzn++bt4/uK5na37yyPs7+8112jDPngpvH/g/DJ/eX19et/GtobcP/Hs/7rnnkN57/nS9LPvmk4exnzyy9yx7r3t2LSTMnx6TepvKecd9NBL8eSpdyVyZl8gv+XxXvsvVrkF8TGKn8z1stQ4XbhvstM1uu87rsIMhBrdcdjK2G86fi8VnV93wt2P5tttlnD59weGDUPBcde9jsafberobxhZ6npZbnaUxqxj5zbf5yc17Kw2svcq7rRiXUwI5Y2VGr5/cJv/vh1HjMfDb959f8qvHgxELZxquBsP2u4ke7QcK+ONoz42R1zsxbZ6PBjARXUcGYz0euJL1Jtpkr+xcthZDFhzUGLrzwXU8YGN0k0G64H3COcVh3MYj2Z5bXXT35WpcwxNKPGBOaYmzQojETw6FGGrRxxBjTDHHEmtsyaeQYkopJwFiyz6HHHMyOeeSa27Fl1BiSSWXUmpp1VUPYMaaaq6l1toafTZabjzduKG17rrvoceeeja99NrbIHxGGHGkkUcZdbTppp9gykwzzzLrbMsuQmmFFVdaeZVVV9uE2vY77Gh22nmXXXd799rDrV++f+A1+/CaO57Sjfnda1zN+a0JKziJ8hkec8FGsj/LBQS0k8+uYkNw8px8dlVHVkTHIKOcM608hgfDsi5u++47PjRynWv/3W8mp3e/uf/iOSPX/cBzX/32ymun9IzjMYxu7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7HVNpgcvKJDpbZFN4GFVWtJqvZZHPNeW9CdkWK1yoRdrvyq37nuudGAuetSk3c83g7nhf/0GylKkkJ1azUpovvUm1ggafpIJWnAafwMKIWSOWEIiocWb61qHdvelR7zvaUqZw2eDkPjq4Z6v/76GOonSrSuU2PulPiw5TPqFYpahtPGrL4X29mTHjApGtm3ofuiv1yavM3pOo41zkrdzJHP4SYkYdKliVmD0TDFikfrGWI1s29Nx+c7yvt/tjH27e9lGTSTJR4QnW6v1ZBGvjVXtE4qjtHxlgRvS8s3ruvCXa3g6AInb7h97bett1ph5W6BdU33IhFLBgi8Ty4SKyZUPvt2+LtrUGQJDFbe9+e8c3b5pdbSOUw4lLCyyyEPVOlo1s3dRz5y1228rjvs1tuuwtHd+7BVGbS/Xb0XJxQ5ARpZE3vLzn9i9G2tr8SAR/34AL2MzcfMHWju1f1qb6/ZUONbAskMXRN23u+crnIh0rKe9T6kfVgPep+bWv6rr3K9y9ojB5rH+wqrnkN7z9/pZ3XmK3t53UYIzWndq5h1OJyNpeXiQMX9X10aksElFjTKa5fPEEutqDtcSwCZGzFtuvXXuJwcJS/42l/wdUpvelZTE5ogAAAABJRU5ErkJggg=="
, 'test' => 'test',
'emailDefaultText' => "# Welcome to Mesort
Please confirm your email address and set a password by clicking on the following button.
If you don't see the button, please copy and paste this link:
",
];
......@@ -734,12 +734,7 @@ __webpack_require__.r(__webpack_exports__);
//
//
//
$(document).on('keydown', function (e) {
if (e.keyCode == 13) {
e.preventDefault();
}
}); // record animation
// record animation
$(document).ready(function () {
var divs = $('*[class^="rect"]');
 
......@@ -808,7 +803,12 @@ $(document).ready(function () {
}
},
mounted: function mounted() {
// Prevent pull refresh chrome
$(document).on('keydown', function (e) {
if (e.keyCode == 13) {
e.preventDefault();
}
}); // Prevent pull refresh chrome
var lastTouchY = 0;
var preventPullToRefresh = false;
window.document.body.addEventListener("touchstart", function (e) {
......@@ -16686,15 +16686,12 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var buefy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buefy__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var vue_material_design_icons_styles_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-material-design-icons/styles.css */ "./node_modules/vue-material-design-icons/styles.css");
/* harmony import */ var vue_material_design_icons_styles_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_material_design_icons_styles_css__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var interactjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! interactjs */ "./node_modules/interactjs/dist/interact.js");
/* harmony import */ var interactjs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(interactjs__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var vue_material_design_icons_Plus_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-material-design-icons/Plus.vue */ "./node_modules/vue-material-design-icons/Plus.vue");
/* harmony import */ var vue_material_design_icons_ArrowLeft_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-material-design-icons/ArrowLeft.vue */ "./node_modules/vue-material-design-icons/ArrowLeft.vue");
/* harmony import */ var vue_material_design_icons_ArrowRight_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue-material-design-icons/ArrowRight.vue */ "./node_modules/vue-material-design-icons/ArrowRight.vue");
/* harmony import */ var vue_material_design_icons_TrashCan_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-material-design-icons/TrashCan.vue */ "./node_modules/vue-material-design-icons/TrashCan.vue");
/* harmony import */ var vue_material_design_icons_Pencil_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue-material-design-icons/Pencil.vue */ "./node_modules/vue-material-design-icons/Pencil.vue");
/* harmony import */ var vue_select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vue-select */ "./node_modules/vue-select/dist/vue-select.js");
/* harmony import */ var vue_select__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vue_select__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var vue_material_design_icons_Plus_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-material-design-icons/Plus.vue */ "./node_modules/vue-material-design-icons/Plus.vue");
/* harmony import */ var vue_material_design_icons_ArrowLeft_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-material-design-icons/ArrowLeft.vue */ "./node_modules/vue-material-design-icons/ArrowLeft.vue");
/* harmony import */ var vue_material_design_icons_ArrowRight_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-material-design-icons/ArrowRight.vue */ "./node_modules/vue-material-design-icons/ArrowRight.vue");
/* harmony import */ var vue_material_design_icons_Pencil_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue-material-design-icons/Pencil.vue */ "./node_modules/vue-material-design-icons/Pencil.vue");
/* harmony import */ var vue_select__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-select */ "./node_modules/vue-select/dist/vue-select.js");
/* harmony import */ var vue_select__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vue_select__WEBPACK_IMPORTED_MODULE_6__);
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
......@@ -16709,10 +16706,8 @@ __webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js");
 
 
 
window.Vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js");
Vue.component('v-select', vue_select__WEBPACK_IMPORTED_MODULE_8___default.a);
Vue.component('v-select', vue_select__WEBPACK_IMPORTED_MODULE_6___default.a);
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
......@@ -16828,10 +16823,10 @@ Vue.mixin({
window.app = new Vue({
el: '#app',
components: {
PlusIcon: vue_material_design_icons_Plus_vue__WEBPACK_IMPORTED_MODULE_3__["default"],
ArrowRight: vue_material_design_icons_ArrowRight_vue__WEBPACK_IMPORTED_MODULE_5__["default"],
ArrowLeft: vue_material_design_icons_ArrowLeft_vue__WEBPACK_IMPORTED_MODULE_4__["default"],
Pencil: vue_material_design_icons_Pencil_vue__WEBPACK_IMPORTED_MODULE_7__["default"]
PlusIcon: vue_material_design_icons_Plus_vue__WEBPACK_IMPORTED_MODULE_2__["default"],
ArrowRight: vue_material_design_icons_ArrowRight_vue__WEBPACK_IMPORTED_MODULE_4__["default"],
ArrowLeft: vue_material_design_icons_ArrowLeft_vue__WEBPACK_IMPORTED_MODULE_3__["default"],
Pencil: vue_material_design_icons_Pencil_vue__WEBPACK_IMPORTED_MODULE_5__["default"]
},
data: {
newstudy: {},
{
"/js/app.js": "/js/app.js?id=ae086bf49dbc84368c71",
"/js/app.js": "/js/app.js?id=3803ce4ea00beb99b3c5",
"/css/app.css": "/css/app.css?id=33e8c8db759d1aed6c23",
"/css/app_dompdf.css": "/css/app_dompdf.css?id=225174786ee9d00fe897",
"/js/manifest.js": "/js/manifest.js?id=844cdbfe9e6b6b56ae8f",
......
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
import Buefy from 'buefy'
import "vue-material-design-icons/styles.css"
import interact from 'interactjs'
import PlusIcon from "vue-material-design-icons/Plus.vue"
import ArrowLeft from "vue-material-design-icons/ArrowLeft.vue"
import ArrowRight from "vue-material-design-icons/ArrowRight.vue"
import TrashCan from "vue-material-design-icons/TrashCan.vue"
import Pencil from "vue-material-design-icons/Pencil.vue"
require('./bootstrap');
import Buefy from 'buefy'
import "vue-material-design-icons/styles.css"
import PlusIcon from "vue-material-design-icons/Plus.vue"
import ArrowLeft from "vue-material-design-icons/ArrowLeft.vue"
import ArrowRight from "vue-material-design-icons/ArrowRight.vue"
import Pencil from "vue-material-design-icons/Pencil.vue"
import vSelect from 'vue-select'
window.Vue = require('vue');
import vSelect from 'vue-select'
window.Vue = require('vue');
Vue.component('v-select', vSelect)
/**
......@@ -27,116 +23,115 @@ Vue.component('v-select', vSelect)
* or customize the JavaScript scaffolding to fit your unique needs.
*/
Vue.component('new-study', require('./components/newstudy.vue').default);
Vue.component('new-edit-user', require('./components/newedituser.vue').default);
Vue.component('user-overview', require('./components/overviewuser.vue').default);
Vue.component('new-interview', require('./components/newinterview.vue').default);
Vue.component('sorting', require('./components/sorting.vue').default);
Vue.component('consultsorting', require('./components/consultsorting.vue').default);
Vue.component('userpart', require('./components/userpart.vue').default);
Vue.config.devtools = true;
Vue.config.debug = true;
Vue.config.silent = false;
Vue.use(Buefy)
Vue.component('new-study', require('./components/newstudy.vue').default);
Vue.component('new-edit-user', require('./components/newedituser.vue').default);
Vue.component('user-overview', require('./components/overviewuser.vue').default);
Vue.component('new-interview', require('./components/newinterview.vue').default);
Vue.component('sorting', require('./components/sorting.vue').default);
Vue.component('consultsorting', require('./components/consultsorting.vue').default);
Vue.component('userpart', require('./components/userpart.vue').default);
Vue.config.devtools = true;
Vue.config.debug = true;
Vue.config.silent = false;
Vue.use(Buefy)
var bus = new Vue();
// Assign globally functions for getCookies and setCookies in JS
Vue.mixin({
data() {
return {
fromidtoname:{
permissionsNames:{
1: "Only consult data",
2: "Can edit study",
3: "Can assign users to study",
4: "Can edit and create users",
5: "Can edit and create studies",
6: "Creator of the study"
},
permissionsVariables:{
onlyconsult: 1,
caneditstudy: 2,
canassignusers: 3,
cancreateusers: 4,
cancreatestudy: 5,
creator: 6
}
}
}
},
computed: {
url: function () {
return document.URL.split('/').pop();
}
},
methods: {
getCookie: function(cname) {
let name = cname + "=";
let ca = document.cookie.split(';');
for(let i = 0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
data() {
return {
fromidtoname: {
permissionsNames: {
1: "Only consult data",
2: "Can edit study",
3: "Can assign users to study",
4: "Can edit and create users",
5: "Can edit and create studies",
6: "Creator of the study"
},
permissionsVariables: {
onlyconsult: 1,
caneditstudy: 2,
canassignusers: 3,
cancreateusers: 4,
cancreatestudy: 5,
creator: 6
}
}
}
return "";
},
setCookie: function (cname, cvalue, exdays) {
let d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
let expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
},
deleteCookie: function(name){
document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
computed: {
url: function () {
return document.URL.split('/').pop();
}
},
confirmdelete: function(id, name){
this.$dialog.confirm(
{
title: 'Confirm Delete',
message: `Are you sure to delete the study `+name+' and all the deleted data?',
cancelText: 'Cancel',
confirmText: 'Delete',
type: 'is-danger',
onConfirm: () => this.deletestudy(id)
methods: {
getCookie: function (cname) {
let name = cname + "=";
let ca = document.cookie.split(';');
for (let i = 0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
},
setCookie: function (cname, cvalue, exdays) {
let d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
let expires = "expires=" + d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
},
deleteCookie: function (name) {
document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
},
confirmdelete: function (id, name) {
this.$dialog.confirm(
{
title: 'Confirm Delete',
message: `Are you sure to delete the study ` + name + ' and all the deleted data?',
cancelText: 'Cancel',
confirmText: 'Delete',
type: 'is-danger',
onConfirm: () => this.deletestudy(id)
}
);
},
deletestudy: function (id) {
this.loading = true;
this.message = "";
let self = this;
axios.delete('studies/' + id, {data: id})
.then(response => {
setTimeout(function () {
self.loading = false;
self.$snackbar.open("Study deleted");
window.location.href = '../mesort';
}, 500);
}).catch(function (error) {
console.log(error);
self.loading = false;
self.$snackbar.open("There it was an error during the request - refresh page and try again");
});
},
goto: function (url) {
window.location.href = url;
}
}
);
},
deletestudy: function(id){
this.loading = true;
this.message = "";
let self = this;
axios.delete('studies/'+id,{data: id})
.then(response => {
setTimeout(function(){
self.loading = false;
self.$snackbar.open("Study deleted");
window.location.href = '../mesort';
},500);
}).catch(function (error) {
console.log(error);
self.loading = false;
self.$snackbar.open("There it was an error during the request - refresh page and try again");
});
},
goto: function(url){
window.location.href = url;
}
}
});
window.app = new Vue({
el: '#app',
components: {
......@@ -146,9 +141,7 @@ window.app = new Vue({
Pencil
},
data: {
newstudy: {
},
newstudy: {},
users: {},
newuser: {
showmodal: false,
......@@ -165,53 +158,58 @@ window.app = new Vue({
},
events: {
'showmodalparent': function(){
'showmodalparent': function () {
console.log("test")
}
},
methods: {
showmodal: function(id = null, study){
showmodal: function (id = null, study) {
this.newuser.showmodal = !this.newuser.showmodal;
this.newuser.edituser = id;
this.newuser.study = study;
// if(this.$refs.usertable) this.$refs.usertable.realodtable();
},
confirmgohome: function() {
this.$dialog.confirm({
title: 'Cancel interview',
message: 'Do you want to cancel this interview?',
confirmText: 'go',
type: 'is-danger',
hasIcon: true,
onConfirm: () => {window.location.href = '../';}
})
},
setinterviewdname: function(studyid) {
this.$dialog.prompt({
message: `What's the interviewed name?`,
inputAttrs: {
placeholder: '',
maxlength: 20,
required: false
},
onConfirm: (value) => {
if(value.length == 0){console.log("test")};
this.interview.interviewed = value;
window.location.href = 'interviews/new?study='+studyid+'&interviewed='+value;
}
})
},
reloadusers: function (r) {
// if(this.$refs.usertable) this.$refs.usertable.realodtable();
},
confirmgohome: function () {
this.$dialog.confirm({
title: 'Cancel interview',
message: 'Do you want to cancel this interview?',
confirmText: 'go',
type: 'is-danger',
hasIcon: true,
onConfirm: () => {
window.location.href = '../';
}
})
},
setinterviewdname: function (studyid) {
this.$dialog.prompt({
message: `What's the interviewed name?`,
inputAttrs: {
placeholder: '',
maxlength: 20,
required: false
},
onConfirm: (value) => {
if (value.length == 0) {
console.log("test")
}
;
this.interview.interviewed = value;
window.location.href = 'interviews/new?study=' + studyid + '&interviewed=' + value;
}
})
},
reloadusers: function (r) {
this.users[r[1]] = r[0];
this.$forceUpdate();
this.users[r[1]] = r[0];
this.$forceUpdate();
},
showtoast: function(message){
window.app.$snackbar.open(message);
},
showtoast: function (message) {
window.app.$snackbar.open(message);
}
}
}
});
......@@ -122,11 +122,6 @@
</template>
<script>
$(document).on('keydown', function (e) {
if ((e.keyCode == 13)) {
e.preventDefault();
}
});
......@@ -208,6 +203,13 @@
}
},
mounted() {
$(document).on('keydown', function (e) {
if ((e.keyCode == 13)) {
e.preventDefault();
}
});
// Prevent pull refresh chrome
var lastTouchY = 0;
var preventPullToRefresh = false;
......
......@@ -2,19 +2,30 @@
<body>
<!-- START NAV -->
@include('layouts.nav')
<!-- END NAV -->
<div class="container" id="app">
<!-- START NAV -->
@include('layouts.nav')
<!-- END NAV -->
<div class="container" id="app">
@if(session()->has('message'))
<b-notification
:active.sync="mainNotification"
aria-close-label="Close notification"
type="is-danger"
role="alert"
>
{{session()->get('message')}}
</b-notification>
@endif
<div class="columns">
@include('admin.sidebar')
<div class="column is-9">
@yield('content')
</div>
<div class="columns">
@include('admin.sidebar')
<div class="column is-9">
@yield('content')
</div>
</div>
</div>
</body>
......
......@@ -14,7 +14,7 @@
<div class="level">
<div class="column">