workspace-settings.vue 1.86 KB
Newer Older
1
<template>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    <main>
        <section class="max-w-4xl mx-auto p-9">
            <h2 class="mb-4 text-2xl">Informations générales</h2>
            <form v-on:submit.prevent="save()">
                <oa-input id="id" label="ID" type="text" :value="workspace.id" required="true" disabled="true"></oa-input>
                <oa-input id="name" label="Nom" type="text" :value="workspace.name" required="true" @update="setName"></oa-input>
                <oa-textarea id="description" label="Description" :value="workspace.description" @update="setDescription"></oa-textarea>
                <oa-button type="submit" variant="primary" label="Enregistrer" ></oa-button>
            </form>

            <h2 class="mb-4 text-2xl">Utilisateurs</h2>
            <table class="w-full bg-white border-t-2">
                <thead class="font-bold">
                <tr class="border-b-2">
                    <th class="p-2 text-left">Id</th>
                    <th class="p-2 text-left">Nom</th>
                    <th class="p-2 text-left">Email</th>
                    <th class="p-2 text-left">Actif</th>
                </tr>
                </thead>
                <tbody>
                <tr v-for="(user, index) in authorizedUsers" class="text-left align-top border-b">
                    <td class="p-2"><a :href="'/admin/user/' + user.id + '/edit'">{{ user.id }}</a></td>
                    <td class="p-2"><a :href="'/admin/user/' + user.id + '/edit'">{{ user.firstName }} {{ user.lastName }}</a></td>
                    <td class="p-2"><a :href="'/admin/user/' + user.id + '/edit'">{{ user.email }}</a></td>
                    <td class="p-2"><a :href="'/admin/user/' + user.id + '/edit'">{{ user.activated }}</a></td>
                </tr>
                </tbody>
            </table>

        </section>
    </main>
34
35
36
</template>

<script lang="ts" src="./workspace-settings.component.ts"/>