mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 09:42:29 +08:00
Orchard.Forms: Adding Numberbox (input type="number") shape to EditorShapes
This commit is contained in:
@@ -224,6 +224,12 @@ namespace Orchard.Forms.Shapes {
|
||||
return DisplayShapeAsInput(Display, Shape, "text");
|
||||
}
|
||||
|
||||
[Shape]
|
||||
public IHtmlString Numberbox(dynamic Display, dynamic Shape) {
|
||||
Shape.Classes.Add("number");
|
||||
return DisplayShapeAsInput(Display, Shape, "number");
|
||||
}
|
||||
|
||||
[Shape]
|
||||
public IHtmlString Password(dynamic Display, dynamic Shape) {
|
||||
Shape.Classes.Add("password");
|
||||
|
||||
Reference in New Issue
Block a user