@ -1,5 +1,85 @@ | |||
@{ | |||
@model Sevomin.Models.DovominViewModel | |||
@{ | |||
ViewBag.Title = "ProfileDovomin"; | |||
} | |||
<h2>ProfileDovomin</h2> | |||
<div class="page-header rtl"> | |||
<h1>ویرایش پروفایل <small>@Model.DisplayName</small></h1> | |||
</div> | |||
@using (Html.BeginForm("ProfileDovomin", "Account", FormMethod.Post, new { role = "form", @class = "assess-inputs" })) | |||
{ | |||
<div class="row" style="margin-bottom: 20px"> | |||
<div class="col-md-12"> | |||
<button type="submit" class="btn btn-primary pull-left">به روز رسانی پروفایل</button> | |||
</div> | |||
</div> | |||
<div class="row rtl"> | |||
<div class="panel panel-default"> | |||
<div class="panel-body"> | |||
<div class="col-md-6"> | |||
<div class="form-group"> | |||
@Html.LabelFor(model => model.EnglishResume) | |||
<input type="file" name="EnglishResume" /> | |||
</div> | |||
<div class="form-group"> | |||
@Html.LabelFor(model => model.PersianResume) | |||
<input type="file" name="PersianResume" /> | |||
</div> | |||
<div class="form-group"> | |||
@Html.LabelFor(model => model.Description) | |||
@Html.TextAreaFor(model => model.Description, new { @class = "form-control" }) | |||
</div> | |||
</div> | |||
<div class="col-md-6"> | |||
<div class="form-group"> | |||
@Html.LabelFor(model => model.FirstName) | |||
@Html.TextBoxFor(model => model.FirstName, new { @class = "form-control" }) | |||
</div> | |||
<div class="form-group"> | |||
@Html.LabelFor(model => model.LastName) | |||
@Html.TextBoxFor(model => model.LastName, new { @class = "form-control" }) | |||
</div> | |||
<div class="form-group"> | |||
@Html.LabelFor(model => model.JalaliBirthDate) | |||
@Html.TextBoxFor(model => model.JalaliBirthDate, new { @class = "form-control datepickerify" }) | |||
</div> | |||
<div class="checkbox"> | |||
<label> | |||
@Html.DisplayNameFor(model => model.IsFullTime) @Html.CheckBoxFor(model => model.IsFullTime) | |||
</label> | |||
</div> | |||
<div class="checkbox"> | |||
<label> | |||
@Html.DisplayNameFor(model => model.IsPartTime) @Html.CheckBoxFor(model => model.IsPartTime) | |||
</label> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="row rtl"> | |||
<div class="panel panel-default"> | |||
<div class="panel-body"> | |||
<div class="alert alert-info"><strong>سلام</strong> چطورین؟</div> | |||
<div class="col-md-12"> | |||
@foreach (var category in Model.Parameters.GroupBy(m => m.GroupName)) | |||
{ | |||
<div class="panel panel-default"> | |||
<div class="panel-body"> | |||
<h3>@category.Key</h3> | |||
@foreach (var item in category) | |||
{ | |||
@Html.Partial("DovominParameterViewModel", item) | |||
} | |||
</div> | |||
</div> | |||
} | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="clearfix"> | |||
<button type="submit" class="btn btn-primary pull-left">به روز رسانی پروفایل</button> | |||
</div> | |||
} |
@ -0,0 +1,34 @@ | |||
@model Sevomin.Models.DovominParameterViewModel | |||
@{ string paramId = string.Format("value-{0}", Model.ParameterId.ToString()); } | |||
<div class="form-group"> | |||
<div class="row"> | |||
<div class="col-md-3 pull-right"> | |||
@Html.Label(Model.ParameterName) | |||
@if (!string.IsNullOrWhiteSpace(Model.CommentDovomin)) | |||
{ | |||
<span class="glyphicon glyphicon-exclamation-sign form-help" data-toggle="tooltip" data-for="@paramId" data-placement="top" title="@Model.CommentDovomin"></span> | |||
} | |||
</div> | |||
<div class="col-md-4 pull-right"> | |||
@switch (Model.DisplayMethod) | |||
{ | |||
case 1: | |||
@Html.TextBox(paramId, string.Empty, 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" }) | |||
break; | |||
case 4: | |||
@Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2"), Model.ParameterName, new { @class = "form-control" }) | |||
break; | |||
default: | |||
@MvcHtmlString.Empty | |||
break; | |||
} | |||
</div> | |||
</div> | |||
</div> |
@ -0,0 +1,30 @@ | |||
<nav class="navbar navbar-fixed-top" role="navigation"> | |||
<div class="container"> | |||
<div class="navbar-header"> | |||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#collapse"> | |||
<span class="sr-only">Toggle navigation</span> | |||
<span class="icon-bar"></span> | |||
<span class="icon-bar"></span> | |||
<span class="icon-bar"></span> | |||
</button> | |||
<a class="navbar-brand" href="#"> | |||
<img src="@Url.Content("~/content/images/revert-logo.png")" /></a> | |||
</div> | |||
<div class="collapse navbar-collapse navbar-right" id="collapse"> | |||
<ul class="nav navbar-nav navbar-right"> | |||
@if (Request.IsAuthenticated) { | |||
<li class="rtl"><a href="@Url.Action("Logout", "Account")">خروج از سایت</a></li> | |||
<li class="rtl"><a href="@Url.Action("MyProfile", "Account")"><span class="glyphicon glyphicon-user"></span> ویرایش پروفایل</a></li> | |||
} | |||
else { | |||
<li class="rtl"><a href="@Url.Action("Login", "Account")">ورود به سایت</a></li> | |||
} | |||
<li class="rtl"><a href="#">تماس با ما</a></li> | |||
<li class="rtl"><a href="#">درباره ما</a></li> | |||
<li class="rtl"><a href="#">مشخصات متخصصین</a></li> | |||
<li class="rtl"><a href="#">آگهی های استخدام</a></li> | |||
<li class="rtl"><a href="#"><span class="glyphicon glyphicon-home"></span> خانه</a></li> | |||
</ul> | |||
</div> | |||
</div> | |||
</nav> |