upgrade to Boostrap 5
This commit is contained in:
		| @ -38,7 +38,7 @@ | ||||
|                         <Label For="folder" HelpText="Select the folder to save the file in" ResourceKey="Folder">Folder: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="folder" class="form-control" @bind="@_folderId"> | ||||
|                         <select id="folder" class="form-select" @bind="@_folderId"> | ||||
|                             <option value="-1"><@Localizer["Folder.Select"]></option> | ||||
|                             @foreach (Folder folder in _folders) | ||||
|                             { | ||||
|  | ||||
| @ -10,7 +10,7 @@ | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label for="name" HelpText="The name of the file" ResourceKey="Name">Name: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
| @ -22,7 +22,7 @@ | ||||
|                 <Label For="parent" HelpText="The folder where the file is located" ResourceKey="Folder">Folder: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="parent" class="form-control" @bind="@_folderId"> | ||||
|                 <select id="parent" class="form-select" @bind="@_folderId"> | ||||
|                     @foreach (Folder folder in _folders) | ||||
|                     { | ||||
|                         <option value="@(folder.FolderId)">@(new string('-', folder.Level * 2))@(folder.Name)</option> | ||||
|  | ||||
| @ -10,11 +10,11 @@ | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="parent" HelpText="Select the parent folder" ResourceKey="Parent">Parent: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="parent" class="form-control" @bind="@_parentId"> | ||||
|                 <select id="parent" class="form-select" @bind="@_parentId"> | ||||
|                     @if (PageState.QueryString.ContainsKey("id")) | ||||
|                     { | ||||
|                         <option value="-1"><@Localizer["NoParent"]></option> | ||||
| @ -45,7 +45,7 @@ | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     <select id="type" class="form-control" @bind="@_type"> | ||||
|                     <select id="type" class="form-select" @bind="@_type"> | ||||
|                         <option value="@FolderTypes.Private">@Localizer[FolderTypes.Private]</option> | ||||
|                         <option value="@FolderTypes.Public">@Localizer[FolderTypes.Public]</option> | ||||
|                     </select> | ||||
|  | ||||
| @ -14,7 +14,7 @@ | ||||
|                 <label class="control-label">@Localizer["Folder"] </label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select class="form-control" @onchange="(e => FolderChanged(e))"> | ||||
|                 <select class="form-select" @onchange="(e => FolderChanged(e))"> | ||||
|                     @foreach (Folder folder in _folders) | ||||
|                     { | ||||
|                         <option value="@(folder.FolderId)">@(new string('-', folder.Level * 2))@(folder.Name)</option> | ||||
|  | ||||
| @ -7,7 +7,7 @@ | ||||
|  | ||||
| <table class="table table-borderless"> | ||||
|     <tr> | ||||
|         <td> | ||||
|         <td width="30%"> | ||||
|             <Label For="name" HelpText="Enter the job name" ResourceKey="Name">Name: </Label> | ||||
|         </td> | ||||
|         <td> | ||||
| @ -27,7 +27,7 @@ | ||||
|             <Label For="enabled" HelpText="Select whether you want the job enabled or not" ResourceKey="Enabled">Enabled? </Label> | ||||
|         </td> | ||||
|         <td> | ||||
|             <select id="enabled" class="form-control" @bind="@_isEnabled"> | ||||
|             <select id="enabled" class="form-select" @bind="@_isEnabled"> | ||||
|                 <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                 <option value="False">@SharedLocalizer["No"]</option> | ||||
|             </select> | ||||
| @ -39,7 +39,7 @@ | ||||
|         </td> | ||||
|         <td> | ||||
|             <input id="runs-every" class="form-control" @bind="@_interval" /> | ||||
|             <select id="runs-every" class="form-control" @bind="@_frequency"> | ||||
|             <select id="runs-every" class="form-select" @bind="@_frequency"> | ||||
|                 <option value="m">@Localizer["Minute(s)"]</option> | ||||
|                 <option value="H">@Localizer["Hour(s)"]</option> | ||||
|                 <option value="d">@Localizer["Day(s)"]</option> | ||||
| @ -82,6 +82,9 @@ | ||||
| </table> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveJob">@SharedLocalizer["Save"]</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@SharedLocalizer["Cancel"]</NavLink> | ||||
| <br /> | ||||
| <br /> | ||||
| <AuditInfo CreatedBy="@createdby" CreatedOn="@createdon" ModifiedBy="@modifiedby" ModifiedOn="@modifiedon"></AuditInfo> | ||||
|  | ||||
| @code { | ||||
|     private int _jobId; | ||||
| @ -94,6 +97,10 @@ | ||||
|     private string _endDate = string.Empty; | ||||
|     private string _retentionHistory = string.Empty; | ||||
|     private string _nextExecution = string.Empty; | ||||
|     private string createdby; | ||||
|     private DateTime createdon; | ||||
|     private string modifiedby; | ||||
|     private DateTime modifiedon; | ||||
|  | ||||
|     public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Host; | ||||
|  | ||||
| @ -114,6 +121,10 @@ | ||||
|                 _endDate = (job.EndDate != null) ? job.EndDate.ToString() : string.Empty; | ||||
|                 _retentionHistory = job.RetentionHistory.ToString(); | ||||
|                 _nextExecution = job.NextExecution.ToString(); | ||||
|                 createdby = job.CreatedBy; | ||||
|                 createdon = job.CreatedOn; | ||||
|                 modifiedby = job.ModifiedBy; | ||||
|                 modifiedon = job.ModifiedOn; | ||||
|             } | ||||
|         } | ||||
|         catch (Exception ex) | ||||
|  | ||||
| @ -25,11 +25,11 @@ else | ||||
|             { | ||||
|                 <table class="table table-borderless"> | ||||
|                     <tr> | ||||
|                         <td> | ||||
|                         <td width="30%"> | ||||
|                             <Label For="name" HelpText="Name Of The Language" ResourceKey="Name">Name:</Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
|                             <select id="_code" class="form-control" @bind="@_code"> | ||||
|                             <select id="_code" class="form-select" @bind="@_code"> | ||||
|                                 @foreach (var culture in _availableCultures) | ||||
|                                 { | ||||
|                                     <option value="@culture.Name">@culture.DisplayName</option> | ||||
| @ -42,7 +42,7 @@ else | ||||
|                             <Label For="default" HelpText="Indicates Whether Or Not This Language Is The Default For The Site" ResourceKey="IsDefault">Default?</Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
|                             <select id="default" class="form-control" @bind="@_isDefault"> | ||||
|                             <select id="default" class="form-select" @bind="@_isDefault"> | ||||
|                                 <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                                 <option value="False">@SharedLocalizer["No"]</option> | ||||
|                             </select> | ||||
|  | ||||
| @ -11,7 +11,7 @@ | ||||
|  | ||||
| <table class="table table-borderless"> | ||||
|     <tr> | ||||
|         <td> | ||||
|         <td width="30%"> | ||||
|             <Label For="dateTime" HelpText="The date and time of this log" ResourceKey="DateTime">Date/Time: </Label> | ||||
|         </td> | ||||
|         <td> | ||||
|  | ||||
| @ -14,7 +14,7 @@ else | ||||
|         <tr> | ||||
|             <td> | ||||
|                 <Label For="level" HelpText="Select the log level for event log items" ResourceKey="Level">Level: </Label><br /><br /> | ||||
|                 <select id="level" class="form-control" @onchange="(e => LevelChanged(e))"> | ||||
|                 <select id="level" class="form-select" @onchange="(e => LevelChanged(e))"> | ||||
|                     <option value="-"><@Localizer["AllLevels"]></option> | ||||
|                     <option value="Trace">@Localizer["Trace"]</option> | ||||
|                     <option value="Debug">@Localizer["Debug"]</option> | ||||
| @ -26,7 +26,7 @@ else | ||||
|             </td> | ||||
|             <td> | ||||
|                 <Label For="function" HelpText="Select the function for event log items" ResourceKey="Function">Function: </Label><br /><br /> | ||||
|                 <select id="function" class="form-control" @onchange="(e => FunctionChanged(e))"> | ||||
|                 <select id="function" class="form-select" @onchange="(e => FunctionChanged(e))"> | ||||
|                     <option value="-"><@Localizer["AllFunctions"]></option> | ||||
|                     <option value="Create">@Localizer["Create"]</option> | ||||
|                     <option value="Read">@Localizer["Read"]</option> | ||||
| @ -38,7 +38,7 @@ else | ||||
|             </td> | ||||
|             <td> | ||||
|                 <Label For="rows" HelpText="Select the maximum number of event log items to review. Please note that if you choose more than 10 items the information will be split into pages." ResourceKey="Rows">Maximum Items: </Label><br /><br /> | ||||
|                 <select id="rows" class="form-control" @onchange="(e => RowsChanged(e))"> | ||||
|                 <select id="rows" class="form-select" @onchange="(e => RowsChanged(e))"> | ||||
|                     <option value="10">10</option> | ||||
|                     <option value="50">50</option> | ||||
|                     <option value="100">100</option> | ||||
|  | ||||
| @ -12,7 +12,7 @@ | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="owner" HelpText="Enter the name of the organization who is developing this module. It should not contain spaces or punctuation." ResourceKey="OwnerName">Owner Name: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
| @ -40,7 +40,7 @@ | ||||
|                 <Label For="template" HelpText="Select a module template. Templates are located in the wwwroot/Modules/Templates folder on the server." ResourceKey="Template">Template: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="template" class="form-control" @onchange="(e => TemplateChanged(e))"> | ||||
|                 <select id="template" class="form-select" @onchange="(e => TemplateChanged(e))"> | ||||
|                     <option value="-"><@Localizer["Template.Select"]></option> | ||||
|                     @foreach (Template template in _templates) | ||||
|                     { | ||||
| @ -54,7 +54,7 @@ | ||||
|                 <Label For="reference" HelpText="Select a framework reference version" ResourceKey="FrameworkReference">Framework Reference: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="reference" class="form-control" @bind="@_reference"> | ||||
|                 <select id="reference" class="form-select" @bind="@_reference"> | ||||
|                     @foreach (string version in _versions) | ||||
|                     { | ||||
|                         if (Version.Parse(version).CompareTo(Version.Parse(_minversion)) >= 0) | ||||
|  | ||||
| @ -11,7 +11,7 @@ | ||||
|     <TabPanel Name="Download" ResourceKey="Download"> | ||||
|         <ModuleMessage Type="MessageType.Info" Message="Download one or more modules from the list below. Once you are ready click Install to complete the installation."></ModuleMessage> | ||||
|  | ||||
|         <table class="table table-borderless" style=" margin: auto; width: 50% !important;"> | ||||
|         <table class="table table-borderless" style="margin: auto; width: 50% !important;"> | ||||
|             <tr> | ||||
|                 <td> | ||||
|                     <input id="search" class="form-control" placeholder="@SharedLocalizer["Search.Hint"]" @bind="@_search" /> | ||||
|  | ||||
| @ -12,7 +12,7 @@ | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="owner" HelpText="Enter the name of the organization who is developing this module. It should not contain spaces or punctuation." ResourceKey="OwnerName">Owner Name: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
| @ -40,7 +40,7 @@ | ||||
|                 <Label For="template" HelpText="Select a module template. Templates are located in the wwwroot/Modules/Templates folder on the server." ResourceKey="Template">Template: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="template" class="form-control" @onchange="(e => TemplateChanged(e))"> | ||||
|                 <select id="template" class="form-select" @onchange="(e => TemplateChanged(e))"> | ||||
|                     <option value="-"><@Localizer["Template.Select"]></option> | ||||
|                     @foreach (Template template in _templates) | ||||
|                     { | ||||
| @ -54,7 +54,7 @@ | ||||
|                 <Label For="reference" HelpText="Select a framework reference version" ResourceKey="FrameworkReference">Framework Reference: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="reference" class="form-control" @bind="@_reference"> | ||||
|                 <select id="reference" class="form-select" @bind="@_reference"> | ||||
|                     @foreach (string version in _versions) | ||||
|                     { | ||||
|                         if (Version.Parse(version).CompareTo(Version.Parse(_minversion)) >= 0) | ||||
|  | ||||
| @ -9,7 +9,7 @@ | ||||
|     <TabPanel Name="Definition" ResourceKey="Definition"> | ||||
|         <table class="table table-borderless"> | ||||
|             <tr> | ||||
|                 <td> | ||||
|                 <td width="30%"> | ||||
|                     <Label For="name" HelpText="The name of the module" ResourceKey="Name">Name: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
| @ -36,7 +36,7 @@ | ||||
|         <Section Name="Information" ResourceKey="Information"> | ||||
|             <table class="table table-borderless"> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                     <td width="30%"> | ||||
|                         <Label For="moduledefinitionname" HelpText="The internal name of the module" ResourceKey="InternalName">Internal Name: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|  | ||||
| @ -8,7 +8,7 @@ | ||||
| <table class="table table-borderless"> | ||||
|     <tbody> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="content" HelpText="Enter the module content" ResourceKey="Content">Content: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|  | ||||
| @ -8,7 +8,7 @@ | ||||
| <table class="table table-borderless"> | ||||
|     <tbody> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="content" HelpText="Enter the module content" ResourceKey="Content">Content: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|  | ||||
| @ -14,7 +14,7 @@ | ||||
|         { | ||||
|             <table class="table table-borderless"> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                     <td width="30%"> | ||||
|                         <Label For="title" HelpText="Enter the title of the module" ResourceKey="Title">Title: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
| @ -26,7 +26,7 @@ | ||||
|                         <Label For="container" HelpText="Select the module's container" ResourceKey="Container">Container: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="container" class="form-control" @bind="@_containerType"> | ||||
|                         <select id="container" class="form-select" @bind="@_containerType"> | ||||
|                             @foreach (var container in _containers) | ||||
|                             { | ||||
|                                 <option value="@container.TypeName">@container.Name</option> | ||||
| @ -39,7 +39,7 @@ | ||||
|                         <Label For="allpages" HelpText="Indicate if this module should be displayed on all pages" ResourceKey="DisplayOnAllPages">Display On All Pages? </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="allpages" class="form-control" @bind="@_allPages"> | ||||
|                         <select id="allpages" class="form-select" @bind="@_allPages"> | ||||
|                             <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                             <option value="False">@SharedLocalizer["No"]</option> | ||||
|                         </select> | ||||
| @ -50,7 +50,7 @@ | ||||
|                         <Label For="page" HelpText="The page that the module is located on" ResourceKey="Page">Page: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="page" class="form-control" @bind="@_pageId"> | ||||
|                         <select id="page" class="form-select" @bind="@_pageId"> | ||||
|                             @foreach (Page p in PageState.Pages) | ||||
|                             { | ||||
|                                 if (UserSecurity.IsAuthorized(PageState.User, PermissionNames.View, p.Permissions)) | ||||
| @ -91,6 +91,9 @@ | ||||
| </TabStrip> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveModule">@SharedLocalizer["Save"]</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@SharedLocalizer["Cancel"]</NavLink> | ||||
| <br /> | ||||
| <br /> | ||||
| <AuditInfo CreatedBy="@createdby" CreatedOn="@createdon" ModifiedBy="@modifiedby" ModifiedOn="@modifiedon"></AuditInfo> | ||||
|  | ||||
| @code { | ||||
|     public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Edit; | ||||
| @ -112,6 +115,10 @@ | ||||
|     private Type _containerSettingsType; | ||||
|     private object _containerSettings; | ||||
|     private RenderFragment ContainerSettingsComponent { get; set; } | ||||
|     private string createdby; | ||||
|     private DateTime createdon; | ||||
|     private string modifiedby; | ||||
|     private DateTime modifiedon; | ||||
|  | ||||
|     protected override async Task OnInitializedAsync() | ||||
|     { | ||||
| @ -123,6 +130,10 @@ | ||||
|         _permissions = ModuleState.Permissions; | ||||
|         _permissionNames = ModuleState.ModuleDefinition.PermissionNames; | ||||
|         _pageId = ModuleState.PageId.ToString(); | ||||
|         createdby = ModuleState.CreatedBy; | ||||
|         createdon = ModuleState.CreatedOn; | ||||
|         modifiedby = ModuleState.ModifiedBy; | ||||
|         modifiedon = ModuleState.ModifiedOn; | ||||
|  | ||||
|         if (!string.IsNullOrEmpty(ModuleState.ModuleDefinition.SettingsType)) | ||||
|         { | ||||
|  | ||||
| @ -12,7 +12,7 @@ | ||||
|         { | ||||
|             <table class="table table-borderless"> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                     <td width="30%"> | ||||
|                         <Label For="Name" HelpText="Enter the page name" ResourceKey="Name">Name: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
| @ -24,7 +24,7 @@ | ||||
|                         <Label For="Parent" HelpText="Select the parent for the page in the site hierarchy" ResourceKey="Parent">Parent: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="Parent" class="form-control" @onchange="(e => ParentChanged(e))"> | ||||
|                         <select id="Parent" class="form-select" @onchange="(e => ParentChanged(e))"> | ||||
|                             <option value="-1"><@Localizer["SiteRoot"]></option> | ||||
|                             @foreach (Page page in _pageList) | ||||
|                             { | ||||
| @ -38,7 +38,7 @@ | ||||
|                         <Label For="Insert" HelpText="Select the location where you would like the page to be inserted in relation to other pages" ResourceKey="Insert">Insert: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="Insert" class="form-control" @bind="@_insert"> | ||||
|                         <select id="Insert" class="form-select" @bind="@_insert"> | ||||
|                             <option value="<<">@Localizer["AtBeginning"]</option> | ||||
|                             @if (_children != null && _children.Count > 0) | ||||
|                             { | ||||
| @ -49,7 +49,7 @@ | ||||
|                         </select> | ||||
|                         @if (_children != null && _children.Count > 0 && (_insert == "<" || _insert == ">")) | ||||
|                         { | ||||
|                             <select class="form-control" @bind="@_childid"> | ||||
|                             <select class="form-select" @bind="@_childid"> | ||||
|                                 <option value="-1"><@Localizer["Page.Select"]></option> | ||||
|                                 @foreach (Page page in _children) | ||||
|                                 { | ||||
| @ -61,10 +61,10 @@ | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <Label For="Navigation" HelpText="Select whether the page is part of the site navigation or hidden" ResourceKey="Navigation">Navigation? </Label> | ||||
|                         <Label For="navigation" HelpText="Select whether the page is part of the site navigation or hidden" ResourceKey="Navigation">Navigation? </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="Navigation" class="form-control" @bind="@_isnavigation"> | ||||
|                         <select id="navigation" class="form-select" @bind="@_isnavigation"> | ||||
|                             <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                             <option value="False">@SharedLocalizer["No"]</option> | ||||
|                         </select> | ||||
| @ -72,10 +72,10 @@ | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <Label For="Clickablen" HelpText="Select whether the link in the site navigation is enabled or disabled" ResourceKey="Clickable">Clickable? </Label> | ||||
|                         <Label For="clickable" HelpText="Select whether the link in the site navigation is enabled or disabled" ResourceKey="Clickable">Clickable? </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="Navigation" class="form-control" @bind="@_isclickable"> | ||||
|                         <select id="clickable" class="form-select" @bind="@_isclickable"> | ||||
|                             <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                             <option value="False">@SharedLocalizer["No"]</option> | ||||
|                         </select> | ||||
| @ -101,7 +101,7 @@ | ||||
|             <Section Name="Appearance" ResourceKey="Appearance"> | ||||
|                 <table class="table table-borderless"> | ||||
|                     <tr> | ||||
|                         <td> | ||||
|                         <td width="30%"> | ||||
|                             <Label For="Title" HelpText="Optionally enter the page title. If you do not provide a page title, the page name will be used." ResourceKey="Title">Title: </Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
| @ -113,7 +113,7 @@ | ||||
|                             <Label For="Theme" HelpText="Select the theme for this page" ResourceKey="Theme">Theme: </Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
|                             <select id="Theme" class="form-control" value="@_themetype" @onchange="(e => ThemeChanged(e))"> | ||||
|                             <select id="Theme" class="form-select" value="@_themetype" @onchange="(e => ThemeChanged(e))"> | ||||
|                                 @foreach (var theme in _themes) | ||||
|                                 { | ||||
|                                     <option value="@theme.TypeName">@theme.Name</option> | ||||
| @ -126,7 +126,7 @@ | ||||
|                             <Label For="defaultContainer" HelpText="Select the default container for the page" ResourceKey="DefaultContainer">Default Container: </Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
|                             <select id="defaultContainer" class="form-control" @bind="@_containertype"> | ||||
|                             <select id="defaultContainer" class="form-select" @bind="@_containertype"> | ||||
|                                 <option value="-"><@Localizer["Container.Select"]></option> | ||||
|                                 @foreach (var container in _containers) | ||||
|                                 { | ||||
| @ -148,7 +148,7 @@ | ||||
|                             <Label For="Personalizable" HelpText="Select whether you would like users to be able to personalize this page with their own content" ResourceKey="Personalizable">Personalizable? </Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
|                             <select id="Personalizable" class="form-control" @bind="@_ispersonalizable"> | ||||
|                             <select id="Personalizable" class="form-select" @bind="@_ispersonalizable"> | ||||
|                                 <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                                 <option value="False">@SharedLocalizer["No"]</option> | ||||
|                             </select> | ||||
|  | ||||
| @ -13,7 +13,7 @@ | ||||
|         { | ||||
|             <table class="table table-borderless"> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                     <td width="30%"> | ||||
|                         <Label For="Name" HelpText="Enter the page name" ResourceKey="Name">Name: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
| @ -25,7 +25,7 @@ | ||||
|                         <Label For="Parent" HelpText="Select the parent for the page in the site hierarchy" ResourceKey="Parent">Parent: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="Parent" class="form-control" value="@_parentid" @onchange="(e => ParentChanged(e))"> | ||||
|                         <select id="Parent" class="form-select" value="@_parentid" @onchange="(e => ParentChanged(e))"> | ||||
|                             <option value="-1"><@Localizer["SiteRoot"]></option> | ||||
|                             @foreach (Page page in _pageList) | ||||
|                             { | ||||
| @ -42,7 +42,7 @@ | ||||
|                         <Label For="Move" HelpText="Select the location where you would like the page to be moved in relation to other pages" ResourceKey="Move">Move: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="Move" class="form-control" @bind="@_insert"> | ||||
|                         <select id="Move" class="form-select" @bind="@_insert"> | ||||
|                             @if (_parentid == _currentparentid) | ||||
|                             { | ||||
|                                 <option value="="><@Localizer["ThisLocation.Keep"]></option> | ||||
| @ -57,7 +57,7 @@ | ||||
|                         </select> | ||||
|                         @if (_children != null && _children.Count > 0 && (_insert == "<" || _insert == ">")) | ||||
|                         { | ||||
|                             <select class="form-control" @bind="@_childid"> | ||||
|                             <select class="form-select" @bind="@_childid"> | ||||
|                                 <option value="-1"><@Localizer["Page.Select"]></option> | ||||
|                                 @foreach (Page page in _children) | ||||
|                                 { | ||||
| @ -72,7 +72,7 @@ | ||||
|                         <Label For="Navigation" HelpText="Select whether the page is part of the site navigation or hidden" ResourceKey="Navigation">Navigation? </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="Navigation" class="form-control" @bind="@_isnavigation"> | ||||
|                         <select id="Navigation" class="form-select" @bind="@_isnavigation"> | ||||
|                             <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                             <option value="False">@SharedLocalizer["No"]</option> | ||||
|                         </select> | ||||
| @ -83,7 +83,7 @@ | ||||
|                         <Label For="Clickablen" HelpText="Select whether the link in the site navigation is enabled or disabled" ResourceKey="Clickable">Clickable? </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="Navigation" class="form-control" @bind="@_isclickable"> | ||||
|                         <select id="Navigation" class="form-select" @bind="@_isclickable"> | ||||
|                             <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                             <option value="False">@SharedLocalizer["No"]</option> | ||||
|                         </select> | ||||
| @ -109,7 +109,7 @@ | ||||
|             <Section Name="Appearance" ResourceKey="Appearance"> | ||||
|                 <table class="table table-borderless"> | ||||
|                     <tr> | ||||
|                         <td> | ||||
|                         <td width="30%"> | ||||
|                             <Label For="Title" HelpText="Optionally enter the page title. If you do not provide a page title, the page name will be used." ResourceKey="Title">Title: </Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
| @ -121,7 +121,7 @@ | ||||
|                             <Label For="Theme" HelpText="Select the theme for this page" ResourceKey="Theme">Theme: </Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
|                             <select id="Theme" class="form-control" value="@_themetype" @onchange="(e => ThemeChanged(e))"> | ||||
|                             <select id="Theme" class="form-select" value="@_themetype" @onchange="(e => ThemeChanged(e))"> | ||||
|                                 @foreach (var theme in _themes) | ||||
|                                 { | ||||
|                                     <option value="@theme.TypeName">@theme.Name</option> | ||||
| @ -134,7 +134,7 @@ | ||||
|                             <Label For="defaultContainer" HelpText="Select the default container for the page" ResourceKey="DefaultContainer">Default Container: </Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
|                             <select id="defaultContainer" class="form-control" @bind="@_containertype"> | ||||
|                             <select id="defaultContainer" class="form-select" @bind="@_containertype"> | ||||
|                                 <option value="-"><@Localizer["Container.Select"]></option> | ||||
|                                 @foreach (var container in _containers) | ||||
|                                 { | ||||
| @ -156,7 +156,7 @@ | ||||
|                             <Label For="Personalizable" HelpText="Select whether you would like users to be able to personalize this page with their own content" ResourceKey="Personalizable">Personalizable? </Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
|                             <select id="Personalizable" class="form-control" @bind="@_ispersonalizable"> | ||||
|                             <select id="Personalizable" class="form-select" @bind="@_ispersonalizable"> | ||||
|                                 <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                                 <option value="False">@SharedLocalizer["No"]</option> | ||||
|                             </select> | ||||
|  | ||||
| @ -7,7 +7,7 @@ | ||||
|  | ||||
| <table class="table table-borderless"> | ||||
|     <tr> | ||||
|         <td> | ||||
|         <td width="30%"> | ||||
|             <Label For="name" HelpText="The name of this profile item" ResourceKey="Name">Name: </Label> | ||||
|         </td> | ||||
|         <td> | ||||
| @ -75,7 +75,7 @@ | ||||
|             <Label For="required" HelpText="Should a user be required to provide a value for this profile item?" ResourceKey="Required">Required? </Label> | ||||
|         </td> | ||||
|         <td> | ||||
|             <select id="required" class="form-control" @bind="@_isrequired"> | ||||
|             <select id="required" class="form-select" @bind="@_isrequired"> | ||||
|                 <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                 <option value="False">@SharedLocalizer["No"]</option> | ||||
|             </select> | ||||
| @ -86,7 +86,7 @@ | ||||
|             <Label For="private" HelpText="Should this profile item be visible to all users?" ResourceKey="Private">Private? </Label> | ||||
|         </td> | ||||
|         <td> | ||||
|             <select id="private" class="form-control" @bind="@_isprivate"> | ||||
|             <select id="private" class="form-select" @bind="@_isprivate"> | ||||
|                 <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                 <option value="False">@SharedLocalizer["No"]</option> | ||||
|             </select> | ||||
| @ -95,6 +95,12 @@ | ||||
| </table> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveProfile">@SharedLocalizer["Save"]</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@SharedLocalizer["Cancel"]</NavLink> | ||||
| @if (PageState.QueryString.ContainsKey("id")) | ||||
| { | ||||
|     <br /> | ||||
|     <br /> | ||||
|     <AuditInfo CreatedBy="@createdby" CreatedOn="@createdon" ModifiedBy="@modifiedby" ModifiedOn="@modifiedon"></AuditInfo> | ||||
| } | ||||
|  | ||||
| @code { | ||||
|     private int _profileid = -1; | ||||
| @ -108,6 +114,10 @@ | ||||
|     private string _options = string.Empty; | ||||
|     private string _isrequired = "False"; | ||||
|     private string _isprivate = "False"; | ||||
|     private string createdby; | ||||
|     private DateTime createdon; | ||||
|     private string modifiedby; | ||||
|     private DateTime modifiedon; | ||||
|  | ||||
|     public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Admin; | ||||
|  | ||||
| @ -133,6 +143,10 @@ | ||||
|                     _options = profile.Options; | ||||
|                     _isrequired = profile.IsRequired.ToString(); | ||||
|                     _isprivate = profile.IsPrivate.ToString(); | ||||
|                     createdby = profile.CreatedBy; | ||||
|                     createdon = profile.CreatedOn; | ||||
|                     modifiedby = profile.ModifiedBy; | ||||
|                     modifiedon = profile.ModifiedOn; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
| @ -17,30 +17,51 @@ | ||||
|         <NotAuthorized> | ||||
|             <ModuleMessage Message="@Localizer["Info.Registration.InvalidEmail"]" Type="MessageType.Info" /> | ||||
|  | ||||
|             <div class="container"> | ||||
|                 <div class="form-group"> | ||||
|                     <label for="Username" class="control-label">@SharedLocalizer["Username"] </label> | ||||
|                     <input type="text" class="form-control" placeholder="Username" @bind="@_username" id="Username" /> | ||||
|                 </div> | ||||
|                 <div class="form-group"> | ||||
|                     <label for="Password" class="control-label">@SharedLocalizer["Password"] </label> | ||||
|                     <input type="password" class="form-control" placeholder="Password" @bind="@_password" id="Password" /> | ||||
|                 </div> | ||||
|                 <div class="form-group"> | ||||
|                     <label for="Confirm" class="control-label">@Localizer["Password.Confirm"] </label> | ||||
|                     <input type="password" class="form-control" placeholder="Password" @bind="@_confirm" id="Confirm" /> | ||||
|                 </div> | ||||
|                 <div class="form-group"> | ||||
|                     <label for="Email" class="control-label">@SharedLocalizer["Email"] </label> | ||||
|                     <input type="text" class="form-control" placeholder="Email" @bind="@_email" id="Email" /> | ||||
|                 </div> | ||||
|                 <div class="form-group"> | ||||
|                     <label for="DisplayName" class="control-label">@SharedLocalizer["FullName"] </label> | ||||
|                     <input type="text" class="form-control" placeholder="Full Name" @bind="@_displayName" id="DisplayName" /> | ||||
|                 </div> | ||||
|                 <button type="button" class="btn btn-primary" @onclick="Register">@Localizer["Register"]</button> | ||||
|                 <button type="button" class="btn btn-secondary" @onclick="Cancel">@SharedLocalizer["Cancel"]</button> | ||||
|             </div> | ||||
|             <table class="table table-borderless"> | ||||
|                 <tr> | ||||
|                     <td width="30%"> | ||||
|                         <Label For="username" HelpText="Your username. Note that this field can not be modified once it is saved." ResourceKey="Username"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input id="username" class="form-control" @bind="@_username" readonly /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <Label For="password" HelpText="If you wish to change your password you can enter it here. Please choose a sufficiently secure password." ResourceKey="Password"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input id="password" type="password" class="form-control" @bind="@_password" autocomplete="new-password" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <Label For="confirm" HelpText="If you are changing your password you must enter it again to confirm it matches" ResourceKey="Confirm"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input id="confirm" type="password" class="form-control" @bind="@_confirm" autocomplete="new-password" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <Label For="email" HelpText="Your email address where you wish to receive notifications" ResourceKey="Email"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input id="email" class="form-control" @bind="@_email" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <Label For="displayname" HelpText="Your full name" ResourceKey="DisplayName"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input id="displayname" class="form-control" @bind="@_displayname" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|             </table> | ||||
|  | ||||
|             <button type="button" class="btn btn-primary" @onclick="Register">@Localizer["Register"]</button> | ||||
|             <button type="button" class="btn btn-secondary" @onclick="Cancel">@SharedLocalizer["Cancel"]</button> | ||||
|         </NotAuthorized> | ||||
|     </AuthorizeView> | ||||
| } | ||||
| @ -54,7 +75,7 @@ else | ||||
|     private string _password = string.Empty; | ||||
|     private string _confirm = string.Empty; | ||||
|     private string _email = string.Empty; | ||||
|     private string _displayName = string.Empty; | ||||
|     private string _displayname = string.Empty; | ||||
|  | ||||
|     public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Anonymous; | ||||
|  | ||||
| @ -72,7 +93,7 @@ else | ||||
|                     { | ||||
|                         SiteId = PageState.Site.SiteId, | ||||
|                         Username = _username, | ||||
|                         DisplayName = (_displayName == string.Empty ? _username : _displayName), | ||||
|                         DisplayName = (_displayname == string.Empty ? _username : _displayname), | ||||
|                         Email = _email, | ||||
|                         Password = _password | ||||
|                     }; | ||||
|  | ||||
| @ -8,7 +8,7 @@ | ||||
| <form @ref="form" class="@(validated ? "was-validated" : "needs-validation")" novalidate> | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="name" HelpText="Name Of The Role" ResourceKey="Name">Name:</Label> | ||||
|             </td> | ||||
|             <td> | ||||
| @ -28,7 +28,7 @@ | ||||
|                 <Label For="isautoassigned" HelpText="Indicates Whether Or Not New Users Are Automatically Assigned To This Role" ResourceKey="AutoAssigned">Auto Assigned?</Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="isautoassigned" class="form-control" @bind="@_isautoassigned"> | ||||
|                 <select id="isautoassigned" class="form-select" @bind="@_isautoassigned"> | ||||
|                     <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                     <option value="False">@SharedLocalizer["No"]</option> | ||||
|                 </select> | ||||
|  | ||||
| @ -8,7 +8,7 @@ | ||||
| <form @ref="form" class="@(validated ? "was-validated" : "needs-validation")" novalidate> | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="name" HelpText="Name Of The Role" ResourceKey="Name">Name:</Label> | ||||
|             </td> | ||||
|             <td> | ||||
| @ -28,7 +28,7 @@ | ||||
|                 <Label For="isautoassigned" HelpText="Indicates Whether Or Not New Users Are Automatically Assigned To This Role" ResourceKey="AutoAssigned">Auto Assigned?</Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="isautoassigned" class="form-control" @bind="@_isautoassigned"> | ||||
|                 <select id="isautoassigned" class="form-select" @bind="@_isautoassigned"> | ||||
|                     <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                     <option value="False">@SharedLocalizer["No"]</option> | ||||
|                 </select> | ||||
|  | ||||
| @ -13,7 +13,7 @@ else | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="role" HelpText="The role you are assigning users to" ResourceKey="Role">Role: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
| @ -25,7 +25,7 @@ else | ||||
|                 <Label For="user" HelpText="Select a user" ResourceKey="User">User: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="user" class="form-control" @bind="@userid"> | ||||
|                 <select id="user" class="form-select" @bind="@userid"> | ||||
|                     <option value="-1"><@Localizer["User.Select"]></option> | ||||
|                     @foreach (UserRole userrole in users) | ||||
|                     { | ||||
|  | ||||
| @ -15,7 +15,7 @@ | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="name" HelpText="Enter the site name" ResourceKey="Name">Name: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
| @ -43,7 +43,7 @@ | ||||
|                 <Label For="allowRegister" HelpText="Do you want the users to be able to register for an account on the site" ResourceKey="AllowRegistration">Allow User Registration? </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="allowRegister" class="form-control" @bind="@_allowregistration"> | ||||
|                 <select id="allowRegister" class="form-select" @bind="@_allowregistration"> | ||||
|                     <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                     <option value="False">@SharedLocalizer["No"]</option> | ||||
|                 </select> | ||||
| @ -54,7 +54,7 @@ | ||||
|                 <Label For="isDeleted" HelpText="Is this site deleted?" ResourceKey="IsDeleted">Is Deleted? </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="isDeleted" class="form-control" @bind="@_isdeleted"> | ||||
|                 <select id="isDeleted" class="form-select" @bind="@_isdeleted"> | ||||
|                     <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                     <option value="False">@SharedLocalizer["No"]</option> | ||||
|                 </select> | ||||
| @ -64,7 +64,7 @@ | ||||
|     <Section Name="Appearance" Heading="Appearance" ResourceKey="Appearance"> | ||||
|         <table class="table table-borderless"> | ||||
|             <tr> | ||||
|                 <td> | ||||
|                 <td width="30%"> | ||||
|                     <Label For="logo" HelpText="Specify a logo for the site" ResourceKey="Logo">Logo: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
| @ -84,7 +84,7 @@ | ||||
|                     <Label For="defaultTheme" HelpText="Select the sites default theme" ResourceKey="DefaultTheme">Default Theme: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="defaultTheme" class="form-control" value="@_themetype" @onchange="(e => ThemeChanged(e))"> | ||||
|                     <select id="defaultTheme" class="form-select" value="@_themetype" @onchange="(e => ThemeChanged(e))"> | ||||
|                         <option value="-"><@Localizer["Theme.Select"]></option> | ||||
|                         @foreach (var theme in _themes) | ||||
|                         { | ||||
| @ -98,7 +98,7 @@ | ||||
|                     <Label For="defaultContainer" HelpText="Select the default container for the site" ResourceKey="DefaultContainer">Default Container: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="defaultContainer" class="form-control" @bind="@_containertype"> | ||||
|                     <select id="defaultContainer" class="form-select" @bind="@_containertype"> | ||||
|                         <option value="-"><@Localizer["Container.Select"]></option> | ||||
|                         @foreach (var container in _containers) | ||||
|                         { | ||||
| @ -112,7 +112,7 @@ | ||||
|                     <Label For="defaultAdminContainer" HelpText="Select the default admin container for the site" ResourceKey="DefaultAdminContainer">Default Admin Container: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="defaultAdminContainer" class="form-control" @bind="@_admincontainertype"> | ||||
|                     <select id="defaultAdminContainer" class="form-select" @bind="@_admincontainertype"> | ||||
|                         <option value="-"><@Localizer["Container.Select"]></option> | ||||
|                         <option value="@Constants.DefaultAdminContainer"><@Localizer["DefaultAdminContainer"]></option> | ||||
|                         @foreach (var container in _containers) | ||||
| @ -127,8 +127,9 @@ | ||||
|     <Section Name="SMTP" Heading="SMTP Settings" ResourceKey="SMTPSettings"> | ||||
|         <table class="table table-borderless"> | ||||
|             <tr> | ||||
|                 <td colspan="2"> | ||||
|                     <strong>@Localizer["Smtp.Required.EnableNotificationJob"]</strong> | ||||
|                 <td width="30%"> </td> | ||||
|                 <td> | ||||
|                     <strong>@Localizer["Smtp.Required.EnableNotificationJob"]</strong><br /> | ||||
|                 </td> | ||||
|             </tr> | ||||
|             <tr> | ||||
| @ -152,7 +153,7 @@ | ||||
|                     <Label For="enabledSSl" HelpText="Specify if SSL is required for your SMTP server" ResourceKey="UseSsl">SSL Enabled: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="enabledSSl" class="form-control" @bind="@_smtpssl"> | ||||
|                     <select id="enabledSSl" class="form-select" @bind="@_smtpssl"> | ||||
|                         <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                         <option value="False">@SharedLocalizer["No"]</option> | ||||
|                     </select> | ||||
| @ -189,11 +190,11 @@ | ||||
|     <Section Name="PWA" Heading="Progressive Web Application Settings" ResourceKey="PWASettings"> | ||||
|         <table class="table table-borderless"> | ||||
|             <tr> | ||||
|                 <td> | ||||
|                 <td width="30%"> | ||||
|                     <Label For="isEnabled" HelpText="Select whether you would like this site to be available as a Progressive Web Application (PWA)" ResourceKey="EnablePWA">Is Enabled? </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="isEnabled" class="form-control" @bind="@_pwaisenabled"> | ||||
|                     <select id="isEnabled" class="form-select" @bind="@_pwaisenabled"> | ||||
|                         <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                         <option value="False">@SharedLocalizer["No"]</option> | ||||
|                     </select> | ||||
| @ -222,7 +223,7 @@ | ||||
|         <Section Name="TenantInformation" Heading="Tenant Information" ResourceKey="TenantInformation"> | ||||
|             <table class="table table-borderless"> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                     <td width="30%"> | ||||
|                         <Label For="tenant" HelpText="The tenant for the site" ResourceKey="Tenant">Tenant: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|  | ||||
| @ -21,7 +21,7 @@ else | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="name" HelpText="Enter the name of the site" ResourceKey="Name">Site Name: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
| @ -41,7 +41,7 @@ else | ||||
|                 <Label For="defaultTheme" HelpText="Select the default theme for the website" ResourceKey="DefaultTheme">Default Theme: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="defaultTheme" class="form-control" @onchange="(e => ThemeChanged(e))"> | ||||
|                 <select id="defaultTheme" class="form-select" @onchange="(e => ThemeChanged(e))"> | ||||
|                     <option value="-"><@Localizer["Theme.Select"]></option> | ||||
|                     @foreach (var theme in _themes) | ||||
|                     { | ||||
| @ -55,7 +55,7 @@ else | ||||
|                 <Label For="defaultContainer" HelpText="Select the default container for the site" ResourceKey="DefaultContainer">Default Container: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="defaultContainer" class="form-control" @bind="@_containertype"> | ||||
|                 <select id="defaultContainer" class="form-select" @bind="@_containertype"> | ||||
|                     <option value="-"><@Localizer["Container.Select"]></option> | ||||
|                     @foreach (var container in _containers) | ||||
|                     { | ||||
| @ -69,7 +69,7 @@ else | ||||
|                 <Label For="adminContainer" HelpText="Select the admin container for the site" ResourceKey="AdminContainer">Admin Container: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="adminContainer" class="form-control" @bind="@_admincontainertype"> | ||||
|                 <select id="adminContainer" class="form-select" @bind="@_admincontainertype"> | ||||
|                     <option value="-"><@Localizer["Container.Select"]></option> | ||||
|                     <option value=""><@Localizer["DefaultContainer.Admin"]></option> | ||||
|                     @foreach (var container in _containers) | ||||
| @ -84,7 +84,7 @@ else | ||||
|                 <Label For="siteTemplate" HelpText="Select the site template" ResourceKey="SiteTemplate">Site Template: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="siteTemplate" class="form-control" @bind="@_sitetemplatetype"> | ||||
|                 <select id="siteTemplate" class="form-select" @bind="@_sitetemplatetype"> | ||||
|                     <option value="-"><@Localizer["SiteTemplate.Select"]></option> | ||||
|                     @foreach (SiteTemplate siteTemplate in _siteTemplates) | ||||
|                     { | ||||
| @ -98,7 +98,7 @@ else | ||||
|                 <Label For="tenant" HelpText="Select the tenant for the site" ResourceKey="Tenant">Tenant: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="tenant" class="form-control" @onchange="(e => TenantChanged(e))"> | ||||
|                 <select id="tenant" class="form-select" @onchange="(e => TenantChanged(e))"> | ||||
|                     <option value="-"><@Localizer["Tenant.Select"]></option> | ||||
|                     <option value="+"><@Localizer["Tenant.Add"]></option> | ||||
|                     @foreach (Tenant tenant in _tenants) | ||||
| @ -128,7 +128,7 @@ else | ||||
|                     <Label For="databaseType" HelpText="Select the database type for the tenant" ResourceKey="DatabaseType">Database Type: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="databaseType" class="custom-select" value="@_databaseName" @onchange="(e => DatabaseChanged(e))"> | ||||
|                     <select id="databaseType" class="form-select" value="@_databaseName" @onchange="(e => DatabaseChanged(e))"> | ||||
|                         @foreach (var database in _databases) | ||||
|                         { | ||||
|                             if (database.IsDefault) | ||||
|  | ||||
| @ -15,11 +15,11 @@ else | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="tenant" HelpText="Select the tenant for the SQL server" ResourceKey="Tenant">Tenant: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="tenant" class="form-control" value="@_tenantid" @onchange="(e => TenantChanged(e))"> | ||||
|                 <select id="tenant" class="form-select" value="@_tenantid" @onchange="(e => TenantChanged(e))"> | ||||
|                     <option value="-1"><@Localizer["Tenant.Select"]></option> | ||||
|                     @foreach (Tenant tenant in _tenants) | ||||
|                     { | ||||
|  | ||||
| @ -9,7 +9,7 @@ | ||||
|     <TabPanel Name="Info" Heading="Info" ResourceKey="Info"> | ||||
|         <table class="table table-borderless"> | ||||
|             <tr> | ||||
|                 <td> | ||||
|                 <td width="30%"> | ||||
|                     <Label For="version" HelpText="Framework Version" ResourceKey="FrameworkVersion">Framework Version: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
| @ -56,23 +56,24 @@ | ||||
|                     <input id="installationid" class="form-control" @bind="@_installationid" readonly /> | ||||
|                 </td> | ||||
|             </tr> | ||||
|             <tr> | ||||
|                 <td> </td> | ||||
|                 <td> | ||||
|                     <br /><input type="checkbox" @onchange="(e => RegisterChecked(e))" /> @Localizer["Register"] | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </table> | ||||
|         <div class="row"> | ||||
|             <div class="mx-auto text-center"> | ||||
|                 <input type="checkbox" @onchange="(e => RegisterChecked(e))" /> @Localizer["Register"] | ||||
|             </div> | ||||
|         </div> | ||||
|         <br /><br /> | ||||
|         <ActionDialog Header="Restart Application" Message="Are You Sure You Wish To Restart The Application?" Action="Restart Application" Security="SecurityAccessLevel.Host" Class="btn btn-danger" OnClick="@(async () => await RestartApplication())" ResourceKey="RestartApplication" /> | ||||
|     </TabPanel> | ||||
|     <TabPanel Name="Options" Heading="Options" ResourceKey="Options"> | ||||
|         <table class="table table-borderless"> | ||||
|             <tr> | ||||
|                 <td> | ||||
|                 <td width="30%"> | ||||
|                     <Label For="runtime" HelpText="Blazor Runtime (Server or WebAssembly)" ResourceKey="BlazorRuntime">Blazor Runtime: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="runtime" class="form-control" @bind="@_runtime"> | ||||
|                     <select id="runtime" class="form-select" @bind="@_runtime"> | ||||
|                         <option value="Server">@Localizer["Server"]</option> | ||||
|                         <option value="WebAssembly">@Localizer["WebAssembly"]</option> | ||||
|                     </select> | ||||
| @ -83,7 +84,7 @@ | ||||
|                     <Label For="rendermode" HelpText="Blazor Server Render Mode" ResourceKey="RenderMode">Render Mode: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="rendermode" class="form-control" @bind="@_rendermode"> | ||||
|                     <select id="rendermode" class="form-select" @bind="@_rendermode"> | ||||
|                         <option value="Server">@Localizer["Server"]</option> | ||||
|                         <option value="ServerPrerendered">@Localizer["ServerPrerendered"]</option> | ||||
|                     </select> | ||||
| @ -94,7 +95,7 @@ | ||||
|                     <Label For="detailederrors" HelpText="Specify If Detailed Errors Are Enabled For Blazor. This Option Should Not Not Be Enabled In Production." ResourceKey="DetailedErrors">Detailed Errors? </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="detailederrors" class="form-control" @bind="@_detailederrors"> | ||||
|                     <select id="detailederrors" class="form-select" @bind="@_detailederrors"> | ||||
|                         <option value="true">@SharedLocalizer["True"]</option> | ||||
|                         <option value="false">@SharedLocalizer["False"]</option> | ||||
|                     </select> | ||||
| @ -105,7 +106,7 @@ | ||||
|                     <Label For="logginglevel" HelpText="The Minimum Logging Level For The Event Log. This Option Can Be Used To Control The Volume Of Items Stored In Your Event Log." ResourceKey="LoggingLevel">Logging Level: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="logginglevel" class="form-control" @bind="@_logginglevel"> | ||||
|                     <select id="logginglevel" class="form-select" @bind="@_logginglevel"> | ||||
|                         <option value="Trace">@Localizer["Trace"]</option> | ||||
|                         <option value="Debug">@Localizer["Debug"]</option> | ||||
|                         <option value="Information">@Localizer["Information"]</option> | ||||
| @ -120,7 +121,7 @@ | ||||
|                     <Label For="swagger" HelpText="Specify If Swagger Is Enabled For Your Server API" ResourceKey="Swagger">Swagger Enabled? </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="swagger" class="form-control" @bind="@_swagger"> | ||||
|                     <select id="swagger" class="form-select" @bind="@_swagger"> | ||||
|                         <option value="true">@SharedLocalizer["True"]</option> | ||||
|                         <option value="false">@SharedLocalizer["False"]</option> | ||||
|                     </select> | ||||
| @ -131,13 +132,14 @@ | ||||
|                     <Label For="packageservice" HelpText="Specify If The Package Service Is Enabled For Installing Modules, Themes, And Translations" ResourceKey="PackageService">Enable Package Service? </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <select id="packageservice" class="form-control" @bind="@_packageservice"> | ||||
|                     <select id="packageservice" class="form-select" @bind="@_packageservice"> | ||||
|                         <option value="true">@SharedLocalizer["True"]</option> | ||||
|                         <option value="false">@SharedLocalizer["False"]</option> | ||||
|                     </select> | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </table> | ||||
|         <br /><br /> | ||||
|         <button type="button" class="btn btn-success" @onclick="SaveConfig">@SharedLocalizer["Save"]</button>  | ||||
|         <a class="btn btn-primary" href="swagger/index.html" target="_new">@Localizer["Access.ApiFramework"]</a>  | ||||
|         <ActionDialog Header="Restart Application" Message="Are You Sure You Wish To Restart The Application?" Action="Restart Application" Security="SecurityAccessLevel.Host" Class="btn btn-danger" OnClick="@(async () => await RestartApplication())" ResourceKey="RestartApplication" /> | ||||
|  | ||||
| @ -13,7 +13,7 @@ | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="owner" HelpText="Enter the name of the organization who is developing this theme. It should not contain spaces or punctuation." ResourceKey="OwnerName">Owner Name: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
| @ -33,7 +33,7 @@ | ||||
|                 <Label For="template" HelpText="Select a theme template. Templates are located in the wwwroot/Themes/Templates folder on the server." ResourceKey="Template">Template: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="template" class="form-control" @onchange="(e => TemplateChanged(e))"> | ||||
|                 <select id="template" class="form-select" @onchange="(e => TemplateChanged(e))"> | ||||
|                     <option value="-"><@Localizer["Template.Select"]></option> | ||||
|                     @foreach (Template template in _templates) | ||||
|                     { | ||||
| @ -47,7 +47,7 @@ | ||||
|                 <Label For="reference" HelpText="Select a framework reference version" ResourceKey="FrameworkReference">Framework Reference: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="reference" class="form-control" @bind="@_reference"> | ||||
|                 <select id="reference" class="form-select" @bind="@_reference"> | ||||
|                     @foreach (string version in _versions) | ||||
|                     { | ||||
|                         if (Version.Parse(version).CompareTo(Version.Parse(_minversion)) >= 0) | ||||
|  | ||||
| @ -8,7 +8,7 @@ | ||||
|  | ||||
| <table class="table table-borderless"> | ||||
|     <tr> | ||||
|         <td> | ||||
|         <td width="30%"> | ||||
|             <Label For="name" HelpText="The name of the theme" ResourceKey="Name">Name: </Label> | ||||
|         </td> | ||||
|         <td> | ||||
|  | ||||
| @ -10,7 +10,7 @@ | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="to" HelpText="Enter the username you wish to send a message to" ResourceKey="To">To: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|  | ||||
| @ -23,55 +23,55 @@ else | ||||
|         { | ||||
|             <table class="table table-borderless"> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label for="Name" class="control-label">@SharedLocalizer["Username"] </label> | ||||
|                     <td width="30%"> | ||||
|                         <Label For="username" HelpText="Your username. Note that this field can not be modified." ResourceKey="Username"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input class="form-control" @bind="@username" readonly /> | ||||
|                         <input id="username" class="form-control" @bind="@username" readonly /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label for="Name" class="control-label">@SharedLocalizer["Password"] </label> | ||||
|                         <Label For="password" HelpText="If you wish to change your password you can enter it here. Please choose a sufficiently secure password." ResourceKey="Password"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input type="password" class="form-control" @bind="@password" autocomplete="new-password" /> | ||||
|                         <input id ="password" type="password" class="form-control" @bind="@password" autocomplete="new-password" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label for="Name" class="control-label">@Localizer["Password.Confirm"] </label> | ||||
|                         <Label For="confirm" HelpText="If you are changing your password you must enter it again to confirm it matches" ResourceKey="Confirm"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input type="password" class="form-control" @bind="@confirm" autocomplete="new-password" /> | ||||
|                         <input id="confirm" type="password" class="form-control" @bind="@confirm" autocomplete="new-password" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label for="Name" class="control-label">@SharedLocalizer["Email"] </label> | ||||
|                         <Label For="email" HelpText="Your email address where you wish to receive notifications" ResourceKey="Email"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input class="form-control" @bind="@email" /> | ||||
|                         <input id="email" class="form-control" @bind="@email" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label for="Name" class="control-label">@SharedLocalizer["FullName"] </label> | ||||
|                         <Label For="displayname" HelpText="Your full name" ResourceKey="DisplayName"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input class="form-control" @bind="@displayname" /> | ||||
|                         <input id="displayname" class="form-control" @bind="@displayname" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label for="Name" class="control-label">@Localizer["Photo"] </label> | ||||
|                         <Label For="@photofileid.ToString()" HelpText="A photo of yourself" ResourceKey="Photo"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <FileManager FileId="@photofileid" @ref="filemanager" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|             </table> | ||||
|             <button type="button" class="btn btn-primary" @onclick="Save">@SharedLocalizer["Save"]</button> | ||||
|             <button type="button" class="btn btn-success" @onclick="Save">@SharedLocalizer["Save"]</button> | ||||
|             <button type="button" class="btn btn-secondary" @onclick="Cancel">@SharedLocalizer["Cancel"]</button> | ||||
|         } | ||||
|     </TabPanel> | ||||
| @ -94,13 +94,13 @@ else | ||||
|                             category = p.Category; | ||||
|                         } | ||||
|                         <tr> | ||||
|                             <td> | ||||
|                             <td width="30%"> | ||||
|                                 <Label For="@p.Name" HelpText="@p.Description">@p.Title</Label> | ||||
|                             </td> | ||||
|                             <td> | ||||
|                                 @if (!string.IsNullOrEmpty(p.Options)) | ||||
|                                 { | ||||
|                                     <select id="@p.Name" class="form-control" @onchange="@(e => ProfileChanged(e, p.Name))"> | ||||
|                                     <select id="@p.Name" class="form-select" @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)) | ||||
| @ -130,7 +130,7 @@ else | ||||
|                     } | ||||
|                 } | ||||
|             </table> | ||||
|             <button type="button" class="btn btn-primary" @onclick="Save">@SharedLocalizer["Save"]</button> | ||||
|             <button type="button" class="btn btn-success" @onclick="Save">@SharedLocalizer["Save"]</button> | ||||
|             <button type="button" class="btn btn-secondary" @onclick="Cancel">@SharedLocalizer["Cancel"]</button> | ||||
|         } | ||||
|     </TabPanel> | ||||
| @ -206,7 +206,7 @@ else | ||||
|                 </Pager> | ||||
|             } | ||||
|             <br /><hr /> | ||||
|             <select class="form-control" @onchange="(e => FilterChanged(e))"> | ||||
|             <select class="form-select" @onchange="(e => FilterChanged(e))"> | ||||
|                 <option value="to">@Localizer["Inbox"]</option> | ||||
|                 <option value="from">@Localizer["Items.Sent"]</option> | ||||
|             </select> | ||||
|  | ||||
| @ -10,7 +10,7 @@ | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <label class="control-label">@Localizer["Title"] </label> | ||||
|             </td> | ||||
|             @if (title == "From") | ||||
|  | ||||
| @ -13,43 +13,43 @@ | ||||
|         { | ||||
|             <table class="table table-borderless"> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@SharedLocalizer["Username"] </label> | ||||
|                     <td width="30%"> | ||||
|                         <Label For="username" HelpText="A unique username for a user. Note that this field can not be modified once it is saved." ResourceKey="Username"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input class="form-control" @bind="@username" /> | ||||
|                         <input id="username" class="form-control" @bind="@username" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@SharedLocalizer["Password"] </label> | ||||
|                         <Label For="password" HelpText="The user's password. Please choose a password which is sufficiently secure." ResourceKey="Password"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input type="password" class="form-control" @bind="@password" /> | ||||
|                         <input id="password" type="password" class="form-control" @bind="@password" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@Localizer["Password.Confirm"] </label> | ||||
|                         <Label For="confirm" HelpText="Please enter the password again to confirm it matches with the value above" ResourceKey="Confirm"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input type="password" class="form-control" @bind="@confirm" /> | ||||
|                         <input id="confirm" type="password" class="form-control" @bind="@confirm" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@SharedLocalizer["Email"] </label> | ||||
|                         <Label For="email" HelpText="The email address where the user will receive notifications" ResourceKey="Email"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input class="form-control" @bind="@email" /> | ||||
|                         <input id="email" class="form-control" @bind="@email" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@SharedLocalizer["FullName"] </label> | ||||
|                         <Label For="displayname" HelpText="The full name of the user" ResourceKey="DisplayName"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input class="form-control" @bind="@displayname" /> | ||||
|                         <input id="displayname" class="form-control" @bind="@displayname" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|             </table> | ||||
| @ -72,7 +72,7 @@ | ||||
|                         category = p.Category; | ||||
|                     } | ||||
|                     <tr> | ||||
|                         <td> | ||||
|                         <td width="30%"> | ||||
|                             <Label For="@p.Name" HelpText="@p.Description">@p.Title</Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
| @ -92,7 +92,7 @@ | ||||
|     </TabPanel> | ||||
| </TabStrip> | ||||
|  | ||||
| <button type="button" class="btn btn-primary" @onclick="SaveUser">@SharedLocalizer["Save"]</button> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveUser">@SharedLocalizer["Save"]</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@SharedLocalizer["Cancel"]</NavLink> | ||||
|  | ||||
| @code { | ||||
|  | ||||
| @ -22,48 +22,48 @@ else | ||||
|         { | ||||
|             <table class="table table-borderless"> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@SharedLocalizer["Username"] </label> | ||||
|                     <td width="30%"> | ||||
|                         <Label For="username" HelpText="The unique username for a user. Note that this field can not be modified." ResourceKey="Username"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input class="form-control" @bind="@username" readonly /> | ||||
|                         <input id="username" class="form-control" @bind="@username" readonly /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@SharedLocalizer["Password"] </label> | ||||
|                         <Label For="password" HelpText="The user's password. Please choose a password which is sufficiently secure." ResourceKey="Password"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input type="password" class="form-control" @bind="@password" /> | ||||
|                         <input id="password" type="password" class="form-control" @bind="@password" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@Localizer["Password.Confirm"] </label> | ||||
|                         <Label For="confirm" HelpText="Please enter the password again to confirm it matches with the value above" ResourceKey="Confirm"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input type="password" class="form-control" @bind="@confirm" /> | ||||
|                         <input id="confirm" type="password" class="form-control" @bind="@confirm" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@SharedLocalizer["Email"] </label> | ||||
|                         <Label For="email" HelpText="The email address where the user will receive notifications" ResourceKey="Email"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input class="form-control" @bind="@email" /> | ||||
|                         <input id="email" class="form-control" @bind="@email" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@SharedLocalizer["FullName"] </label> | ||||
|                         <Label For="displayname" HelpText="The full name of the user" ResourceKey="DisplayName"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input class="form-control" @bind="@displayname" /> | ||||
|                         <input id="displayname" class="form-control" @bind="@displayname" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@Localizer["Photo"] </label> | ||||
|                         <Label For="@photofileid.ToString()" HelpText="A photo of the user" ResourceKey="Photo"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <FileManager FileId="@photofileid" @ref="filemanager" /> | ||||
| @ -71,10 +71,10 @@ else | ||||
|                 </tr> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <label class="control-label">@Localizer["Confirm.Delete"] </label> | ||||
|                         <Label For="isdeleted" HelpText="Indicate if the user is active" ResourceKey="IsDeleted"></Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select class="form-control" @bind="@isdeleted"> | ||||
|                         <select id="isdeleted" class="form-select" @bind="@isdeleted"> | ||||
|                             <option value="True">@SharedLocalizer["Yes"]</option> | ||||
|                             <option value="False">@SharedLocalizer["No"]</option> | ||||
|                         </select> | ||||
| @ -100,7 +100,7 @@ else | ||||
|                         category = p.Category; | ||||
|                     } | ||||
|                     <tr> | ||||
|                         <td> | ||||
|                         <td width="30%"> | ||||
|                             <Label For="@p.Name" HelpText="@p.Description">@p.Title</Label> | ||||
|                         </td> | ||||
|                         <td> | ||||
| @ -120,7 +120,7 @@ else | ||||
|     </TabPanel> | ||||
| </TabStrip> | ||||
|  | ||||
| <button type="button" class="btn btn-primary" @onclick="SaveUser">@SharedLocalizer["Save"]</button> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveUser">@SharedLocalizer["Save"]</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@SharedLocalizer["Cancel"]</NavLink> | ||||
| <br /> | ||||
| <br /> | ||||
|  | ||||
| @ -14,16 +14,19 @@ | ||||
| } | ||||
| else | ||||
| { | ||||
|     <div class="form-row"> | ||||
|         <div class="col"> | ||||
|             <ActionLink Action="Add" Text="Add User" ResourceKey="AddUser" /> | ||||
|         </div> | ||||
|         <div class="col"> | ||||
|             <div class="input-group flex-nowrap"> | ||||
|                 <input class="form-control" @bind="@_search" /> <button class="btn btn-secondary" @onclick="OnSearch">@SharedLocalizer["Search"]</button> | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|                 <div><ActionLink Action="Add" Text="Add User" ResourceKey="AddUser" /></div> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <input class="form-control" @bind="@_search" /> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <button class="btn btn-secondary" @onclick="OnSearch">@SharedLocalizer["Search"]</button> | ||||
|             </td> | ||||
|         </tr> | ||||
|     </table> | ||||
|  | ||||
|     <Pager Items="@userroles"> | ||||
|         <Header> | ||||
|  | ||||
| @ -14,7 +14,7 @@ else | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|             <td width="30%"> | ||||
|                 <Label For="user" HelpText="The user you are assigning roles to" ResourceKey="User">User: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
| @ -26,7 +26,7 @@ else | ||||
|                 <Label For="role" HelpText="Select a role" ResourceKey="Role">Role: </Label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select id="role" class="form-control" @bind="@roleid"> | ||||
|                 <select id="role" class="form-select" @bind="@roleid"> | ||||
|                     <option value="-1"><@Localizer["Role.Select"]></option> | ||||
|                     @foreach (Role role in roles) | ||||
|                     { | ||||
|  | ||||
| @ -9,7 +9,7 @@ | ||||
|                 <div class="modal-content"> | ||||
|                     <div class="modal-header"> | ||||
|                         <h5 class="modal-title">@Header</h5> | ||||
|                         <button type="button" class="close" @onclick="DisplayModal" aria-label="Close">×</button> | ||||
|                         <button type="button" class="btn-close" aria-label="Close" @onclick="DisplayModal"></button> | ||||
|                     </div> | ||||
|                     <div class="modal-body"> | ||||
|                         <p>@Message</p> | ||||
|  | ||||
| @ -13,7 +13,7 @@ | ||||
|                 @if (ShowFolders || FolderId <= 0) | ||||
|                 { | ||||
|                     <div> | ||||
|                         <select class="form-control" value="@FolderId" @onchange="(e => FolderChanged(e))"> | ||||
|                         <select class="form-select" value="@FolderId" @onchange="(e => FolderChanged(e))"> | ||||
|                             @if (string.IsNullOrEmpty(Folder)) | ||||
|                             { | ||||
|                                 <option value="-1"><@Localizer["Folder.Select"]></option> | ||||
| @ -28,7 +28,7 @@ | ||||
|                 @if (ShowFiles) | ||||
|                 { | ||||
|                     <div> | ||||
|                         <select class="form-control" value="@FileId" @onchange="(e => FileChanged(e))"> | ||||
|                         <select class="form-select" value="@FileId" @onchange="(e => FileChanged(e))"> | ||||
|                             <option value="-1"><@Localizer["File.Select"]></option> | ||||
|                             @foreach (File file in _files) | ||||
|                             { | ||||
| @ -49,7 +49,7 @@ | ||||
|                             <input type="file" id="@_fileinputid" name="file" accept="@_filter" /> | ||||
|                         } | ||||
|                         <span id="@_progressinfoid"></span><progress id="@_progressbarid" style="width: 150px; visibility: hidden;"></progress> | ||||
|                         <span class="float-right"> | ||||
|                         <span class="float-end"> | ||||
|                             <button type="button" class="btn btn-success" @onclick="UploadFile">@SharedLocalizer["Upload"]</button> | ||||
|                             @if (ShowFiles && GetFileId() != -1) | ||||
|                             { | ||||
|  | ||||
| @ -30,6 +30,11 @@ else | ||||
|     { | ||||
|         base.OnParametersSet(); | ||||
|  | ||||
|         if (string.IsNullOrEmpty(Class)) | ||||
|         { | ||||
|             Class = "form-label"; | ||||
|         } | ||||
|  | ||||
|         _openLabel = "<label"; | ||||
|         if (!string.IsNullOrEmpty(For)) | ||||
|         { | ||||
|  | ||||
| @ -10,9 +10,7 @@ | ||||
|         { | ||||
|             @((MarkupString)"  ")<NavLink href="@NavigateUrl("admin/log")">View Details</NavLink> | ||||
|         } | ||||
|         <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||||
|             <span aria-hidden="true">×</span> | ||||
|         </button> | ||||
|         <button type="button" class="btn-close" aria-label="Close" @onclick="DismissModal"></button> | ||||
|     </div> | ||||
|     <br /> | ||||
| } | ||||
| @ -57,4 +55,10 @@ | ||||
|  | ||||
|         return classname; | ||||
|     } | ||||
|  | ||||
|     private void DismissModal() | ||||
|     { | ||||
|         _message = ""; | ||||
|         StateHasChanged(); | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -8,15 +8,15 @@ | ||||
|         <div class="mx-auto text-center"> | ||||
|             @if (_endPage > 1) | ||||
|             { | ||||
|                 <button class="btn btn-secondary mr-1" @onclick=@(async () => UpdateList(1))><span class="oi oi-media-step-backward" title="first" aria-hidden="true"></span></button> | ||||
|                 <button class="btn btn-secondary m-1" @onclick=@(async () => UpdateList(1))><span class="oi oi-media-step-backward" title="first" aria-hidden="true"></span></button> | ||||
|             } | ||||
|             @if (_page > _maxPages) | ||||
|             { | ||||
|                 <button class="btn btn-secondary mr-1" @onclick=@(async () => SetPagerSize("back"))><span class="oi oi-media-skip-backward" title="back" aria-hidden="true"></span></button> | ||||
|                 <button class="btn btn-secondary m-1" @onclick=@(async () => SetPagerSize("back"))><span class="oi oi-media-skip-backward" title="back" aria-hidden="true"></span></button> | ||||
|             } | ||||
|             @if (_endPage > 1) | ||||
|             { | ||||
|                 <button class="btn btn-secondary mr-1" @onclick=@(async () => NavigateToPage("previous"))><span class="oi oi-chevron-left" title="previous" aria-hidden="true"></span></button> | ||||
|                 <button class="btn btn-secondary m-1" @onclick=@(async () => NavigateToPage("previous"))><span class="oi oi-chevron-left" title="previous" aria-hidden="true"></span></button> | ||||
|                 @for (int i = _startPage; i <= _endPage; i++) | ||||
|                 { | ||||
|                     var pager = i; | ||||
| @ -24,15 +24,15 @@ | ||||
|                         @pager | ||||
|                     </button> | ||||
|                 } | ||||
|                 <button class="btn btn-secondary mr-1" @onclick=@(async () => NavigateToPage("next"))><span class="oi oi-chevron-right" title="next" aria-hidden="true"></span></button> | ||||
|                 <button class="btn btn-secondary m-1" @onclick=@(async () => NavigateToPage("next"))><span class="oi oi-chevron-right" title="next" aria-hidden="true"></span></button> | ||||
|             } | ||||
|             @if (_endPage < _pages) | ||||
|             { | ||||
|                 <button class="btn btn-secondary mr-1" @onclick=@(async () => SetPagerSize("forward"))><span class="oi oi-media-skip-forward" title="forward" aria-hidden="true"></span></button> | ||||
|                 <button class="btn btn-secondary m-1" @onclick=@(async () => SetPagerSize("forward"))><span class="oi oi-media-skip-forward" title="forward" aria-hidden="true"></span></button> | ||||
|             } | ||||
|             @if (_endPage > 1) | ||||
|             { | ||||
|                 <button class="btn btn-secondary mr-1" @onclick=@(async () => UpdateList(_pages))><span class="oi oi-media-step-forward" title="last" aria-hidden="true"></span></button> | ||||
|                 <button class="btn btn-secondary m-1" @onclick=@(async () => UpdateList(_pages))><span class="oi oi-media-step-forward" title="last" aria-hidden="true"></span></button> | ||||
|             } | ||||
|             @if (_endPage > 1) | ||||
|             { | ||||
|  | ||||
| @ -8,7 +8,7 @@ | ||||
| @if (_permissions != null) | ||||
| { | ||||
|     <br /> | ||||
|     <table class="table" style="width: 50%; min-width: 250px;"> | ||||
|     <table class="table table-borderless" style="width: 50%; min-width: 250px;"> | ||||
|         <tbody> | ||||
|             <tr> | ||||
|                 <th scope="col">@Localizer["Role"]</th> | ||||
| @ -34,7 +34,7 @@ | ||||
|     </table> | ||||
|     @if (_users.Count != 0) | ||||
|     { | ||||
|         <table class="table" style="width: 50%; min-width: 250px;"> | ||||
|         <table class="table table-borderless" style="width: 50%; min-width: 250px;"> | ||||
|             <thead> | ||||
|                 <tr> | ||||
|                     <th scope="col">@Localizer["User"]</th> | ||||
| @ -62,7 +62,7 @@ | ||||
|             </tbody> | ||||
|         </table> | ||||
|     } | ||||
|     <table class="table" style="width: 50%; min-width: 250px;"> | ||||
|     <table class="table table-borderless" style="width: 50%; min-width: 250px;"> | ||||
|         <tbody> | ||||
|             <tr> | ||||
|                 <td class="input-group"> | ||||
|  | ||||
| @ -14,7 +14,7 @@ | ||||
|                         <ModuleMessage Message="@_message" Type="MessageType.Warning"></ModuleMessage> | ||||
|                         <br /> | ||||
|                     } | ||||
|                     <div class="row justify-content-center" style="margin-bottom: 20px;"> | ||||
|                     <div class="d-flex justify-content-center mb-2"> | ||||
|                         <button type="button" class="btn btn-secondary" @onclick="RefreshRichText">@Localizer["SynchronizeContent"]</button>   | ||||
|                         <button type="button" class="btn btn-primary" @onclick="InsertImage">@Localizer["InsertImage"]</button> | ||||
|                         @if (_filemanagervisible) | ||||
| @ -66,7 +66,7 @@ | ||||
|                 </div> | ||||
|             </TabPanel> | ||||
|             <TabPanel Name="Raw" Heading="Raw HTML Editor" ResourceKey="HtmlEditor"> | ||||
|                 <div class="row justify-content-center" style="margin-bottom: 20px;"> | ||||
|                 <div class="d-flex justify-content-center mb-2"> | ||||
|                     <button type="button" class="btn btn-secondary" @onclick="RefreshRawHtml">@Localizer["SynchronizeContent"]</button> | ||||
|                 </div> | ||||
|                 @if (ReadOnly) | ||||
|  | ||||
| @ -1,14 +1,14 @@ | ||||
| @namespace Oqtane.Modules.Controls | ||||
| @inherits LocalizableComponent | ||||
|  | ||||
| <div class="d-flex"> | ||||
| <div class="d-flex mt-2"> | ||||
|     <div> | ||||
|         <a data-toggle="collapse" class="app-link-unstyled" href="#@Name" aria-expanded="@_expanded" aria-controls="@Name" @onclick:preventDefault="true"> | ||||
|         <a data-bs-toggle="collapse" class="app-link-unstyled" href="#@Name" aria-expanded="@_expanded" aria-controls="@Name" @onclick:preventDefault="true"> | ||||
|             <h5>@_heading</h5> | ||||
|         </a> | ||||
|     </div> | ||||
|     <div class="ml-auto"> | ||||
|         <a data-toggle="collapse" class="app-link-unstyled float-right" href="#@Name" aria-expanded="@_expanded" aria-controls="@Name" @onclick:preventDefault="true"> | ||||
|     <div class="ms-auto"> | ||||
|         <a data-bs-toggle="collapse" class="app-link-unstyled float-right" href="#@Name" aria-expanded="@_expanded" aria-controls="@Name" @onclick:preventDefault="true"> | ||||
|             <i class="oi oi-chevron-bottom"></i>  | ||||
|         </a> | ||||
|     </div> | ||||
|  | ||||
| @ -10,13 +10,13 @@ | ||||
|                     <li class="nav-item" @key="tabPanel.Name"> | ||||
|                         @if (tabPanel.Name == ActiveTab) | ||||
|                         { | ||||
|                             <a class="nav-link active" data-toggle="tab" href="#@tabPanel.Name" role="tab" @onclick:preventDefault="true"> | ||||
|                             <a class="nav-link active" data-bs-toggle="tab" href="#@tabPanel.Name" role="tab" @onclick:preventDefault="true"> | ||||
|                                 @tabPanel.DisplayHeading() | ||||
|                             </a> | ||||
|                         } | ||||
|                         else | ||||
|                         { | ||||
|                             <a class="nav-link" data-toggle="tab" href="#@tabPanel.Name" role="tab" @onclick:preventDefault="true"> | ||||
|                             <a class="nav-link" data-bs-toggle="tab" href="#@tabPanel.Name" role="tab" @onclick:preventDefault="true"> | ||||
|                                 @tabPanel.DisplayHeading() | ||||
|                             </a> | ||||
|                         } | ||||
|  | ||||
| @ -7,11 +7,11 @@ | ||||
|  | ||||
| <table class="table table-borderless"> | ||||
|     <tr> | ||||
|         <td> | ||||
|         <td width="30%"> | ||||
|             <Label For="files" ResourceKey="Allow File Management" HelpText="Specify If Editors Can Upload and Select Files">Allow File Management: </Label> | ||||
|         </td> | ||||
|         <td> | ||||
|             <select id="files" class="form-control" @bind="@_allowfilemanagement"> | ||||
|             <select id="files" class="form-select" @bind="@_allowfilemanagement"> | ||||
|                 <option value="true">@SharedLocalizer["Yes"]</option> | ||||
|                 <option value="false">@SharedLocalizer["No"]</option> | ||||
|             </select> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker