Skip to content

Commit cff7e85

Browse files
adding phone, org and org website to new job page
1 parent d4e03b5 commit cff7e85

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/pages/nuevo-empleo.astro

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ for (const key in categories) {
8686
</div>
8787

8888
<div class="mb-6">
89-
<label for="description" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Descripción</label>
89+
<label for="description" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Descripción *</label>
9090
<textarea
9191
id="description"
9292
rows="6"
@@ -116,15 +116,20 @@ for (const key in categories) {
116116
<div class="grid gap-6 mb-6 md:grid-cols-1">
117117
<TextInput id="location" label="Ubicación" maxlength="250" />
118118
</div>
119+
<div class="grid gap-6 mb-6 md:grid-cols-2">
120+
<TextInput id="organization" label="Empresa" maxlength="250" type="email" />
121+
<TextInput id="organizationWebsite" label="Sitio web de la empresa" maxlength="300" type="url" />
122+
</div>
119123

120124
<div class="flex justify-between">
121125
<h1 class="text-xl font-bold">Datos de Contacto</h1>
122126
</div>
123127
<hr class="my-4" />
124-
<div class="grid gap-6 mb-6 md:grid-cols-3">
128+
<div class="grid gap-6 mb-6 md:grid-cols-2">
125129
<TextInput id="applyEmail" label="Correo Electronico" maxlength="250" type="email" />
126130
<TextInput id="applyUrl" label="URL para aplicar" maxlength="250" type="url" />
127-
<UsernameInput id="applyTelegramUser" label="Usuario de Telegram" maxlength="250" />
131+
<UsernameInput id="applyTelegramUser" label="Nombre de usuario de Telegram" maxlength="250" />
132+
<TextInput id="applyPhone" label="Número Telefónico" maxlength="250" type="tel" />
128133
</div>
129134
</div>
130135

@@ -200,6 +205,9 @@ for (const key in categories) {
200205
applyEmail: getElem("applyEmail").value,
201206
applyUrl: getElem("applyUrl").value,
202207
applyTelegramUser: getElem("applyTelegramUser").value,
208+
applyPhone: getElem("applyPhone").value,
209+
organization: getElem("organization").value,
210+
organizationWebsite: getElem("organizationWebsite").value,
203211
slug: getElem("title").value.replace(/[^a-zA-Z0-9]+/g, "-"),
204212
};
205213

0 commit comments

Comments
 (0)