
* Refactoring * Refactoring * Check for a valid email. * Fixed missing character. * Moved logic to the Utilities class. * Rename template .sql file * Modified null and empty string check. * Check for a valid email. * Fixed missing character. * Moved logic to the Utilities class. * Added Favicon support, Progressive Web App support, page title and url support, and private/public user registration options * Refactoring * Refactoring * Check for a valid email. * Moved logic to the Utilities class. Co-authored-by: Aubrey <aubrey.b@treskcow.tech> Co-authored-by: MIchael Atwood <matwood@dragonmastery.com> Co-authored-by: Shaun Walker <shaun.walker@siliqon.com>
92 lines
2.3 KiB
Plaintext
92 lines
2.3 KiB
Plaintext
@namespace Oqtane.Modules.Controls
|
|
@inherits ModuleBase
|
|
|
|
@if (_text != string.Empty)
|
|
{
|
|
@((MarkupString)_text)
|
|
}
|
|
|
|
@code {
|
|
|
|
private string _text = string.Empty;
|
|
|
|
[Parameter]
|
|
public string CreatedBy { get; set; }
|
|
|
|
[Parameter]
|
|
public DateTime CreatedOn { get; set; }
|
|
|
|
[Parameter]
|
|
public string ModifiedBy { get; set; }
|
|
|
|
[Parameter]
|
|
public DateTime ModifiedOn { get; set; }
|
|
|
|
[Parameter]
|
|
public string DeletedBy { get; set; }
|
|
|
|
[Parameter]
|
|
public DateTime? DeletedOn { get; set; }
|
|
|
|
[Parameter]
|
|
public bool IsDeleted { get; set; }
|
|
|
|
[Parameter]
|
|
public string Style { get; set; }
|
|
|
|
protected override void OnParametersSet()
|
|
{
|
|
_text = string.Empty;
|
|
if (!String.IsNullOrEmpty(CreatedBy) || CreatedOn != null)
|
|
{
|
|
_text += "<p style=\string.Empty + Style + "\">Created ";
|
|
|
|
if (!String.IsNullOrEmpty(CreatedBy))
|
|
{
|
|
_text += " by <b>" + CreatedBy + "</b>";
|
|
}
|
|
|
|
if (CreatedOn != null)
|
|
{
|
|
_text += " on <b>" + CreatedOn.ToString("MMM dd yyyy HH:mm:ss") + "</b>";
|
|
}
|
|
|
|
_text += "</p>";
|
|
}
|
|
|
|
if (!String.IsNullOrEmpty(ModifiedBy) || ModifiedOn != null)
|
|
{
|
|
_text += "<p style=\string.Empty + Style + "\">Last modified ";
|
|
|
|
if (!String.IsNullOrEmpty(ModifiedBy))
|
|
{
|
|
_text += " by <b>" + ModifiedBy + "</b>";
|
|
}
|
|
|
|
if (ModifiedOn != null)
|
|
{
|
|
_text += " on <b>" + ModifiedOn.ToString("MMM dd yyyy HH:mm:ss") + "</b>";
|
|
}
|
|
|
|
_text += "</p>";
|
|
}
|
|
|
|
if (!String.IsNullOrEmpty(DeletedBy) || DeletedOn.HasValue)
|
|
{
|
|
_text += "<p style=\string.Empty + Style + "\">Deleted ";
|
|
|
|
if (!String.IsNullOrEmpty(DeletedBy))
|
|
{
|
|
_text += " by <b>" + DeletedBy + "</b>";
|
|
}
|
|
|
|
if (DeletedOn != null)
|
|
{
|
|
_text += " on <b>" + DeletedOn.Value.ToString("MMM dd yyyy HH:mm:ss") + "</b>";
|
|
}
|
|
|
|
_text += "</p>";
|
|
}
|
|
}
|
|
}
|