Password boxes will now keep value from Database instead of wiping out saved values when saved with empty fields.

This commit is contained in:
Mark McDowall 2012-01-23 10:57:15 -08:00
parent 8267be0a48
commit 71c5653b91
5 changed files with 5 additions and 5 deletions

View File

@ -29,5 +29,5 @@
<label class="labelClass">@Html.LabelFor(m => m.GrowlPassword)
<span class="small">@Html.DescriptionFor(m => m.GrowlPassword)</span>
</label>
@Html.PasswordFor(m => m.GrowlPassword, new { @class = "inputClass" })
@Html.TextBoxFor(m => m.GrowlPassword, new { @class = "inputClass", type = "password" })
</div>

View File

@ -81,7 +81,7 @@
<label class="labelClass">@Html.LabelFor(m => m.NewzbinPassword)
<span class="small">@Html.DescriptionFor(m => m.NewzbinPassword)</span>
</label>
@Html.PasswordFor(m => m.NewzbinPassword, new { @class = "inputClass" })
@Html.TextBoxFor(m => m.NewzbinPassword, new { @class = "inputClass", type = "password" })
</div>
<h3>
<a href="#">Newznab</a></h3>

View File

@ -37,7 +37,7 @@
<label class="labelClass">@Html.LabelFor(m => m.SabPassword)
<span class="small">@Html.DescriptionFor(m => m.SabPassword)</span>
</label>
@Html.PasswordFor(m => m.SabPassword, new { @class = "inputClass" })
@Html.TextBoxFor(m => m.SabPassword, new { @class = "inputClass", type = "password" })
<label class="labelClass">@Html.LabelFor(m => m.SabTvCategory)
<span class="small">@Html.DescriptionFor(m => m.SabTvCategory)</span>

View File

@ -44,7 +44,7 @@
<label class="labelClass">@Html.LabelFor(m => m.SmtpPassword)
<span class="small">@Html.DescriptionFor(m => m.SmtpPassword)</span>
</label>
@Html.PasswordFor(m => m.SmtpPassword, new { @class = "inputClass" })
@Html.TextBoxFor(m => m.SmtpPassword, new { @class = "inputClass", type = "password" })
<label class="labelClass">@Html.LabelFor(m => m.SmtpFromAddress)
<span class="small">@Html.DescriptionFor(m => m.SmtpFromAddress)</span>

View File

@ -44,5 +44,5 @@
<label class="labelClass">@Html.LabelFor(m => m.XbmcPassword)
<span class="small">@Html.DescriptionFor(m => m.XbmcPassword)</span>
</label>
@Html.PasswordFor(m => m.XbmcPassword, new { @class = "inputClass" })
@Html.TextBoxFor(m => m.XbmcPassword, new { @class = "inputClass", type = "password" })
</div>