Browse Source

submit button in job creation form

confirmation-email
Milad Karbasizadeh 11 years ago
parent
commit
c74e2db45f
2 changed files with 63 additions and 58 deletions
  1. +59
    -57
      Sevomin.WebFrontend/Views/Job/JobEditor.cshtml
  2. +4
    -1
      Sevomin.WebFrontend/Views/Job/NewJob.cshtml

+ 59
- 57
Sevomin.WebFrontend/Views/Job/JobEditor.cshtml View File

@ -1,71 +1,73 @@
@model Sevomin.Models.JobViewModel @model Sevomin.Models.JobViewModel
@using (Html.BeginForm("", "", FormMethod.Post, new { role = "form" }))
{
<div class="row rtl">
<div class="panel panel-default">
<div class="panel-heading">مشخصات اصلی آگهی</div>
<div class="panel-body">
<div class="col-md-6">
<div class="form-group">
<div class="checkbox">
@*<label for="exampleInputEmail1">تاریخ انقضا</label> <span class="glyphicon glyphicon-exclamation-sign form-help" data-toggle="tooltip" data-for="boogh" data-placement="top" title="این یک راهنما برای این فیلد است"></span>
<div class="row rtl">
<div class="clearfix">
<button type="submit" class="btn btn-primary pull-left">ارسال آگهی</button>
</div>
<div class="panel panel-default">
<div class="panel-heading">مشخصات اصلی آگهی</div>
<div class="panel-body">
<div class="col-md-6">
<div class="form-group">
<div class="checkbox">
@*<label for="exampleInputEmail1">تاریخ انقضا</label> <span class="glyphicon glyphicon-exclamation-sign form-help" data-toggle="tooltip" data-for="boogh" data-placement="top" title="این یک راهنما برای این فیلد است"></span>
<input type="text" class="form-control datepickerify" id="boogh" placeholder="Enter email">*@ <input type="text" class="form-control datepickerify" id="boogh" placeholder="Enter email">*@
<label>
@Html.DisplayNameFor(model => model.IsFullTime) @Html.CheckBoxFor(model => model.IsFullTime)
</label>
</div>
</div>
<div class="form-group">
<div class="checkbox">
<label>
@Html.DisplayNameFor(model => model.ShowCompanyName) @Html.CheckBoxFor(model => model.ShowCompanyName)
</label>
</div>
</div>
<div class="form-group">
<div class="checkbox">
<label>
@Html.DisplayNameFor(model => model.ShowCompanyLogo) @Html.CheckBoxFor(model => model.ShowCompanyLogo)
</label>
</div>
<label>
@Html.DisplayNameFor(model => model.IsFullTime) @Html.CheckBoxFor(model => model.IsFullTime)
</label>
</div> </div>
</div> </div>
<div class="col-md-6">
<div class="form-group">
@Html.LabelFor(model => model.JalaliExpireDate)
@Html.TextBoxFor(model => model.JalaliExpireDate, new { @class = "form-control datepickerify" })
<div class="form-group">
<div class="checkbox">
<label>
@Html.DisplayNameFor(model => model.ShowCompanyName) @Html.CheckBoxFor(model => model.ShowCompanyName)
</label>
</div> </div>
<div class="form-group">
@Html.LabelFor(model => model.ContactPersonName)
@Html.TextBoxFor(model => model.ContactPersonName, new { @class = "form-control" })
</div>
<div class="form-group">
@Html.LabelFor(model => model.ContactPersonPhone)
@Html.TextBoxFor(model => model.ContactPersonPhone, new { @class = "form-control" })
</div>
<div class="form-group">
@Html.LabelFor(model => model.ContactPersonEMail)
@Html.TextBoxFor(model => model.ContactPersonEMail, new { @class = "form-control" })
</div>
<div class="form-group">
<div class="checkbox">
<label>
@Html.DisplayNameFor(model => model.ShowCompanyLogo) @Html.CheckBoxFor(model => model.ShowCompanyLogo)
</label>
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-6">
<div class="form-group">
@Html.LabelFor(model => model.JalaliExpireDate)
@Html.TextBoxFor(model => model.JalaliExpireDate, new { @class = "form-control datepickerify" })
</div>
<div class="form-group">
@Html.LabelFor(model => model.ContactPersonName)
@Html.TextBoxFor(model => model.ContactPersonName, new { @class = "form-control" })
</div>
<div class="form-group">
@Html.LabelFor(model => model.ContactPersonPhone)
@Html.TextBoxFor(model => model.ContactPersonPhone, new { @class = "form-control" })
</div>
<div class="form-group">
@Html.LabelFor(model => model.ContactPersonEMail)
@Html.TextBoxFor(model => model.ContactPersonEMail, new { @class = "form-control" })
</div>
</div>
</div> </div>
</div> </div>
<div class="row rtl">
<div class="panel panel-default">
<div class="panel-heading">مشخصات اضافه آگهی</div>
<div class="panel-body">
<div class="col-md-12">
@foreach(var category in Model.Parameters.GroupBy(m => m.GroupName)){
@category.Key
foreach (var item in category)
{
@Html.EditorFor(m => item)
}
</div>
<div class="row rtl">
<div class="panel panel-default">
<div class="panel-heading">مشخصات اضافه آگهی</div>
<div class="panel-body">
<div class="col-md-12">
@foreach (var category in Model.Parameters.GroupBy(m => m.GroupName))
{
@category.Key
foreach (var item in category)
{
@Html.EditorFor(m => item)
} }
</div>
}
</div> </div>
</div> </div>
</div> </div>
}
</div>

+ 4
- 1
Sevomin.WebFrontend/Views/Job/NewJob.cshtml View File

@ -7,4 +7,7 @@
<h1>انتشار آگهی استخدام <small>لورم ایپسوم</small></h1> <h1>انتشار آگهی استخدام <small>لورم ایپسوم</small></h1>
</div> </div>
@Html.Partial("JobEditor")
@using (Html.BeginForm("", "", FormMethod.Post, new { role = "form" }))
{
@Html.Partial("JobEditor")
}

Loading…
Cancel
Save