company registration

This commit is contained in:
Sofia Reháková
2025-10-20 17:47:27 +02:00
parent ba8ea224a8
commit 1abb470a1d
4 changed files with 133 additions and 30 deletions

View File

@@ -3,7 +3,7 @@
<v-app-bar color="rgb(46, 125, 50)" style="color: white" :elevation="2">
<v-btn variant="text" dense to="/">Domov</v-btn>
<v-btn variant="text" dense to="/register">Register</v-btn>
<v-btn variant="text" dense>Login</v-btn>
<v-btn variant="text" dense to="/login">Login</v-btn>
<v-spacer></v-spacer>
</v-app-bar>

View File

@@ -0,0 +1,23 @@
<template>
<v-row class="pc" align="stretch" justify="start">
<PageCard
title="Registrácia študenta"
description="Zaregistruj sa a začni svoju odbornú prax."
link="/registerStudent"
icon="mdi mdi-account"
/>
<PageCard
title="Registrácia firmy"
description="Staň sa partnerskou firmou a pomôž študentom získať prax vo svojom odbore."
link="/registerCompany"
icon="mdi mdi-office-building"
/>
</v-row>
</template>
<style scoped>
.pc {
margin: 0 0 24px 0;
}
</style>

View File

@@ -1,39 +1,119 @@
<template>
<v-container fluid>
<v-card id="footer-card">
<h1>O aplikácii</h1>
<div class="page-container form-wrap">
<h4 class="page-title">Registrácia firmy</h4>
<br />
<v-form v-model="isValid" @submit.prevent="onSubmit">
<v-text-field
v-model="form.companyName"
:rules="[rules.required]"
label="Názov firmy:"
variant="outlined"
density="compact"
/>
<v-text-field
v-model="form.companyAddress"
:rules="[rules.required]"
label="Adresa:"
variant="outlined"
density="compact"
/>
<p>Táto aplikácia slúži na zaznamenávanie a správu odbornej praxe študentov.</p>
<p>Systém spravuje Fakulta prírodných vied a informatiky, UKF v Nitre.</p>
<h4 class="section-heading mt-4">Kontaktná osoba</h4>
<br />
<v-text-field
v-model="form.contactName"
:rules="[rules.required]"
label="Meno:"
variant="outlined"
density="compact"
/>
<v-text-field
v-model="form.contactEmail"
:rules="[rules.required, rules.email]"
label="Email:"
variant="outlined"
density="compact"
/>
<v-text-field
v-model="form.contactPhone"
:rules="[rules.phone]"
label="Telefón:"
variant="outlined"
density="compact"
/>
<p>Autori aplikácie:</p>
<ul id="authors-list">
<li>Bc. Sofia Reháková</li>
<li>Bc. Veronika Fehérvíziová</li>
<li>Bc. Fábián Varga</li>
<li>Bc. Dávid Kecskés</li>
<li>Bc. Andrej Kraslan</li>
</ul>
</v-card>
</v-container>
<v-checkbox
v-model="form.consent"
:rules="[rules.mustAgree]"
label="Súhlasím s podmienkami spracúvania osobných údajov"
density="compact"
/>
<v-btn
type="submit"
color="success"
size="large"
block
:disabled="!isValid || !form.consent"
>
Registrovať
</v-btn>
</v-form>
</div>
</template>
<script setup>
import { reactive, ref } from 'vue'
const isValid = ref(false)
const form = reactive({
companyName: '',
companyAddress: '',
contactName: '',
contactEmail: '',
contactPhone: '',
consent: false,
})
const rules = {
required: v => (!!v && String(v).trim().length > 0) || 'Povinné pole',
email: v => /.+@.+\..+/.test(v) || 'Zadajte platný email',
phone: v => (!v || /^[0-9 +()-]{6,}$/.test(v)) || 'Zadajte platné telefónne číslo',
mustAgree: v => v === true || 'Je potrebné súhlasiť',
}
function onSubmit() {
}
</script>
<style scoped>
#footer-card {
padding-left: 10px;
padding-bottom: 10px;
.page-container {
max-width: 1120px;
margin: 0 auto;
padding-left: 24px;
padding-right: 24px;
}
.form-wrap {
max-width: 640px;
}
.page-title {
font-size: 24px;
line-height: 1.2;
font-weight: 700;
margin: 24px 0 16px;
color: #1f1f1f;
}
.section-heading {
font-size: 18px;
font-weight: 700;
margin: 8px 0 8px;
color: #1f1f1f;
}
#authors-list {
margin-left: 20px;
}
#authors-list li {
display: list-item;
list-style-type: disc;
}
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mt-4 { margin-top: 16px; }
</style>

View File

@@ -118,7 +118,7 @@ const rules = {
}
function onSubmit() {
console.log('FORM SUBMIT', { ...form })
}
</script>