Skip to content

Commit

Permalink
日期选择关闭自动完成 autocomplete="off"
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Feb 11, 2019
1 parent 6c099e0 commit a1a8e23
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions NewLife.Cube/Views/Shared/_DateRange.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<label for="dtStart" class="control-label">时间:</label>
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="dtStart" id="dtStart" value="@p["dtStart"]" dateformat="@formatStr" class="form-control form_datetime" />
<input name="dtStart" id="dtStart" value="@p["dtStart"]" dateformat="@formatStr" class="form-control form_datetime" autocomplete="off" />
</div>
</div>
<div class="form-group">
<label for="dtEnd" class="control-label">至</label>
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="dtEnd" id="dtEnd" value="@p["dtEnd"]" dateformat="@formatStr" class="form-control form_datetime" />
<input name="dtEnd" id="dtEnd" value="@p["dtEnd"]" dateformat="@formatStr" class="form-control form_datetime" autocomplete="off" />
</div>
</div>
16 changes: 10 additions & 6 deletions NewLife.Cube/Views/Shared/_DateRange.generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public override void Execute()

WriteLiteral(" class=\"form-control form_datetime\"");

WriteLiteral(" autocomplete=\"off\"");

WriteLiteral(" />\r\n </div>\r\n</div>\r\n<div");

WriteLiteral(" class=\"form-group\"");
Expand Down Expand Up @@ -129,28 +131,30 @@ public override void Execute()

WriteLiteral(" id=\"dtEnd\"");

WriteAttribute("value", Tuple.Create(" value=\"", 680), Tuple.Create("\"", 699)
WriteAttribute("value", Tuple.Create(" value=\"", 699), Tuple.Create("\"", 718)

#line 16 "..\..\Views\Shared\_DateRange.cshtml"
, Tuple.Create(Tuple.Create("", 688), Tuple.Create<System.Object, System.Int32>(p["dtEnd"]
, Tuple.Create(Tuple.Create("", 707), Tuple.Create<System.Object, System.Int32>(p["dtEnd"]

#line default
#line hidden
, 688), false)
, 707), false)
);

WriteAttribute("dateformat", Tuple.Create(" dateformat=\"", 700), Tuple.Create("\"", 723)
WriteAttribute("dateformat", Tuple.Create(" dateformat=\"", 719), Tuple.Create("\"", 742)

#line 16 "..\..\Views\Shared\_DateRange.cshtml"
, Tuple.Create(Tuple.Create("", 713), Tuple.Create<System.Object, System.Int32>(formatStr
, Tuple.Create(Tuple.Create("", 732), Tuple.Create<System.Object, System.Int32>(formatStr

#line default
#line hidden
, 713), false)
, 732), false)
);

WriteLiteral(" class=\"form-control form_datetime\"");

WriteLiteral(" autocomplete=\"off\"");

WriteLiteral(" />\r\n </div>\r\n</div>");

}
Expand Down
4 changes: 2 additions & 2 deletions NewLife.CubeNC/Views/Shared/_DateRange.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<label for="dtStart" class="control-label">时间:</label>
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="dtStart" id="dtStart" value="@p["dtStart"]" dateformat="@formatStr" class="form-control form_datetime" />
<input name="dtStart" id="dtStart" value="@p["dtStart"]" dateformat="@formatStr" class="form-control form_datetime" autocomplete="off" />
</div>
</div>
<div class="form-group">
<label for="dtEnd" class="control-label">至</label>
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="dtEnd" id="dtEnd" value="@p["dtEnd"]" dateformat="@formatStr" class="form-control form_datetime" />
<input name="dtEnd" id="dtEnd" value="@p["dtEnd"]" dateformat="@formatStr" class="form-control form_datetime" autocomplete="off" />
</div>
</div>

0 comments on commit a1a8e23

Please sign in to comment.