Former-commit-id: 3424178edecdabba2c01266410b0f275a8dcf0e7 [formerly a4f1bc8f216f2f48e1a8db403002b1439feca47f] [formerly 61502858c8f279a53114fd6b11ee086156ddb9b5 [formerly 15a1a78cec]]
Former-commit-id: afc12286b0d699a098719f31c337ff922f9c91b3 [formerly d3fbb2dd1668cc3b948bb3ea2788e457d64113fa]
Former-commit-id: a2dc3ee6f228ca8a3dd6812fd6f655d4d22f0db6
pull/726/head
Henrique Dias 2017-07-25 08:18:10 +01:00
parent 9f18c67aca
commit 2864de5731
3 changed files with 42 additions and 110 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

View File

@ -1 +0,0 @@
765a2680f7b49f9e9b25bbc997c58ae198730a12