This commit is contained in:
Henrique Dias 2017-07-25 08:18:10 +01:00
parent 2976592648
commit 15a1a78cec
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
3 changed files with 42 additions and 2427 deletions

View File

@ -1,4 +1,5 @@
<template>
<div>
<form @submit="save" class="dashboard">
<h1 v-if="id === 0">New User</h1>
<h1 v-else>User {{ username }}</h1>
@ -49,6 +50,12 @@
<textarea name="css"></textarea>
<p>
<button v-if="id !== 0" @click.prevent="deletePrompt" type="button" class="delete">Delete</button>
<input type="submit" value="Save">
</p>
</form>
<div v-if="$store.state.show === 'deleteUser'" class="prompt">
<h3>Delete User</h3>
<p>Are you sure you want to delete this user?</p>
@ -57,12 +64,7 @@
<button @click="closeHovers" class="cancel">Cancel</button>
</div>
</div>
<p>
<button v-if="id !== 0" @click.prevent="deletePrompt" type="button" class="delete">Delete</button>
<input type="submit" value="Save">
</p>
</form>
</div>
</template>
<script>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long