mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Orchard.Forms: Adding Numberbox (input type="number") shape to EditorShapes
This commit is contained in:
parent
1d22f27bf0
commit
e527272013
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user