115 lines
5.3 KiB
Plaintext
115 lines
5.3 KiB
Plaintext
@model GODATA.Models.UserInventory.UserInventory
|
|
|
|
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
|
|
|
|
@using (Ajax.BeginForm("ManageDealerInventory_AddDealer", "UserInventory", new AjaxOptions { HttpMethod = "POST", OnBegin = "onBegin", OnSuccess = "onSuccessAddDealer" }))
|
|
{
|
|
@* @Html.ValidationSummary(true)
|
|
@Html.HiddenFor(model => model.StateName, new { id = "stateName" })
|
|
@Html.HiddenFor(model => model.OrganizationName, new { id = "organizationName" })
|
|
|
|
*@
|
|
<div>
|
|
<table class="themeTable" cellpadding="5" cellspacing="0" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">
|
|
Dealer</span>
|
|
</td>
|
|
<td class="tableCellinfo SelectDD">
|
|
@ViewBag.DealerName
|
|
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">
|
|
@Html.LabelFor(model => model.OrganizationName)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.DisplayFor(model => model.OrganizationName)
|
|
@Html.ValidationMessageFor(model => model.OrganizationName)
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.DisplayNameFor(model => model.Designation)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.DisplayFor(model => model.Designation)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.DisplayNameFor(model => model.Language)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.DisplayFor(model => model.Language)
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.DisplayNameFor(model => model.State)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.DisplayFor(model => model.State)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.DisplayNameFor(model => model.City)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.DisplayFor(model => model.City)
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">
|
|
@Html.LabelFor(model => model.FirstName)</span><span class="error" style="color: red"> * </span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.EditorFor(model => model.FirstName)
|
|
@Html.ValidationMessageFor(model => model.FirstName)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">
|
|
@Html.LabelFor(model => model.UserName)</span><span class="error" style="color: red"> * </span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.EditorFor(model => model.UserName)
|
|
<span id="spanUserName" class="error" style="display: none">This user already exist!</span>
|
|
@Html.ValidationMessageFor(model => model.UserName)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">
|
|
@Html.LabelFor(model => model.Password)
|
|
</span><span class="error" style="color: red">* </span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.EditorFor(model => model.Password)
|
|
@Html.ValidationMessageFor(model => model.Password)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">
|
|
@Html.LabelFor(model => model.ConfirmPassword)
|
|
</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.EditorFor(model => model.ConfirmPassword)
|
|
@Html.ValidationMessageFor(model => model.ConfirmPassword)
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<br />
|
|
<div class="Create_Wrp">
|
|
<input type="submit" value="Create" class="button_blue" style="margin-top: 0px; width: auto; overflow: hidden; height: 27px; line-height: 9px;" />
|
|
<input type="button" value="Cancel" class="button_blue" style="background: #ee2e22 !important; margin-top: 0px; width: auto; overflow: hidden; height: 27px; line-height: 9px;" onclick="btnCancelAddUser();" />
|
|
</div>
|
|
|
|
}
|