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

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