Add language checkboxes (Spanish/English) to signup form
This commit is contained in:
+11
-1
@@ -538,6 +538,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div style="grid-column:1/-1;">
|
||||||
|
<label class="label" style="margin-bottom:8px;">Idiomas</label>
|
||||||
|
<div style="display:flex;gap:24px;">
|
||||||
|
<label style="display:flex;align-items:center;gap:8px;cursor:pointer;"><input type="checkbox" name="languages" value="spanish" checked style="width:16px;height:16px;accent-color:#4338ca;"> <span style="font-size:0.875rem;color:#334155;">Español</span></label>
|
||||||
|
<label style="display:flex;align-items:center;gap:8px;cursor:pointer;"><input type="checkbox" name="languages" value="english" style="width:16px;height:16px;accent-color:#4338ca;"> <span style="font-size:0.875rem;color:#334155;">Inglés</span></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div style="grid-column:1/-1;">
|
<div style="grid-column:1/-1;">
|
||||||
<label class="label">Certificado Odoo</label>
|
<label class="label">Certificado Odoo</label>
|
||||||
<select id="certified" name="certified" class="form-field">
|
<select id="certified" name="certified" class="form-field">
|
||||||
@@ -596,6 +604,7 @@
|
|||||||
// Collect checkboxes
|
// Collect checkboxes
|
||||||
const skills = Array.from(document.querySelectorAll('input[name="skills"]:checked')).map(cb => cb.value);
|
const skills = Array.from(document.querySelectorAll('input[name="skills"]:checked')).map(cb => cb.value);
|
||||||
const modules = Array.from(document.querySelectorAll('input[name="modules"]:checked')).map(cb => cb.value);
|
const modules = Array.from(document.querySelectorAll('input[name="modules"]:checked')).map(cb => cb.value);
|
||||||
|
const languages = Array.from(document.querySelectorAll('input[name="languages"]:checked')).map(cb => cb.value);
|
||||||
|
|
||||||
const formData = {
|
const formData = {
|
||||||
image: document.getElementById('image').value,
|
image: document.getElementById('image').value,
|
||||||
@@ -609,7 +618,8 @@
|
|||||||
summary: document.getElementById('summary').value,
|
summary: document.getElementById('summary').value,
|
||||||
certified: document.getElementById('certified').value,
|
certified: document.getElementById('certified').value,
|
||||||
skills: skills,
|
skills: skills,
|
||||||
modules: modules
|
modules: modules,
|
||||||
|
languages: languages
|
||||||
};
|
};
|
||||||
|
|
||||||
const btn = this.querySelector('button[type="submit"]');
|
const btn = this.querySelector('button[type="submit"]');
|
||||||
|
|||||||
Reference in New Issue
Block a user