demo20230512/Views/Profile/Settings.cshtml
2023-05-12 10:20:28 +08:00

71 lines
2.2 KiB
Plaintext

@using Resources
@model Weee.Models.UserAccountType
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section PageStyles {
@Styles.Render("~/bootstrap/css")
<link type="text/css" rel="stylesheet" href="~/Browser_Local/css/html5-doctor-reset-stylesheet.css" />
<link type="text/css" rel="stylesheet" href="~/Browser_Local/css/home.css" />
}
@section PageScripts {
@Scripts.Render("~/jQuery")
@Scripts.Render("~/bootstrap")
}
@*<div class="home_wrap">
<div class="home_body_wrap">
<div class="body">
<div class="home_logo_wrap">
<div class="home_logo">
<a href="/app"><img src="~/Browser_Local/img/home_logo.png" /></a>
</div>
</div>
</div>
</div>
</div>*@
<div class="col-md-2"></div>
<div class="col-md-8 form-horizontal">
@if (ViewBag.SuccessInfo != null)
{
<div class="alert alert-success" style="margin-top: 24px;">
@ViewBag.SuccessInfo @Resource.Click <b>@Html.ActionLink(Resource.Here, "Index", "Profile", new { }, new { })</b> @Resource.ReturnToEditCompanyPage
</div>
}
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<h1 style="margin-top: 24px;">@Resource.StaticLabelSettings</h1>
<br />
<div class="form-horizontal">
<div class="form-group">
@Html.LabelFor(model => model.tCO2digits, Resource.StaticLabeltCO2digits, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.tCO2digits, new { htmlAttributes = new { @class = "form-control", @min = "0", @max = "10" } })
@Html.ValidationMessageFor(model => model.tCO2digits, "", new { @class = "text-danger" })
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="@Resource.StaticLabelGlobal_Confirm" class="btn btn-primary" />
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "Index", "Profile", new { }, new { @class = "btn btn-default" })
</div>
</div>
}
</div>
<div class="col-md-2"></div>