Browse Source

job edit completed

confirmation-email
Milad Karbasizadeh 11 years ago
parent
commit
feb4ecff7d
2 changed files with 5 additions and 4 deletions
  1. +1
    -0
      Sevomin.WebFrontend/Sevomin.WebFrontend.csproj
  2. +4
    -4
      Sevomin.WebFrontend/Views/Shared/JobParameterViewModel.cshtml

+ 1
- 0
Sevomin.WebFrontend/Sevomin.WebFrontend.csproj View File

@ -244,6 +244,7 @@
<Content Include="Views\Account\ProfileDovomin.cshtml" />
<Content Include="Views\Shared\Navbar.cshtml" />
<Content Include="Views\Shared\DovominParameterViewModel.cshtml" />
<Content Include="Views\Job\Edit.cshtml" />
<None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</None>


+ 4
- 4
Sevomin.WebFrontend/Views/Shared/JobParameterViewModel.cshtml View File

@ -14,17 +14,17 @@
@switch (Model.DisplayMethod)
{
case 1:
@Html.TextBox(paramId, string.Empty, new { @class = "form-control" })
@Html.TextBox(paramId, Model.StringValue, new { @class = "form-control" })
break;
case 2:
@Html.TextArea(paramId)
break;
case 3:
/* validator bezar baraye numeric gereftan */
@Html.TextBox(paramId, string.Empty, new { @class = "form-control" })
@Html.TextBox(paramId, Model.StringValue, new { @class = "form-control" })
break;
case 4:
@Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2"), "انتخاب کنید ...", new { @class = "form-control" })
@Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2", Model.StringValue), "انتخاب کنید ...", new { @class = "form-control" })
break;
default:
@MvcHtmlString.Empty
@ -34,7 +34,7 @@
<div class="col-md-3 pull-right">
@if (Model.HasMoscow)
{
@Html.DropDownList(muscowId, new SelectList(MuSCoWList, "item2", "item1", "2"), new { @class = "form-control" })
@Html.DropDownList(muscowId, new SelectList(MuSCoWList, "item2", "item1", string.IsNullOrWhiteSpace(Model.StringValue) ? "2" : Model.StringValue), new { @class = "form-control" })
}
</div>
</div>

Loading…
Cancel
Save