Fixed issue where Page Url expansion script for 1.0.4 was not implemented properly - it was not tagged as an embedded resource.
This commit is contained in:
		| @ -1,4 +1,4 @@ | ||||
| @namespace Oqtane.Modules.Admin.UserProfile | ||||
| @namespace Oqtane.Modules.Admin.UserProfile | ||||
| @inherits ModuleBase | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IUserService UserService | ||||
| @ -95,13 +95,32 @@ else | ||||
|                             <Label For="@p.Name" HelpText="@p.Description">@p.Title</Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
|                             @if (p.IsRequired) | ||||
|                             @if (!string.IsNullOrEmpty(p.Options)) | ||||
|                             { | ||||
|                                 <input id="@p.Name" class="form-control" maxlength="@p.MaxLength" value="@GetProfileValue(p.Name, p.DefaultValue)" required @onchange="@(e => ProfileChanged(e, p.Name))" /> | ||||
|                                 <select id="@p.Name" class="form-control" @onchange="@(e => ProfileChanged(e, p.Name))"> | ||||
|                                     @foreach (var option in p.Options.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries)) | ||||
|                                     { | ||||
|                                         @if(GetProfileValue(p.Name, "") == option || (GetProfileValue(p.Name, "") == "" && p.DefaultValue == option)) | ||||
|                                         { | ||||
|                                             <option value="@option" selected>@option</option> | ||||
|                                         } | ||||
|                                         else | ||||
|                                         { | ||||
|                                             <option value="@option">@option</option> | ||||
|                                         } | ||||
|                                     } | ||||
|                                 </select> | ||||
|                             } | ||||
|                             else | ||||
|                             { | ||||
|                                 <input id="@p.Name" class="form-control" maxlength="@p.MaxLength" value="@GetProfileValue(p.Name, p.DefaultValue)" @onchange="@(e => ProfileChanged(e, p.Name))" /> | ||||
|                                 @if (p.IsRequired) | ||||
|                                 { | ||||
|                                     <input id="@p.Name" class="form-control" maxlength="@p.MaxLength" value="@GetProfileValue(p.Name, p.DefaultValue)" required @onchange="@(e => ProfileChanged(e, p.Name))" /> | ||||
|                                 } | ||||
|                                 else | ||||
|                                 { | ||||
|                                     <input id="@p.Name" class="form-control" maxlength="@p.MaxLength" value="@GetProfileValue(p.Name, p.DefaultValue)" @onchange="@(e => ProfileChanged(e, p.Name))" /> | ||||
|                                 } | ||||
|                             } | ||||
|                         </td> | ||||
|                     </tr> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker