added admin (group, user) interface components

This commit is contained in:
Tobias Kurze
2019-04-10 09:20:13 +02:00
parent a15e0c2d50
commit c043918fb8
13 changed files with 282 additions and 13 deletions

59
src/components/Group.vue Normal file
View File

@@ -0,0 +1,59 @@
<!-- components/Group.vue -->
<template>
<div>
<section class="hero is-primary">
<div class="hero-body">
<div class="container has-text-centered">
<h2 class="title">Groups</h2>
<p class="subtitle error-msg">{{ errorMsg }}</p>
<h3 class="title">Add Group</h3>
<input v-model="group.name" placeholder="Group name">
<p>Name is: {{ group.name }}</p>
<span>Multiline message is:</span>
<p style="white-space: pre-line;">{{ group.description }}</p>
<br>
<textarea v-model="group.message" placeholder="Description for group"></textarea>
<button v-on:click="create_group">{{$t('create_group')}}</button>
</div>
</div>
</section>
</div>
</template>
<script>
import { EventBus } from '@/utils'
import {getRemainingJwtValiditySeconds} from "../utils";
export default {
data () {
return {
email: '',
errorMsg: '',
group: {},
};
},
methods: {
create_group () {
},
},
mounted () {
},
beforeDestroy () {
},
computed: {
},
}
</script>
<style lang="scss">
.error-msg {
color: red;
font-weight: bold;
}
</style>