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

pull/2/head
Mark McDowall 13 years ago
parent 8267be0a48
commit 71c5653b91

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

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

@ -37,7 +37,7 @@
<label class="labelClass">@Html.LabelFor(m => m.SabPassword) <label class="labelClass">@Html.LabelFor(m => m.SabPassword)
<span class="small">@Html.DescriptionFor(m => m.SabPassword)</span> <span class="small">@Html.DescriptionFor(m => m.SabPassword)</span>
</label> </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) <label class="labelClass">@Html.LabelFor(m => m.SabTvCategory)
<span class="small">@Html.DescriptionFor(m => m.SabTvCategory)</span> <span class="small">@Html.DescriptionFor(m => m.SabTvCategory)</span>

@ -44,7 +44,7 @@
<label class="labelClass">@Html.LabelFor(m => m.SmtpPassword) <label class="labelClass">@Html.LabelFor(m => m.SmtpPassword)
<span class="small">@Html.DescriptionFor(m => m.SmtpPassword)</span> <span class="small">@Html.DescriptionFor(m => m.SmtpPassword)</span>
</label> </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) <label class="labelClass">@Html.LabelFor(m => m.SmtpFromAddress)
<span class="small">@Html.DescriptionFor(m => m.SmtpFromAddress)</span> <span class="small">@Html.DescriptionFor(m => m.SmtpFromAddress)</span>

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