+
@if (!string.IsNullOrEmpty(p.Options))
{
@if (!string.IsNullOrEmpty(p.Autocomplete))
@@ -149,22 +149,26 @@
{
@if (p.IsRequired)
{
- ProfileChanged(e, p.Name))" autocomplete="@p.Autocomplete" />
+ ProfileChanged(e, p.Name))" autocomplete="@p.Autocomplete"
+ @attributes="@(p.MaxLength > 0 ? new Dictionary {{"maxlength", p.MaxLength }} : null)" />
}
else
{
- ProfileChanged(e, p.Name))" autocomplete="@p.Autocomplete" />
+ ProfileChanged(e, p.Name))" autocomplete="@p.Autocomplete"
+ @attributes="@(p.MaxLength > 0 ? new Dictionary {{"maxlength", p.MaxLength }} : null)" />
}
}
else
{
@if (p.IsRequired)
{
- ProfileChanged(e, p.Name))" />
+ ProfileChanged(e, p.Name))"
+ @attributes="@(p.MaxLength > 0 ? new Dictionary {{"maxlength", p.MaxLength }} : null)" />
}
else
{
- ProfileChanged(e, p.Name))" />
+ ProfileChanged(e, p.Name))"
+ @attributes="@(p.MaxLength > 0 ? new Dictionary {{"maxlength", p.MaxLength }} : null)" />
}
}
}
@@ -174,22 +178,26 @@
{
@if (p.IsRequired)
{
-
+
}
else
{
-
+
}
}
else
{
@if (p.IsRequired)
{
-
+
}
else
{
-
+
}
}
}
diff --git a/Oqtane.Client/Modules/Admin/Users/Add.razor b/Oqtane.Client/Modules/Admin/Users/Add.razor
index 537a3bac..10cf19e8 100644
--- a/Oqtane.Client/Modules/Admin/Users/Add.razor
+++ b/Oqtane.Client/Modules/Admin/Users/Add.razor
@@ -81,11 +81,11 @@
{
@if (p.Rows == 1)
{
- ProfileChanged(e, p.Name))" />
+ ProfileChanged(e, p.Name))" @attributes="@(p.MaxLength > 0 ? new Dictionary {{"maxlength", p.MaxLength }} : null)" />
}
else
{
-
+
}
}
diff --git a/Oqtane.Client/Modules/Admin/Users/Edit.razor b/Oqtane.Client/Modules/Admin/Users/Edit.razor
index cf5ac069..0fe4af2a 100644
--- a/Oqtane.Client/Modules/Admin/Users/Edit.razor
+++ b/Oqtane.Client/Modules/Admin/Users/Edit.razor
@@ -110,11 +110,11 @@
{
@if (p.Rows == 1)
{
-
ProfileChanged(e, p.Name))" />
+
ProfileChanged(e, p.Name))" @attributes="@(p.MaxLength > 0 ? new Dictionary
{{"maxlength", p.MaxLength }} : null)" />
}
else
{
-
+
}
}