public static HtmlString CtrlInput(this HtmlHelper html, string id, string type, string label, string placeHolder = "")
        {
            var ctrl = new CtrlInputModel
            {
                Id          = id,
                Type        = type,
                Label       = label,
                PlaceHolder = placeHolder
            };

            return(new HtmlString(ctrl.GetHtml()));
        }
Beispiel #2
0
        public static HtmlString CtrlInput(this HtmlHelper html, string id, string type, string label, string placeHolder = "", string columnDataName = "", string visibility = "")
        {
            var ctrl = new CtrlInputModel
            {
                Id             = id,
                Type           = type,
                Label          = label,
                PlaceHolder    = placeHolder,
                ColumnDataName = columnDataName,
                Visibility     = visibility
            };

            return(new HtmlString(ctrl.GetHtml()));
        }
Beispiel #3
0
        public static HtmlString CtrlInput(this HtmlHelper html, string id, string type, string label, string placeHolder = "", string columnDataName = "", bool onlyread = false)
        {
            var ctrl = new CtrlInputModel
            {
                Id             = id,
                Type           = type,
                Label          = label,
                PlaceHolder    = placeHolder,
                ColumnDataName = columnDataName,
                Readyonly      = onlyread ? "readonly" : "",
                Class          = onlyread ? "form-control-plaintext" : "form-control"
            };

            return(new HtmlString(ctrl.GetHtml()));
        }
Beispiel #4
0
        public static HtmlString CtrlInput(this HtmlHelper html, string id, string type, string label, string placeHolder = "", bool required = false, string mensajeValidacion = "")
        {
            var ctrl = new CtrlInputModel
            {
                Id                = id,
                Type              = type,
                Label             = label,
                PlaceHolder       = placeHolder,
                Required          = required ? "required" : "",
                MensajeValidacion = mensajeValidacion,
                CampoRequerido    = required ? "*" : ""
            };

            return(new HtmlString(ctrl.GetHtml()));
        }
Beispiel #5
0
        public static HtmlString CtrlInput(this HtmlHelper html, string id, string type, string label, string placeHolder = "", string columnDataName = "", string ariaLabel = "", string disabled = "")
        {
            var ctrl = new CtrlInputModel
            {
                Id             = id,
                Type           = type,
                Label          = label,
                PlaceHolder    = placeHolder,
                ColumnDataName = columnDataName,
                AriaLabel      = ariaLabel,
                Disabled       = disabled
            };

            return(new HtmlString(ctrl.GetHtml()));
        }
Beispiel #6
0
        public static HtmlString CtrlInput(this HtmlHelper html, string id, string type, string clase, string label, string claseLabel = "", string placeHolder = "", bool required = false, string columnDataName = "", bool disabled = false)
        {
            var ctrl = new CtrlInputModel
            {
                Id             = id,
                Type           = type,
                Label          = label,
                PlaceHolder    = placeHolder,
                ColumnDataName = columnDataName,
                Clase          = clase,
                ClaseLabel     = claseLabel,
                Required       = required ? "required" : "",
                Disabled       = disabled ? "disabled" : ""
            };

            return(new HtmlString(ctrl.GetHtml()));
        }
        public static HtmlString CtrlInput(this HtmlHelper html, string id, string label, string type = "text", string placeholder = "", string value = "", bool required = false, bool disabled = false)
        {
            var ctrl = new CtrlInputModel(id, label, type, placeholder, value, required, disabled);

            return(new HtmlString(ctrl.GetHtml()));
        }