Add language checkboxes (Spanish/English) to signup form
This commit is contained in:
+11
-1
@@ -538,6 +538,14 @@
|
||||
</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;">
|
||||
<label class="label">Certificado Odoo</label>
|
||||
<select id="certified" name="certified" class="form-field">
|
||||
@@ -596,6 +604,7 @@
|
||||
// Collect checkboxes
|
||||
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 languages = Array.from(document.querySelectorAll('input[name="languages"]:checked')).map(cb => cb.value);
|
||||
|
||||
const formData = {
|
||||
image: document.getElementById('image').value,
|
||||
@@ -609,7 +618,8 @@
|
||||
summary: document.getElementById('summary').value,
|
||||
certified: document.getElementById('certified').value,
|
||||
skills: skills,
|
||||
modules: modules
|
||||
modules: modules,
|
||||
languages: languages
|
||||
};
|
||||
|
||||
const btn = this.querySelector('button[type="submit"]');
|
||||
|
||||
Reference in New Issue
Block a user