Merge branch 'master' of http://git2.aycode.com/Adam/TourIAm
This commit is contained in:
commit
97c6cb3009
|
|
@ -44,15 +44,17 @@
|
||||||
SearchMode="@ListSearchMode.AutoSearch"
|
SearchMode="@ListSearchMode.AutoSearch"
|
||||||
SearchFilterCondition="@ListSearchFilterCondition.Contains"
|
SearchFilterCondition="@ListSearchFilterCondition.Contains"
|
||||||
ListRenderMode="ListRenderMode.Virtual"
|
ListRenderMode="ListRenderMode.Virtual"
|
||||||
TextFieldName="Name"></DxComboBox>
|
TextFieldName="Name"
|
||||||
|
CssClass="form-field">
|
||||||
|
</DxComboBox>
|
||||||
|
|
||||||
<div class="row py-3">
|
<div class="row py-3">
|
||||||
|
|
||||||
<DynamicEditForm Data="Data" isEditing="true" IgnoreReflection="TransferIgnorList" OnSubmit="SubmitForm"></DynamicEditForm>
|
<DynamicEditForm Data="Data" isEditing="true" IgnoreReflection="TransferIgnorList" OnSubmit="SubmitForm"></DynamicEditForm>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row py-3">
|
<div class="row py-3">
|
||||||
|
|
||||||
<DxButton RenderStyle="ButtonRenderStyle.Primary" Click="@Reload" Visible="@isReloadVisible">Reload</DxButton>
|
<DxButton RenderStyle="ButtonRenderStyle.Primary" Click="@Reload" Visible="@isReloadVisible">Reload</DxButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -134,11 +136,11 @@
|
||||||
registration.ReferralId = productOwner[0].AffiliateId;
|
registration.ReferralId = productOwner[0].AffiliateId;
|
||||||
|
|
||||||
var createResult = await UserDataService.CreateGuestUser(registration);
|
var createResult = await UserDataService.CreateGuestUser(registration);
|
||||||
if(createResult.isSuccess)
|
if (createResult.isSuccess)
|
||||||
{
|
{
|
||||||
if (createResult.user != null)
|
if (createResult.user != null)
|
||||||
{
|
{
|
||||||
valami.UserId = createResult.user.Id;
|
valami.UserId = createResult.user.Id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_logger.Info("New user created added");
|
_logger.Info("New user created added");
|
||||||
|
|
|
||||||
|
|
@ -1,44 +1,16 @@
|
||||||
<div class="card-body card-admin-body py-2 px-4">
|
@page "/user/messages/{userId:guid}"
|
||||||
|
|
||||||
|
<div class="card-body card-admin-body py-2 px-4">
|
||||||
<div class="d-flex flex-column mb-4 pb-2">
|
<div class="d-flex flex-column mb-4 pb-2">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="media text-muted pt-3">
|
|
||||||
<!--img src="https://bootdey.com/img/Content/avatar/avatar7.png" alt="" class="mr-2 rounded" width="32" height="32"-->
|
|
||||||
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
|
|
||||||
<strong class="d-block text-gray-dark">username</strong>
|
|
||||||
Donec id elit non mi porta gravida at eget metus...
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="media text-muted pt-3">
|
|
||||||
|
|
||||||
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
|
|
||||||
<strong class="d-block text-gray-dark">username</strong>
|
|
||||||
Donec id elit non mi porta gravida at eget metus...
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="media text-muted pt-3">
|
|
||||||
|
|
||||||
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
|
|
||||||
<strong class="d-block text-gray-dark">username</strong>
|
|
||||||
Donec id elit non mi porta gravida at eget metus...
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="media text-muted pt-3">
|
|
||||||
|
|
||||||
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
|
|
||||||
<strong class="d-block text-gray-dark">username</strong>
|
|
||||||
Donec id elit non mi porta gravida at eget metus...
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
[Parameter] public Guid? userId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,11 @@
|
||||||
</Items>
|
</Items>
|
||||||
</DxMenuItem-->
|
</DxMenuItem-->
|
||||||
@* <DxMenuItem NavigateUrl="user/messages" Text="Messages" IconCssClass="fa-solid fa-envelope" /> *@
|
@* <DxMenuItem NavigateUrl="user/messages" Text="Messages" IconCssClass="fa-solid fa-envelope" /> *@
|
||||||
<DxMenuItem NavigateUrl="user/messages" IconCssClass="fa-solid fa-envelope" />
|
@{
|
||||||
|
string url3 = $"user/messages/{userId}";
|
||||||
|
<DxMenuItem NavigateUrl="@url3" IconCssClass="fa-solid fa-envelope" />
|
||||||
|
}
|
||||||
|
|
||||||
<DxMenuItem CssClass="notoggle" Position="ItemPosition.End">
|
<DxMenuItem CssClass="notoggle" Position="ItemPosition.End">
|
||||||
<TextTemplate>
|
<TextTemplate>
|
||||||
<div class="fa-solid fa-user" />
|
<div class="fa-solid fa-user" />
|
||||||
|
|
@ -120,6 +124,7 @@
|
||||||
private bool userHasHotels = false;
|
private bool userHasHotels = false;
|
||||||
private string? userEmail;
|
private string? userEmail;
|
||||||
private string? userFullName;
|
private string? userFullName;
|
||||||
|
private Guid? userId;
|
||||||
|
|
||||||
private Guid driverPermissionId;
|
private Guid driverPermissionId;
|
||||||
|
|
||||||
|
|
@ -151,6 +156,7 @@
|
||||||
}
|
}
|
||||||
if (SessionService.User != null)
|
if (SessionService.User != null)
|
||||||
{
|
{
|
||||||
|
userId = SessionService.User.UserId;
|
||||||
driverPermissionId = SessionService.DriverPersmissionId;
|
driverPermissionId = SessionService.DriverPersmissionId;
|
||||||
userEmail = SessionService.User.Email;
|
userEmail = SessionService.User.Email;
|
||||||
if (SessionService.User.UserModelDto.ProfileDto.FullName != null)
|
if (SessionService.User.UserModelDto.ProfileDto.FullName != null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue