diff --git a/Sevomin.WebFrontend/Scripts/sevomin-ui.js b/Sevomin.WebFrontend/Scripts/sevomin-ui.js index c53e0fe..96d2cb7 100644 --- a/Sevomin.WebFrontend/Scripts/sevomin-ui.js +++ b/Sevomin.WebFrontend/Scripts/sevomin-ui.js @@ -10,4 +10,14 @@ $(function () { } $(this).tooltip(); }); + + $('.assess-inputs').each(function () { + $(this).bind('submit', function (e) { + //var alert = '

فرم شما خیلی خلوته!

با این شرایط ما نمیتونیم به شما کمک کنیم. اگر مایل هستید اطلاعات بیشتری پر کنید.

'; + //$(this).children('input[type=submit], button[type=submit]').fadeOut('fast') + //$(this).prepend(alert); + //$(this).data('sparse-alert-showed', 'true'); + //e.preventDefault(); + }); + }); }); \ No newline at end of file diff --git a/Sevomin.WebFrontend/Sevomin.WebFrontend.csproj b/Sevomin.WebFrontend/Sevomin.WebFrontend.csproj index e4be9cf..6dd21b0 100644 --- a/Sevomin.WebFrontend/Sevomin.WebFrontend.csproj +++ b/Sevomin.WebFrontend/Sevomin.WebFrontend.csproj @@ -238,8 +238,9 @@ - - + + + Web.config diff --git a/Sevomin.WebFrontend/Views/Account/ProfileAvalin.cshtml b/Sevomin.WebFrontend/Views/Account/ProfileAvalin.cshtml new file mode 100644 index 0000000..292210d --- /dev/null +++ b/Sevomin.WebFrontend/Views/Account/ProfileAvalin.cshtml @@ -0,0 +1,5 @@ +@{ + ViewBag.Title = "View1"; +} + +

ProfileAvalin

\ No newline at end of file diff --git a/Sevomin.WebFrontend/Views/Account/ProfileDovomin.cshtml b/Sevomin.WebFrontend/Views/Account/ProfileDovomin.cshtml new file mode 100644 index 0000000..3fc5632 --- /dev/null +++ b/Sevomin.WebFrontend/Views/Account/ProfileDovomin.cshtml @@ -0,0 +1,5 @@ +@{ + ViewBag.Title = "ProfileDovomin"; +} + +

ProfileDovomin

\ No newline at end of file diff --git a/Sevomin.WebFrontend/Views/Job/JobEditor.cshtml b/Sevomin.WebFrontend/Views/Job/JobEditor.cshtml index d6d0956..a8a5666 100644 --- a/Sevomin.WebFrontend/Views/Job/JobEditor.cshtml +++ b/Sevomin.WebFrontend/Views/Job/JobEditor.cshtml @@ -1,17 +1,17 @@ @model Sevomin.Models.JobViewModel -
-
+
+
+
+
مشخصات اصلی آگهی
- @* - *@ @@ -57,17 +57,25 @@
مشخصات اضافه آگهی
+
سلام چطورین؟
@foreach (var category in Model.Parameters.GroupBy(m => m.GroupName)) { - @category.Key - foreach (var item in category) - { - @Html.Partial("JobParameterViewModel", item) - } +
+
+

@category.Key

+ @foreach (var item in category) + { + @Html.Partial("JobParameterViewModel", item) + } +
+
}
+
+
+
\ No newline at end of file diff --git a/Sevomin.WebFrontend/Views/Job/NewJob.cshtml b/Sevomin.WebFrontend/Views/Job/NewJob.cshtml index 12f7b70..0f2ef55 100644 --- a/Sevomin.WebFrontend/Views/Job/NewJob.cshtml +++ b/Sevomin.WebFrontend/Views/Job/NewJob.cshtml @@ -1,13 +1,13 @@  @{ - ViewBag.Title = "NewJob"; + ViewBag.Title = "انتشار آگهی جدید"; } -@using (Html.BeginForm("NewJob", "Job", FormMethod.Post, new { role = "form" })) +@using (Html.BeginForm("NewJob", "Job", FormMethod.Post, new { role = "form", @class = "assess-inputs" })) { @Html.Partial("JobEditor") } \ No newline at end of file diff --git a/Sevomin.WebFrontend/Views/Shared/JobParameterViewModel.cshtml b/Sevomin.WebFrontend/Views/Shared/JobParameterViewModel.cshtml index 8d437b7..fff5617 100644 --- a/Sevomin.WebFrontend/Views/Shared/JobParameterViewModel.cshtml +++ b/Sevomin.WebFrontend/Views/Shared/JobParameterViewModel.cshtml @@ -1,30 +1,41 @@ @model Sevomin.Models.JobParameterViewModel @{ string paramId = string.Format("value-{0}", Model.ParameterId.ToString()); string muscowId = string.Format("moscow-{0}", Model.ParameterId.ToString()); - var MuSCoWList = new List>() { new Tuple("Must", "4"), new Tuple("Should", "3"), new Tuple("Could", "2"), new Tuple("Won't", "1") }; } -@Html.Label(Model.ParameterName) + var MuSCoWList = new List>() { new Tuple("الزامی", "4"), new Tuple("خیلی مهم", "3"), new Tuple("مفید", "2") }; }
- @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) - break; - case 4: - @Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2"), new { @class = "form-control" }) - break; - default: - @MvcHtmlString.Empty - break; - } - @if (Model.HasMoscow) - { - @Html.DropDownList(muscowId, new SelectList(MuSCoWList, "item2", "item1"), new { @class = "form-control" }) - } +
+
+ @Html.Label(Model.ParameterName) + @if (!string.IsNullOrWhiteSpace(Model.CommentAvalin)) { + + } +
+
+ @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; + } +
+
+ @if (Model.HasMoscow) + { + @Html.DropDownList(muscowId, new SelectList(MuSCoWList, "item2", "item1", "2"), new { @class = "form-control" }) + } +
+
\ No newline at end of file