diff --git a/Oqtane.Client/Modules/Admin/Pages/Add.razor b/Oqtane.Client/Modules/Admin/Pages/Add.razor
index 7ceb31cc..8c07b2bc 100644
--- a/Oqtane.Client/Modules/Admin/Pages/Add.razor
+++ b/Oqtane.Client/Modules/Admin/Pages/Add.razor
@@ -8,6 +8,8 @@
@inject IPageService PageService
@inject IThemeService ThemeService
+@message
+
}
@code {
diff --git a/Oqtane.Client/Modules/Controls/ActionLink.razor b/Oqtane.Client/Modules/Controls/ActionLink.razor
index 72bd6f26..3dc6ae12 100644
--- a/Oqtane.Client/Modules/Controls/ActionLink.razor
+++ b/Oqtane.Client/Modules/Controls/ActionLink.razor
@@ -7,7 +7,7 @@
@if (authorized)
{
- @text
+ @text
}
@code {
@@ -21,12 +21,16 @@
public string Parameters { get; set; } // optional
[Parameter]
- public string ButtonClass { get; set; } // optional
+ public string Class { get; set; } // optional
+
+ [Parameter]
+ public string Style { get; set; } // optional
string text = "";
string url = "";
string parameters = "";
- string buttonClass = "btn btn-primary";
+ string classname = "btn btn-primary";
+ string style = "";
bool authorized = false;
protected override void OnInitialized()
@@ -42,9 +46,14 @@
parameters = Parameters;
}
- if (!string.IsNullOrEmpty(ButtonClass))
+ if (!string.IsNullOrEmpty(Class))
{
- buttonClass = "btn " + ButtonClass;
+ classname = Class;
+ }
+
+ if (!string.IsNullOrEmpty(Style))
+ {
+ style = Style;
}
url = EditUrl(Action, parameters);
diff --git a/Oqtane.Client/Modules/Controls/AuditInfo.razor b/Oqtane.Client/Modules/Controls/AuditInfo.razor
new file mode 100644
index 00000000..d4358070
--- /dev/null
+++ b/Oqtane.Client/Modules/Controls/AuditInfo.razor
@@ -0,0 +1,55 @@
+@using Oqtane.Modules
+@inherits ModuleBase
+
+@((MarkupString)@text)
+
+@code {
+ [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 Style { get; set; }
+
+ string text = "";
+ string style = "";
+
+ protected override void OnInitialized()
+ {
+ if (!String.IsNullOrEmpty(CreatedBy) || CreatedOn != null)
+ {
+ text += "Created ";
+ if (!String.IsNullOrEmpty(CreatedBy))
+ {
+ text += " by " + CreatedBy + "";
+ }
+ if (CreatedOn != null)
+ {
+ text += " on " + CreatedOn.ToString("MMM dd yyyy HH:mm:ss") + "";
+ }
+ text += "
";
+ }
+
+ if (!String.IsNullOrEmpty(ModifiedBy) || ModifiedOn != null)
+ {
+ text += "Last modified ";
+ if (!String.IsNullOrEmpty(ModifiedBy))
+ {
+ text += " by " + ModifiedBy + "";
+ }
+ if (ModifiedOn != null)
+ {
+ text += " on " + ModifiedOn.ToString("MMM dd yyyy HH:mm:ss") + "";
+ }
+ text += "
";
+ }
+ }
+}