|
|
@ -51,7 +51,7 @@ |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-12"> |
|
|
|
<p>برای تست: @(HttpContext.Current.Application["ApplicationStart"] == null ? "اجرا نشده" : (DateTime.Now - (DateTime) HttpContext.Current.Application["ApplicationStart"]).Minutes.ToString())</p> |
|
|
|
<p>برای تست: @(HttpContext.Current.Application["ApplicationStart"] == null ? "اجرا نشده" : (DateTime.Now - (DateTime)HttpContext.Current.Application["ApplicationStart"]).Minutes.ToString())</p> |
|
|
|
<div class="table-responsive"> |
|
|
|
<table class="table table-stripped table-bordered"> |
|
|
|
<thead> |
|
|
@ -78,41 +78,43 @@ |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-12 rtl"> |
|
|
|
<div class="panel panel-default" id="ad-panel"> |
|
|
|
<div class="panel panel-default" id="add-ad-panel"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<h4 class="panel-title"><a data-toggle="collapse" data-parent="ad-panel" href="#ad-panel-body">اضافه کردن آگهی در منوی کناری</a></h4> |
|
|
|
<h4 class="panel-title"><a data-toggle="collapse" data-parent="add-ad-panel" href="#add-ad-panel-body">اضافه کردن آگهی</a></h4> |
|
|
|
</div> |
|
|
|
<div id="ad-panel-body" class="panel-collapse collapse in"> |
|
|
|
<div class="panel-body"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-8 pull-right"> |
|
|
|
<label class="col-md-2 pull-right"> |
|
|
|
عنوان |
|
|
|
</label> |
|
|
|
<input type="text" name="Title" placeholder="عنوان" class="col-md-10 pull-left" /> |
|
|
|
</div> |
|
|
|
<div class="col-md-3 pull-left"> |
|
|
|
<label class='col-md-6 pull-right'> |
|
|
|
مدت |
|
|
|
</label> |
|
|
|
<input type="number" name="Duration" placeholder="مدت" class="col-md-6 pull-left" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-12"> |
|
|
|
<label class="col-md-2 pull-right">متن</label> |
|
|
|
<input type="text" name="Description" placeholder="متن" class="col-md-8 col-md-offset-1 pull-left" /> |
|
|
|
<div id="add-ad-panel-body" class="panel-collapse collapse in"> |
|
|
|
<div class="panel-body" id="advertisement-panel"> |
|
|
|
@using (Html.BeginForm("AddAd", "God", FormMethod.Post, new { @class = "form-horizontal" })) |
|
|
|
{ |
|
|
|
<div class="form-group"> |
|
|
|
<div class="col-md-4 col-md-offset-1"> |
|
|
|
<input class="form-control" name="duration" type="number" id="duration-input" placeholder="مدت" /> |
|
|
|
</div> |
|
|
|
<label for="duration-input" class="col-md-1 control-label">مدت</label> |
|
|
|
<div class="col-md-4 col-md-offset-1"> |
|
|
|
<input class="form-control" name="title" type="text" id="title-input" placeholder="عنوان" /> |
|
|
|
</div> |
|
|
|
<label for="title-input" class="col-md-1 control-label">عنوان</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-9 pull-right"> |
|
|
|
<label class='col-md-2 pull-right'>لینک</label> |
|
|
|
<input type="text" name="Link" placeholder="لینک" class="col-md-10 pull-left" /> |
|
|
|
<div class="form-group"> |
|
|
|
<div class="col-md-8 col-md-offset-3"> |
|
|
|
<textarea class="form-control" id="description-input" name="description" rows="2" placeholder="متن"></textarea> |
|
|
|
</div> |
|
|
|
<label for="description-input" class="col-md-1 control-label">متن</label> |
|
|
|
</div> |
|
|
|
<div class="col-md-3"> |
|
|
|
<button class="btn btn-default" type="submit" role="button">درج آگهی</button> |
|
|
|
<div class="form-group"> |
|
|
|
<div class="col-md-1 col-md-offset-1"> |
|
|
|
<button class="btn btn-default" type="button" role="button" id="preview">تست تبلیغ</button> |
|
|
|
</div> |
|
|
|
<div class="col-md-1 col-md-offset-1"> |
|
|
|
<button class="btn btn-default" type="submit" role="button">درج آگهی</button> |
|
|
|
</div> |
|
|
|
<div class="col-md-4 col-md-offset-3"> |
|
|
|
<input type="text" name="link" placeholder="لینک حتما باید با http شروع شود" class="form-control" id="link-input" /> |
|
|
|
</div> |
|
|
|
<label class='col-md-1 control-label' for="link-input">لینک</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -131,25 +133,25 @@ |
|
|
|
<div class="col-md-6 col-sm-12 col-xs-12"> |
|
|
|
<table class="table table-stripped table-bordered"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th>پارامتر</th> |
|
|
|
<th>توضیح اولین</th> |
|
|
|
<th>توضیح دومین</th> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<th>پارامتر</th> |
|
|
|
<th>توضیح اولین</th> |
|
|
|
<th>توضیح دومین</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tr> |
|
|
|
<td>@param.Name</td> |
|
|
|
<td> |
|
|
|
<div style="border: 1px solid #dcdcdc" data-param-id="@param.Id" data-id="CommentAvalin" contenteditable>@param.CommentAvalin</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div style="border: 1px solid #dcdcdc" data-param-id="@param.Id" data-id="CommentDovomin" contenteditable>@param.CommentDovomin</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<button data-param-id="@param.Id" class="btn btn-xs btn-primary pull-left parameter-updater"><span class="glyphicon glyphicon-refresh"></span></button> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>@param.Name</td> |
|
|
|
<td> |
|
|
|
<div style="border: 1px solid #dcdcdc" data-param-id="@param.Id" data-id="CommentAvalin" contenteditable>@param.CommentAvalin</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div style="border: 1px solid #dcdcdc" data-param-id="@param.Id" data-id="CommentDovomin" contenteditable>@param.CommentDovomin</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<button data-param-id="@param.Id" class="btn btn-xs btn-primary pull-left parameter-updater"><span class="glyphicon glyphicon-refresh"></span></button> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
@ -167,58 +169,58 @@ |
|
|
|
.Where(a => a.Jobs != null && a.Jobs.Any(j => j.ExpireDate.Date >= DateTime.Now.Date)) |
|
|
|
.OrderByDescending(a => a.Jobs.OrderByDescending(j => j.CreateDate).First().CreateDate) |
|
|
|
.ToList()) |
|
|
|
{ |
|
|
|
if (avalin.Jobs.Count == 0) |
|
|
|
{ |
|
|
|
continue; |
|
|
|
} |
|
|
|
<div class="panel panel-default"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<h4 class="panel-title"> |
|
|
|
<a data-toggle="collapse" data-parent="#accordion" href="#@avalin.Id"> |
|
|
|
@avalin.DisplayName |
|
|
|
</a> |
|
|
|
</h4> |
|
|
|
</div> |
|
|
|
@foreach (var job in avalin.Jobs.OrderByDescending(a => a.CreateDate)) |
|
|
|
{ |
|
|
|
if (job.Applications.Count == 0) |
|
|
|
if (avalin.Jobs.Count == 0) |
|
|
|
{ |
|
|
|
continue; |
|
|
|
} |
|
|
|
<div id="@avalin.Id" class="panel-collapse collapse in"> |
|
|
|
<div class="panel-body"> |
|
|
|
<p>@((new Sevomin.Models.JobMiniViewModel(job)).JobSummary) @Html.ActionLink("مشاهده آگهی", "SingleJob", "Job", new {jobId = job.Id}, null)</p> |
|
|
|
<h5> |
|
|
|
اطلاعات فرد پاسخگو به این آگهی: (@(string.IsNullOrWhiteSpace(job.ContactPersonName) ? "نام وارد نشده" : job.ContactPersonName) |
|
|
|
@((string.IsNullOrWhiteSpace(job.ContactPersonEMail) ? "ایمیل وارد نشده" : job.ContactPersonEMail)) |
|
|
|
@((string.IsNullOrWhiteSpace(job.ContactPersonPhone) ? "تلفن وارد نشده" : job.ContactPersonPhone))) |
|
|
|
</h5> |
|
|
|
</div> |
|
|
|
@foreach (var application in job.Applications.OrderByDescending(a => a.ApplyDate)) |
|
|
|
<div class="panel panel-default"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<h4 class="panel-title"> |
|
|
|
<a data-toggle="collapse" data-parent="#accordion" href="#@avalin.Id"> |
|
|
|
@avalin.DisplayName |
|
|
|
</a> |
|
|
|
</h4> |
|
|
|
</div> |
|
|
|
@foreach (var job in avalin.Jobs.OrderByDescending(a => a.CreateDate)) |
|
|
|
{ |
|
|
|
Sevomin.Models.JobApplicationViewModel apply = new Sevomin.Models.JobApplicationViewModel(application); |
|
|
|
<div class="panel-body"> |
|
|
|
<em>از طرف <a href="@Url.Action("Dovomin", "Account", new {userId = apply.DovominId})">@apply.DovominDisplayName</a></em> |
|
|
|
@if (!string.IsNullOrWhiteSpace(apply.CoverLetter)) |
|
|
|
if (job.Applications.Count == 0) |
|
|
|
{ |
|
|
|
continue; |
|
|
|
} |
|
|
|
<div id="@avalin.Id" class="panel-collapse collapse in"> |
|
|
|
<div class="panel-body"> |
|
|
|
<p>@((new Sevomin.Models.JobMiniViewModel(job)).JobSummary) @Html.ActionLink("مشاهده آگهی", "SingleJob", "Job", new { jobId = job.Id }, null)</p> |
|
|
|
<h5> |
|
|
|
اطلاعات فرد پاسخگو به این آگهی: (@(string.IsNullOrWhiteSpace(job.ContactPersonName) ? "نام وارد نشده" : job.ContactPersonName) |
|
|
|
@((string.IsNullOrWhiteSpace(job.ContactPersonEMail) ? "ایمیل وارد نشده" : job.ContactPersonEMail)) |
|
|
|
@((string.IsNullOrWhiteSpace(job.ContactPersonPhone) ? "تلفن وارد نشده" : job.ContactPersonPhone))) |
|
|
|
</h5> |
|
|
|
</div> |
|
|
|
@foreach (var application in job.Applications.OrderByDescending(a => a.ApplyDate)) |
|
|
|
{ |
|
|
|
<h5>پیغام متخصص:</h5> |
|
|
|
<blockquote>@apply.CoverLetter</blockquote> |
|
|
|
Sevomin.Models.JobApplicationViewModel apply = new Sevomin.Models.JobApplicationViewModel(application); |
|
|
|
<div class="panel-body"> |
|
|
|
<em>از طرف <a href="@Url.Action("Dovomin", "Account", new {userId = apply.DovominId})">@apply.DovominDisplayName</a></em> |
|
|
|
@if (!string.IsNullOrWhiteSpace(apply.CoverLetter)) |
|
|
|
{ |
|
|
|
<h5>پیغام متخصص:</h5> |
|
|
|
<blockquote>@apply.CoverLetter</blockquote> |
|
|
|
} |
|
|
|
@if (apply.MinimumRequirement) |
|
|
|
{ |
|
|
|
<p>این متخصص تمامی مهارت های الزامی برای این فرصت شغلی را دارد. همچنین میزان مطابقت ایشان با این فرصت شغلی، @apply.Affinity درصد است.</p> |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
<p>این متخصص برخی مهارت های الزامی برای این فرصت شغلی را ندارد. همچنین میزان مطابقت ایشان با این فرصت شغلی، @apply.Affinity درصد است.</p> |
|
|
|
} |
|
|
|
</div> |
|
|
|
} |
|
|
|
@if (apply.MinimumRequirement) |
|
|
|
{ |
|
|
|
<p>این متخصص تمامی مهارت های الزامی برای این فرصت شغلی را دارد. همچنین میزان مطابقت ایشان با این فرصت شغلی، @apply.Affinity درصد است.</p> |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
<p>این متخصص برخی مهارت های الزامی برای این فرصت شغلی را ندارد. همچنین میزان مطابقت ایشان با این فرصت شغلی، @apply.Affinity درصد است.</p> |
|
|
|
} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
} |
|
|
|
</div> |
|
|
|
} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -248,12 +250,22 @@ |
|
|
|
commentDovomin = $(obj).text(); |
|
|
|
}); |
|
|
|
$.post('@Url.Action("UpdateParam", "God")', { paramId: paramId, commentAvalin: commentAvalin, commentDovomin: commentDovomin }) |
|
|
|
.success(function () { |
|
|
|
console.log('done'); |
|
|
|
}); |
|
|
|
.success(function () { |
|
|
|
console.log('done'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
$('#preview').on('click', function () { |
|
|
|
$('#preview-box').remove(); |
|
|
|
var url = $('#link-input').val(); |
|
|
|
var title = $('#title-input').val(); |
|
|
|
var desc = $('#description-input').val(); |
|
|
|
$('#advertisement-panel').append('<div id="preview-box" class="panel col-md-3 pull-right panel-default"><div class="panel-body"><h4 class="rtl">' + title + '</h4><p class="rtl">' + desc + '</p><a href="' + url + '" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-link"></span> مشاهده سایت </a></div></div>'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</body> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</html> |