-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
320b0e9
commit 7163a5d
Showing
4 changed files
with
90 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
@inject Services.UserService UserService | ||
@inject NavigationManager NavigationManager | ||
@page "/aff/{affiliateUid}" | ||
|
||
<PageTitle>PLACEHOLDER TITLE | Cirsa</PageTitle> | ||
|
||
|
||
<div class="container py-4 jumbotron-a"> | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
|
||
<div class="col-12 col-md-6"> | ||
|
||
<!-- Description still loading --> | ||
@if(customStyle == null) | ||
{ | ||
<h1>Loading...</h1> | ||
} | ||
//Loaded description | ||
else | ||
{ | ||
<h1 class="display-5 fw-bold"> @customStyle.GetTitle() </h1> | ||
<p> | ||
Inicia sesión como afiliado para acceder al panel administrativo. | ||
</p> | ||
} | ||
|
||
</div> | ||
|
||
<div class="col-12 col-md-6"> | ||
|
||
<form class="user-form"> | ||
|
||
<div class="mb-3"> | ||
<label for="exampleInputEmail1" class="form-label">Email</label> | ||
<input @bind-value="clientMail" @bind-value:event="oninput" type="email" class="form-control" id="emailInput" required> | ||
</div> | ||
<button type="submit" @onclick="RegisterClient" class="btn button-gold-a">Continuar</button> | ||
|
||
</form> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
@code { | ||
[Parameter] | ||
public string affiliateUid { get; set; } | ||
|
||
private AffiliateStyle? customStyle; | ||
private String clientMail = ""; | ||
|
||
|
||
protected override async Task OnInitializedAsync() | ||
Check warning on line 59 in Pages/CustomAffiliatePage.razor GitHub Actions / deploy-to-github-pages
|
||
{ | ||
SetCustomStyle(); | ||
} | ||
|
||
private void SetCustomStyle() | ||
{ | ||
customStyle = UserService.GetAffiliateStyle(affiliateUid); | ||
} | ||
|
||
private void RegisterClient() | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters