From 54b21ebae736dcf00d0df8e128ea579c19aa4462 Mon Sep 17 00:00:00 2001 From: Stanley Goldman Date: Wed, 30 Jul 2014 18:09:32 -0700 Subject: [PATCH] #20830: Adding a Password shape Work Item: 20830 --- .../Modules/Orchard.Forms/Shapes/EditorShapes.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Orchard.Web/Modules/Orchard.Forms/Shapes/EditorShapes.cs b/src/Orchard.Web/Modules/Orchard.Forms/Shapes/EditorShapes.cs index 25266db5b..3557f48c2 100644 --- a/src/Orchard.Web/Modules/Orchard.Forms/Shapes/EditorShapes.cs +++ b/src/Orchard.Web/Modules/Orchard.Forms/Shapes/EditorShapes.cs @@ -224,6 +224,12 @@ namespace Orchard.Forms.Shapes { return DisplayShapeAsInput(Display, Shape, "text"); } + [Shape] + public IHtmlString Password(dynamic Display, dynamic Shape) { + Shape.Classes.Add("password"); + return DisplayShapeAsInput(Display, Shape, "password"); + } + [Shape] public void Textarea( TextWriter Output,