add module support & groups

This commit is contained in:
soukainna 2022-12-19 15:27:50 +01:00
parent 9641f8e700
commit 4af0ffd3d6
4 changed files with 51 additions and 7 deletions

View File

@ -122,6 +122,28 @@
</p>
</div>
</div>
<div class="flex items-start">
<div class="flex items-center h-5">
<input id="support" name="modules.support" type="checkbox"
class="focus:ring-co-blue h-4 w-4 text-co-blue border-gray-300 rounded">
</div>
<div class="ml-3 text-sm">
<label for="modules.support" class="font-medium text-gray-700">Support</label>
<p class="text-gray-500">Contacter notre support en cas de problème.
</p>
</div>
</div>
<div class="flex items-start">
<div class="flex items-center h-5">
<input id="group_module" name="modules.group_module" type="checkbox"
class="focus:ring-co-blue h-4 w-4 text-co-blue border-gray-300 rounded">
</div>
<div class="ml-3 text-sm">
<label for="modules.group_module" class="font-medium text-gray-700">Groupes/Communautés</label>
<p class="text-gray-500">Créer des groupes pour ses bénéficiaires.
</p>
</div>
</div>
</div>
</fieldset>
</div>

View File

@ -119,6 +119,28 @@
</p>
</div>
</div>
<div class="flex items-start">
<div class="flex items-center h-5">
<input id="support" name="modules.support" type="checkbox" disabled {{if .ViewState.group.Data.modules.support}} checked{{end}}
class="focus:ring-co-blue h-4 w-4 text-co-blue border-gray-300 rounded">
</div>
<div class="ml-3 text-sm">
<label for="modules.support" class="font-medium text-gray-700">Support</label>
<p class="text-gray-500">Contacter notre support en cas de problème.
</p>
</div>
</div>
<div class="flex items-start">
<div class="flex items-center h-5">
<input id="group_module" name="modules.group_module" type="checkbox" disabled {{if .ViewState.group.Data.modules.group_module}} checked{{end}}
class="focus:ring-co-blue h-4 w-4 text-co-blue border-gray-300 rounded">
</div>
<div class="ml-3 text-sm">
<label for="modules.group_module" class="font-medium text-gray-700">Groupes/Communautés</label>
<p class="text-gray-500">Créer des groupes pour ses bénéficiaires.
</p>
</div>
</div>
<div class="flex items-start">
<div class="flex items-center h-5">
<input id="events" name="modules.events" type="checkbox" disabled {{if .ViewState.group.Data.modules.administration}} checked{{end}}

View File

@ -30,7 +30,7 @@
<div class="px-4 py-5 sm:px-6">
<h2 id="admins-information-title" class="text-lg leading-6 font-medium text-gray-900">
Informations personnelles</h2>
<p class="mt-1 max-w-2xl text-sm text-gray-500">Informations générales sur le Conseiller.</p>
<p class="mt-1 max-w-2xl text-sm text-gray-500">Informations générales sur le conseiller.</p>
</div>
<div class="border-t border-gray-200 px-4 py-5 sm:px-6">

View File

@ -56,25 +56,25 @@
<div class="grid grid-cols-6 gap-6">
<div class="col-span-6 sm:col-span-3">
<label for="first_name" class="block text-sm font-medium text-gray-700">Prénom</label>
<input type="text" name="first_name" id="first_name" autocomplete="given-name"
<input type="text" value="{{.ViewState.Data.first_name}}" name="first_name" id="first_name" autocomplete="given-name"
class="mt-1 focus:ring-co-blue focus:border-co-blue block w-full shadow-sm sm:text-sm rounded-2xl"
x-model="fields.first_name" @blur="validateField('first_name')"
@blur="validateField('first_name')"
:class="formValidation.fields.first_name.valid == false ? 'border-co-red border-2' : 'border-gray-300'">
</div>
<div class="col-span-6 sm:col-span-3">
<label for="last_name" class="block text-sm font-medium text-gray-700">Nom</label>
<input type="text" name="last_name" id="last_name" autocomplete="family-name"
<input type="text" name="last_name" id="last_name" value="{{.ViewState.Data.last_name}}" autocomplete="family-name"
class="mt-1 focus:ring-co-blue focus:border-co-blue block w-full shadow-sm sm:text-sm rounded-2xl"
x-model="fields.last_name" @blur="validateField('last_name')"
@blur="validateField('last_name')"
:class="formValidation.fields.last_name.valid == false ? 'border-co-red border-2' : 'border-gray-300'">
</div>
<div class="col-span-6 sm:col-span-3">
<label for="email" class="block text-sm font-medium text-gray-700">Email</label>
<input type="text" name="email" id="email" autocomplete="email"
<input type="text" name="email" id="email" autocomplete="email" value="{{.ViewState.Data.email}}"
class="mt-1 focus:ring-co-blue focus:border-co-blue block w-full shadow-sm sm:text-sm rounded-2xl"
x-model="fields.email" @blur="validateField('email')"
@blur="validateField('email')"
:class="formValidation.fields.email.valid == false ? 'border-co-red border-2' : 'border-gray-300'">
</div>