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\Account\ProfileDovomin.cshtml" />
<Content Include="Views\Shared\Navbar.cshtml" /> <Content Include="Views\Shared\Navbar.cshtml" />
<Content Include="Views\Shared\DovominParameterViewModel.cshtml" /> <Content Include="Views\Shared\DovominParameterViewModel.cshtml" />
<Content Include="Views\Job\Edit.cshtml" />
<None Include="Web.Debug.config"> <None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon> <DependentUpon>Web.config</DependentUpon>
</None> </None>


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

@ -14,17 +14,17 @@
@switch (Model.DisplayMethod) @switch (Model.DisplayMethod)
{ {
case 1: case 1:
@Html.TextBox(paramId, string.Empty, new { @class = "form-control" })
@Html.TextBox(paramId, Model.StringValue, new { @class = "form-control" })
break; break;
case 2: case 2:
@Html.TextArea(paramId) @Html.TextArea(paramId)
break; break;
case 3: case 3:
/* validator bezar baraye numeric gereftan */ /* validator bezar baraye numeric gereftan */
@Html.TextBox(paramId, string.Empty, new { @class = "form-control" })
@Html.TextBox(paramId, Model.StringValue, new { @class = "form-control" })
break; break;
case 4: 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; break;
default: default:
@MvcHtmlString.Empty @MvcHtmlString.Empty
@ -34,7 +34,7 @@
<div class="col-md-3 pull-right"> <div class="col-md-3 pull-right">
@if (Model.HasMoscow) @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>
</div> </div>

Loading…
Cancel
Save