diff --git a/StandManager/Components/Layout/MainLayout.razor b/StandManager/Components/Layout/MainLayout.razor
index 1bb02ec..ac4f993 100644
--- a/StandManager/Components/Layout/MainLayout.razor
+++ b/StandManager/Components/Layout/MainLayout.razor
@@ -56,7 +56,7 @@
-
+
Utenti
@@ -72,7 +72,7 @@
-
+
Eventi
diff --git a/StandManager/Components/Pages/Home.razor b/StandManager/Components/Pages/Home.razor
index f4f7648..0d25a4a 100644
--- a/StandManager/Components/Pages/Home.razor
+++ b/StandManager/Components/Pages/Home.razor
@@ -57,138 +57,133 @@
{
@if (destinazioniList.Count() > 0)
{
-
-
-
+
+
+
+
+ Nome
+
+
+
+
+ Cognome
+
+
+
+
-
-
-
- Nome
-
-
-
-
- Cognome
-
-
-
+
+
+ E-mail
+
+
+
+
+ Telefono
+
+
+
+
+
+
+
+ Comune
+
+
+
+
+ Cap
+
+
+
+
+ Provincia
+
+
+
+
+
+
+
+ Ragione Sociale
+
+
+
+
+ Tipologia
+
+
+
+
+
+
+
+ Hai già avuto un'esperienza con DAC?
+
+
+
+
+ Ruolo
+
+
+
+
+
+
+
+ Destinazione
+
+
+
+
+ Numero di partecipanti
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- E-mail
-
-
-
-
- Telefono
-
-
-
-
-
-
-
- Comune
-
-
-
-
- Cap
-
-
-
-
- Provincia
-
-
-
-
-
-
-
- Ragione Sociale
-
-
-
-
- Tipologia
-
-
-
-
-
-
-
- Hai già avuto un'esperienza con DAC?
-
-
-
-
- Ruolo
-
-
-
-
-
-
-
- Destinazione
-
-
-
-
- Numero di partecipanti
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
+
+
+
+
+
+
+
+
}
else
{
@@ -212,7 +207,7 @@
}
-
@@ -221,6 +216,31 @@
}
+
+
@code {
[Parameter]
public Guid? invitationId { get; set; }
@@ -290,13 +310,16 @@
private async Task onIscrizioneSave()
{
- var model = new IscrizioneEvento() {
- EventoId = invito.EventoId,
- InvitoEventoId = invito.Id,
- ClienteId = invito.ClienteId,
- DestinazioneId = iscrizione.DestinazioneId };
+ var model = new IscrizioneEvento()
+ {
+ EventoId = invito.EventoId,
+ InvitoEventoId = invito.Id,
+ ClienteId = invito.ClienteId,
+ DestinazioneId = iscrizione.DestinazioneId,
+ TipologiaClienteId = iscrizione.TipologiaClienteId
+ };
model = iscrizione.Map(model);
- model.TipologiaCliente = await _managerService.TipologiaClienteService.RicercaPer(x => x.Id == iscrizione.TipologiaClienteId && x.Eliminato == false);
+ //model.TipologiaCliente = await _managerService.TipologiaClienteService.RicercaPer(x => x.Id == iscrizione.TipologiaClienteId && x.Eliminato == false);
await _managerService.IscrizioneEventoService.Salva(model);
diff --git a/StandManager/Model/IscrizioneEventoViewModel.cs b/StandManager/Model/IscrizioneEventoViewModel.cs
index 2fbf9ec..262632a 100644
--- a/StandManager/Model/IscrizioneEventoViewModel.cs
+++ b/StandManager/Model/IscrizioneEventoViewModel.cs
@@ -11,7 +11,7 @@ public class IscrizioneEventoViewModel
public ClienteViewModel Cliente { get; set; }
[Required(ErrorMessage = "La destinazione è obbligatoria")]
- public Guid DestinazioneId { get; set; }
+ public Guid? DestinazioneId { get; set; }
[Range(1, int.MaxValue, ErrorMessage = "Inserire un numero di partecipanti validi")]
public int Partecipanti { get; set; }
@@ -38,7 +38,7 @@ public class IscrizioneEventoViewModel
[Required(ErrorMessage = "Il campo è obbigatorio")]
public string EsperienzaConDAC { get; set; }
[Required(ErrorMessage = "La tipologia è obbigatoria")]
- public Guid TipologiaClienteId { get; set; }
+ public Guid? TipologiaClienteId { get; set; }
public RuoloTipo Ruolo { get; set; }
[Required(ErrorMessage = "Il ruolo è obbigatorio")]
public int? RuoloInt { get; set; }
diff --git a/StandManager/wwwroot/app.css b/StandManager/wwwroot/app.css
index 60ae6a2..109cc69 100644
--- a/StandManager/wwwroot/app.css
+++ b/StandManager/wwwroot/app.css
@@ -6,11 +6,15 @@ a, .btn-link {
color: #006bb7;
}
-.btn-primary {
+:root {
+ --tblr-primary: #D22426;
+}
+
+/*.btn-primary {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
-}
+}*/
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
@@ -49,3 +53,9 @@ h1:focus {
.darker-border-checkbox.form-check-input {
border-color: #929292;
}
+
+.footer-icon {
+ font-size: 1rem;
+ width: 1em !important;
+ display: inline-block;
+}
\ No newline at end of file