101 lines
4.4 KiB
Plaintext
101 lines
4.4 KiB
Plaintext
@using Resources
|
|
|
|
@model Weee.Models.CertificationCompany
|
|
|
|
@{
|
|
ViewBag.Title = Resource.StaticLabelCompanyList;
|
|
Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml";
|
|
var companyAdmin = Model.Users.FirstOrDefault();
|
|
var adminAccountName = companyAdmin == null ? "" : companyAdmin.UserName;
|
|
var accountCount = Model.Users.Count;
|
|
}
|
|
|
|
<div class="col-md-2"></div>
|
|
<div class="col-md-8">
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
|
|
<div class="form-horizontal">
|
|
<h2>@Resource.CertificationUnit</h2>
|
|
<hr />
|
|
@Html.ValidationSummary(true)
|
|
@Html.HiddenFor(model => model.ID)
|
|
@Html.HiddenFor(model => model.UID)
|
|
@Html.HiddenFor(model => model.Status)
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Name, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.EnglishName, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.EnglishName, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.EnglishName, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Address, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.Address, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.Address, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.CEOName, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.CEOName, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.CEOName, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.VATNumber, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.VATNumber, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.VATNumber, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label docs-control-label col-xs-3">@Resource.UserAccountName</label>
|
|
<div class="col-xs-9">
|
|
<input class="form-control text-box single-line"
|
|
type="text"
|
|
readonly
|
|
value="@adminAccountName" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label docs-control-label col-xs-3">@Resource.Quantity</label>
|
|
<div class="col-xs-9">
|
|
<input class="form-control text-box single-line"
|
|
type="text"
|
|
readonly
|
|
value="@accountCount" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-offset-2 col-md-10 text-right">
|
|
<input type="submit" value="@Resource.StaticLabelGlobal_Save" class="btn btn-default" />
|
|
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "Index", new { }, new { @class = "btn btn-default" })
|
|
@if (Model.Status == Weee.Models.CompanyStatus.New || Model.Status == Weee.Models.CompanyStatus.Inactive)
|
|
{
|
|
@Html.ActionLink(Resource.Active, "Active", new { id = Model.ID }, new { @class = "btn btn-default" })
|
|
}
|
|
else
|
|
{
|
|
@Html.ActionLink(Resource.DeActive, "Deactive", new { id = Model.ID }, new { @class = "btn btn-default" })
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="col-md-2"></div> |