edit diags-files and update-diag
This commit is contained in:
parent
ddcd8b64af
commit
0bb7487f7c
|
@ -87,7 +87,7 @@ x-data="{
|
|||
x-model="fields.type" @blur="validateField('type')"
|
||||
:class="formValidation.fields.type.valid == false ? 'border-co-red border-2' : 'border-gray-300'">
|
||||
<option value="" selected>Sélectionner un type</option>
|
||||
{{range .ViewState.events_file_types}}
|
||||
{{range .ViewState.diags_files_types}}
|
||||
<option value="{{.}}">{{index $.ViewState.file_types_map .}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
|
|
|
@ -9,14 +9,10 @@
|
|||
fields: {
|
||||
name: '{{.ViewState.diag.Name}}',
|
||||
namespace: '{{.ViewState.diag.Namespace}}',
|
||||
json_schema: '{{.ViewState.diag.Json_schema}}',
|
||||
ui_schema: '{{.ViewState.diag.Ui_schema}}',
|
||||
},
|
||||
rules: {
|
||||
name: ['required'],
|
||||
namespace: ['required'],
|
||||
json_schema: ['required'],
|
||||
ui_schema: ['required']
|
||||
namespace: ['required']
|
||||
},
|
||||
formValidation: {
|
||||
valid: false,
|
||||
|
@ -65,7 +61,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="namespace" value="{{.ViewState.diag.Namespace}}" />
|
||||
<div class="bg-white shadow px-4 py-5 sm:rounded-lg sm:p-6 mt-6">
|
||||
<!-- <div class="bg-white shadow px-4 py-5 sm:rounded-lg sm:p-6 mt-6">
|
||||
<div class="md:grid md:grid-cols-3 md:gap-6">
|
||||
<div class="md:col-span-1">
|
||||
<h3 class="text-lg font-medium leading-6 text-gray-900">Schéma JSON</h3>
|
||||
|
@ -102,7 +98,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="flex justify-end">
|
||||
<p x-show="! isFormValid" class="px-4 py-2 text-sm text-co-red">Certains champs de sont pas valides.</p>
|
||||
<a href="/app/diags/{{.ViewState.diag.ID}}">
|
||||
|
|
Loading…
Reference in New Issue