Browse Source

fixed the forms button

master
Taha Khazaee 9 years ago
parent
commit
b6034acf2d
8 changed files with 387 additions and 355 deletions
  1. +347
    -347
      Sevomin.WebFrontend/Content/themes/bootstrap-theme.css
  2. +25
    -4
      Sevomin.WebFrontend/Scripts/sevomin-ui.js
  3. +9
    -1
      Sevomin.WebFrontend/Sevomin.WebFrontend.csproj
  4. +2
    -1
      Sevomin.WebFrontend/Views/Account/ProfileAvalin.cshtml
  5. +1
    -0
      Sevomin.WebFrontend/Views/Job/Apply.cshtml
  6. +1
    -1
      Sevomin.WebFrontend/Views/Shared/Navbar.cshtml
  7. +1
    -1
      Sevomin.WebFrontend/Web.config
  8. +1
    -0
      Sevomin.WebFrontend/packages.config

Sevomin.WebFrontend/Content/bootstrap-theme.css → Sevomin.WebFrontend/Content/themes/bootstrap-theme.css View File


+ 25
- 4
Sevomin.WebFrontend/Scripts/sevomin-ui.js View File

@ -11,13 +11,34 @@ $(function () {
$(this).tooltip(); $(this).tooltip();
}); });
$('.assess-inputs').each(function () {
$(this).bind('submit', function (e) {
// $('.assess-inputs').each(function () {
// $(this).bind('submit', function (e) {
//var alert = '<div class="alert alert-info fade in rtl"><button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">×</button><h4>فرم شما خیلی خلوته!</h4><p>با این شرایط ما نمیتونیم به شما کمک کنیم. اگر مایل هستید اطلاعات بیشتری پر کنید.</p><p><button type="submit" class="btn btn-danger">ارسال آگهی</button></p></div>'; //var alert = '<div class="alert alert-info fade in rtl"><button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">×</button><h4>فرم شما خیلی خلوته!</h4><p>با این شرایط ما نمیتونیم به شما کمک کنیم. اگر مایل هستید اطلاعات بیشتری پر کنید.</p><p><button type="submit" class="btn btn-danger">ارسال آگهی</button></p></div>';
//$(this).children('input[type=submit], button[type=submit]').fadeOut('fast') //$(this).children('input[type=submit], button[type=submit]').fadeOut('fast')
//$(this).prepend(alert); //$(this).prepend(alert);
//$(this).data('sparse-alert-showed', 'true'); //$(this).data('sparse-alert-showed', 'true');
//e.preventDefault(); //e.preventDefault();
});
});
// });
// });
var i;
i = 0;
$('button[type=submit]').on('focus', function (e) {
if(i<=0)
alert('اگر فیلدها را وارد کردید دوباره کلیک کنید!');
i++;
});
$("button[type=submit]").on("click", function (e) {
$(this).attr('disabled', 'disabled');
});
$("input[type=submit]").on("click", function (e) {
$(this).attr('disabled', 'disabled');
});
}); });

+ 9
- 1
Sevomin.WebFrontend/Sevomin.WebFrontend.csproj View File

@ -41,6 +41,14 @@
<Reference Include="Elmah"> <Reference Include="Elmah">
<HintPath>..\packages\elmah.corelibrary.1.2.2\lib\Elmah.dll</HintPath> <HintPath>..\packages\elmah.corelibrary.1.2.2\lib\Elmah.dll</HintPath>
</Reference> </Reference>
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FluentScheduler"> <Reference Include="FluentScheduler">
<HintPath>..\packages\FluentScheduler.3.1.42\lib\net40\FluentScheduler.dll</HintPath> <HintPath>..\packages\FluentScheduler.3.1.42\lib\net40\FluentScheduler.dll</HintPath>
</Reference> </Reference>
@ -132,7 +140,7 @@
<Content Include="App_Data\emails\password-reset.html" /> <Content Include="App_Data\emails\password-reset.html" />
<Content Include="App_Data\export-assets\export.js" /> <Content Include="App_Data\export-assets\export.js" />
<Content Include="app_offline-.htm" /> <Content Include="app_offline-.htm" />
<Content Include="Content\bootstrap-theme.css" />
<Content Include="Content\themes\bootstrap-theme.css" />
<Content Include="Content\bootstrap-theme.min.css" /> <Content Include="Content\bootstrap-theme.min.css" />
<Content Include="Content\bootstrap.css" /> <Content Include="Content\bootstrap.css" />
<Content Include="Content\bootstrap.min.css" /> <Content Include="Content\bootstrap.min.css" />


+ 2
- 1
Sevomin.WebFrontend/Views/Account/ProfileAvalin.cshtml View File

@ -27,7 +27,8 @@
<div class="row rtl"> <div class="row rtl">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-body"> <div class="panel-body">
<div class="col-md-6">
<div class="col-md-6">
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.CompanyPhoneNumber) @Html.LabelFor(model => model.CompanyPhoneNumber)
@Html.TextBoxFor(model => model.CompanyPhoneNumber, new { @class = "form-control" }) @Html.TextBoxFor(model => model.CompanyPhoneNumber, new { @class = "form-control" })


+ 1
- 0
Sevomin.WebFrontend/Views/Job/Apply.cshtml View File

@ -66,3 +66,4 @@
} }
</div> </div>
</div> </div>

+ 1
- 1
Sevomin.WebFrontend/Views/Shared/Navbar.cshtml View File

@ -28,7 +28,7 @@
<li class="rtl"><a href="@Url.Action("ChangePassword", "Account")"><span class="glyphicon glyphicon-refresh"></span> تغییر کلمه عبور</a></li> <li class="rtl"><a href="@Url.Action("ChangePassword", "Account")"><span class="glyphicon glyphicon-refresh"></span> تغییر کلمه عبور</a></li>
</ul> </ul>
</li> </li>
<li class="rtl"><a href="@Url.Action("Logout", "Account")">خروج از سایت</a></li>
<li class="rtl"><a href="@Url.Action("Logout", "Account")"> خروج از سایت</a><button type="submit"></button></li>
} }
</ul> </ul>
</div> </div>


+ 1
- 1
Sevomin.WebFrontend/Web.config View File

@ -15,7 +15,7 @@
<!--<sectionGroup name="mailSettings"> <!--<sectionGroup name="mailSettings">
<section name="smtp" type="System.Net.Configuration.SmtpSection"/> <section name="smtp" type="System.Net.Configuration.SmtpSection"/>
</sectionGroup>--> </sectionGroup>-->
</configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
<connectionStrings> <connectionStrings>
<clear /> <clear />
<!--<add name="SevominConnectionString" connectionString="Data Source=dc;Initial Catalog=Sevomin;Persist Security Info=True;User ID=sa;Password=123qwe;Pooling=False" providerName="System.Data.SqlClient" />--> <!--<add name="SevominConnectionString" connectionString="Data Source=dc;Initial Catalog=Sevomin;Persist Security Info=True;User ID=sa;Password=123qwe;Pooling=False" providerName="System.Data.SqlClient" />-->


+ 1
- 0
Sevomin.WebFrontend/packages.config View File

@ -2,6 +2,7 @@
<packages> <packages>
<package id="bootstrap" version="3.1.1" targetFramework="net451" /> <package id="bootstrap" version="3.1.1" targetFramework="net451" />
<package id="elmah.corelibrary" version="1.2.2" targetFramework="net451" /> <package id="elmah.corelibrary" version="1.2.2" targetFramework="net451" />
<package id="EntityFramework" version="6.1.3" targetFramework="net451" />
<package id="FluentScheduler" version="3.1.42" targetFramework="net451" /> <package id="FluentScheduler" version="3.1.42" targetFramework="net451" />
<package id="jQuery" version="2.1.0" targetFramework="net451" /> <package id="jQuery" version="2.1.0" targetFramework="net451" />
<package id="jQuery.UI.Combined" version="1.10.4" targetFramework="net451" /> <package id="jQuery.UI.Combined" version="1.10.4" targetFramework="net451" />


Loading…
Cancel
Save