From 2b9d5de42df86ec6eb3dd0b890cd5ede8a5fc02f Mon Sep 17 00:00:00 2001 From: Milad Karbasizadeh Date: Fri, 28 Mar 2014 14:55:22 +0430 Subject: [PATCH] forms made beautiful --- Sevomin.WebFrontend/Content/forms.css | 4 ++ Sevomin.WebFrontend/Scripts/sevomin-ui.js | 4 +- .../Views/Job/JobEditor.cshtml | 60 +++++++++++-------- Sevomin.WebFrontend/Views/Job/NewJob.cshtml | 4 +- Sevomin.WebFrontend/Views/Shared/Intro.cshtml | 2 + .../Views/Shared/_Layout.cshtml | 3 +- 6 files changed, 48 insertions(+), 29 deletions(-) diff --git a/Sevomin.WebFrontend/Content/forms.css b/Sevomin.WebFrontend/Content/forms.css index 951e98a..098d7d4 100644 --- a/Sevomin.WebFrontend/Content/forms.css +++ b/Sevomin.WebFrontend/Content/forms.css @@ -15,4 +15,8 @@ label{ .field-validation-error{ font-family: Koodak; font-size: 1.2em; +} +.form-help{ + color: #3c72e1; + cursor: pointer; } \ No newline at end of file diff --git a/Sevomin.WebFrontend/Scripts/sevomin-ui.js b/Sevomin.WebFrontend/Scripts/sevomin-ui.js index 66f3e7e..76d5c59 100644 --- a/Sevomin.WebFrontend/Scripts/sevomin-ui.js +++ b/Sevomin.WebFrontend/Scripts/sevomin-ui.js @@ -1,5 +1,5 @@ -// This file depends heavily on jquery and jquery validation. So be nice and include them on the page. +// This file depends heavily on jquery, jquery validation and jquery ui. So be nice and include them on the page. $(function () { $('form').validate(); - $('input.datepickerify').datepicker('option', $.datepicker.regional['fa'] ); + $('input.datepickerify').datepicker($.datepicker.regional["fa"]); }); \ No newline at end of file diff --git a/Sevomin.WebFrontend/Views/Job/JobEditor.cshtml b/Sevomin.WebFrontend/Views/Job/JobEditor.cshtml index 16104a1..3ed85fe 100644 --- a/Sevomin.WebFrontend/Views/Job/JobEditor.cshtml +++ b/Sevomin.WebFrontend/Views/Job/JobEditor.cshtml @@ -1,35 +1,45 @@ @using (Html.BeginForm("", "", FormMethod.Post, new { role = "form" })) {
-
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
- - +
+
مشخصات اصلی آگهی
+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
-
-
-
+
+
مشخصات اضافه آگهی
+
+
+
+
+
+
} \ No newline at end of file diff --git a/Sevomin.WebFrontend/Views/Job/NewJob.cshtml b/Sevomin.WebFrontend/Views/Job/NewJob.cshtml index 2ff7bd0..6d5e85a 100644 --- a/Sevomin.WebFrontend/Views/Job/NewJob.cshtml +++ b/Sevomin.WebFrontend/Views/Job/NewJob.cshtml @@ -3,6 +3,8 @@ ViewBag.Title = "NewJob"; } -

NewJob

+ @Html.Partial("JobEditor") \ No newline at end of file diff --git a/Sevomin.WebFrontend/Views/Shared/Intro.cshtml b/Sevomin.WebFrontend/Views/Shared/Intro.cshtml index 7d0f27a..1d719f5 100644 --- a/Sevomin.WebFrontend/Views/Shared/Intro.cshtml +++ b/Sevomin.WebFrontend/Views/Shared/Intro.cshtml @@ -17,6 +17,8 @@ @Html.Partial("IntroSignup")
+ + diff --git a/Sevomin.WebFrontend/Views/Shared/_Layout.cshtml b/Sevomin.WebFrontend/Views/Shared/_Layout.cshtml index eda37de..72d5cff 100644 --- a/Sevomin.WebFrontend/Views/Shared/_Layout.cshtml +++ b/Sevomin.WebFrontend/Views/Shared/_Layout.cshtml @@ -6,6 +6,7 @@ سومین: مرکز کاریابی برنامه‌ریزی و کنترل پروژه - @ViewBag.Title + @@ -14,7 +15,7 @@ @RenderBody()
- +