| | 1 | | @using Microsoft.EntityFrameworkCore |
| | 2 | | @using MUNity.BlazorServer.Components.Conference.Application |
| | 3 | |
|
| | 4 | | @layout MUNity.BlazorServer.Shared.ConferenceFrontEndLayout |
| | 5 | | @page "/web/conference/{ConferenceId}/register" |
| | 6 | |
|
| | 7 | | @inject MUNity.Database.Context.MunityContext context |
| | 8 | | @inject NavigationManager navManager |
| | 9 | |
|
| | 10 | | <AuthorizeView> |
| | 11 | | <Authorized> |
| | 12 | | <ConferenceApplicationComponent ConferenceId="@ConferenceId" /> |
| | 13 | | </Authorized> |
| | 14 | | <NotAuthorized> |
| | 15 | | <div class="error"> |
| | 16 | | @*<div class="error-code">Nicht angemeldet</div>*@ |
| | 17 | | <div class="error-content"> |
| 0 | 18 | | <div class="error-message">Hallo, schön dass du bei @conferenceShort dabei sein willst.</div> |
| | 19 | | <div class="error-desc mb-4"> |
| | 20 | | Für die Anmeldung bei der Konferenz benötigst du ein MUNity-Konto. |
| | 21 | | Melde dich bitte an oder erstelle dir ein neues Konto. |
| | 22 | | </div> |
| | 23 | | <div> |
| | 24 | | <a href="/Identity/Account/Login" class="btn btn-success px-3">Anmelden</a> |
| | 25 | | <a href="/Identity/Account/Register" class="btn btn-secondary px-3">Konto erstellen</a> |
| | 26 | | </div> |
| | 27 | | </div> |
| | 28 | | </div> |
| | 29 | | </NotAuthorized> |
| | 30 | | </AuthorizeView> |
| | 31 | |
|
| | 32 | | <style> |
| | 33 | | @@media only screen and (min-width: 1200px) { |
| | 34 | | .padding-on-lg { |
| | 35 | | padding-left: 150px; |
| | 36 | | padding-right: 150px; |
| | 37 | | } |
| | 38 | | } |
| | 39 | | </style> |
| | 40 | |
|
| | 41 | | @code { |
| 0 | 42 | | [Parameter] public string ConferenceId { get; set; } |
| | 43 | |
|
| | 44 | | private string conferenceShort; |
| | 45 | |
|
| | 46 | | protected override void OnInitialized() |
| 0 | 47 | | { |
| 0 | 48 | | base.OnInitialized(); |
| 0 | 49 | | this.conferenceShort = context.Conferences.Where(n => n.ConferenceId == this.ConferenceId) |
| 0 | 50 | | .Select(n => n.ConferenceShort) |
| 0 | 51 | | .FirstOrDefault(); |
| 0 | 52 | | } |
| | 53 | | } |