Skip to content

Instantly share code, notes, and snippets.

@tnayanam
Created September 4, 2017 01:18
Show Gist options
  • Save tnayanam/7c4674e7db934fcdc9513eb40de446c9 to your computer and use it in GitHub Desktop.
Save tnayanam/7c4674e7db934fcdc9513eb40de446c9 to your computer and use it in GitHub Desktop.
<html style="" class="js flexbox flexboxlegacy canvas canvastext webgl touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths fa-events-icons-ready gr__localhost"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create - My ASP.NET Application</title>
<link href="https://fonts.googleapis.com/css?family=Metrophobic" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.2.3/jquery-confirm.min.css">
<link href="/Content/bootstrap.css" rel="stylesheet">
<link href="/Content/site.css" rel="stylesheet">
<script src="/Scripts/modernizr-2.6.2.js"></script>
<link href="https://use.fontawesome.com/b2224b235f.css" media="all" rel="stylesheet"></head>
<body data-gr-c-s-loaded="true" style="">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container-login">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<img src="/Content/Images/logo.png">
<a class="navbar-brand" href="/">c</a>
</div>
<div class="navbar-collapse collapse">
<form action="/Account/LogOff" class="navbar-right" id="logoutForm" method="post"><input name="__RequestVerificationToken" type="hidden" value="3oRshCU8eLhsfa8o_z8FCKo7BAJmQZx5891YiTpzLC3095pANKp4Ur-L1fCikhsyMS2pmgWLOUSx_pFUNnEV4HugZgd2STmZaB_5WxdpQpIi9ER1kaq-_9MZhO6dVycLqjajBdnc_yj5NVnqMcLR3g2"> <ul class="nav navbar-nav navbar-right">
<li>
<a href="/Manage" title="Manage">Hello Tanuj!</a>
</li>
<li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
</ul>
</form>
</div>
</div>
</div>
<div class="container-fluid body-content">
<div class="main-container">
<div class="row">
<div class="col-lg-3 account-menu">
<div class="list-group">
<a class="active list-group-item" href="/Referral"><i class="fa fa-heart fa-fw"></i><span class="css-leftpad">Referral Center</span></a>
<a class="list-group-item" href="/Resume"><i class="fa fa-file fa-fw"></i><span class="css-leftpad">Resume Center</span></a>
<a class="list-group-item" href="/CoverLetter"><i class="fa fa-file-text fa-fw"></i><span class="css-leftpad">Cover Letter Center</span></a>
<a class="list-group-item" href="/Rewards/ShowRewards"><i class="fa fa-usd fa-fw"></i><span class="css-leftpad">Rewards</span></a>
<a class="list-group-item" href="/CoverLetter2"><i class="fa fa-cog fa-fw"></i><span class="css-leftpad">Settings</span></a>
</div>
</div>
<div class="col-lg-9">
<form action="/Referral/Create" id="job-form" method="post" novalidate="novalidate"><input name="__RequestVerificationToken" type="hidden" value="n5kgUC4fD29gClGmjCsMEvcm9zMxf1tgNNtYoTrBGeGk60iZR0Qrke822HT9DbQtCcDST9SZS1O7Y6eKVzYOOMlRe1qL2hCZlRgJOqFy2vX_SGeeOyCaZL6ela5tAOQ1xRBZggeBhWkG8Y6_s3M4Rw2"> <div class="form-horizontal">
<h4>Job Request</h4>
<hr>
<div class="form-group">
<label class="control-label col-md-2" for="CompanyId">Company Name</label>
<div class="col-md-10">
<select class="form-control" data-url="/Referral/ListOfCoverLetterByCompanyId" data-val="true" data-val-number="The field Company Name must be a number." data-val-required="The Company Name field is required." id="CompanyId" name="CompanyId"><option value="">Please Select</option>
<option value="1">Yahoo</option>
<option value="2">Microsoft</option>
<option value="3">Google</option>
<option value="4">Others</option>
<option value="1004">cts</option>
<option value="1005">tcs</option>
<option value="1006">grabby</option>
<option value="1007">mydupe</option>
<option value="1008">grabbys</option>
<option value="1009">QUORA</option>
</select>
<span class="field-validation-valid text-danger" data-valmsg-for="CompanyId" data-valmsg-replace="true"></span>
</div>
</div>
<div class="form-group js-div" style="display:none;">
<label class="control-label col-md-2" for="TempCompany">Other Company</label>
<div class="col-md-10">
<input class="form-control text-box single-line" data-val="true" data-val-requiredif="asdfsdfsa" data-val-requiredif-dependentproperty="CompanyId" data-val-requiredif-dependentvalue="4" data-val-requiredif-operator="EqualTo" id="TempCompany" name="TempCompany" type="text" value="">
<span class="field-validation-valid text-danger" data-valmsg-for="TempCompany" data-valmsg-replace="true"></span>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="SkillId">Skill</label>
<div class="col-md-10">
<select class="form-control" data-val="true" data-val-number="The field Skill must be a number." data-val-required="The Skill field is required." id="SkillId" name="SkillId"><option value="3">C++</option>
<option value="4">Java</option>
</select>
<span class="field-validation-valid text-danger" data-valmsg-for="SkillId" data-valmsg-replace="true"></span>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="DegreeId">Degree</label>
<div class="col-md-10">
<select class="form-control" data-val="true" data-val-number="The field Degree must be a number." data-val-required="The Degree field is required." id="DegreeId" name="DegreeId"><option value="1">Masters</option>
<option value="2">Bachelors</option>
</select>
<span class="field-validation-valid text-danger" data-valmsg-for="DegreeId" data-valmsg-replace="true"></span>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="Experience">Experience(months)</label>
<div class="col-md-10">
<input class="form-control text-box single-line" data-val="true" data-val-number="The field Experience(months) must be a number." data-val-range="Experience should be greater than 0." data-val-range-max="2147483647" data-val-range-min="0" data-val-required="The Experience(months) field is required." id="Experience" name="Experience" type="number" value="0">
<span class="field-validation-valid text-danger" data-valmsg-for="Experience" data-valmsg-replace="true"></span>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="ReferralName">Referral Name</label>
<div class="col-md-10">
<input class="form-control text-box single-line" id="ReferralName" name="ReferralName" type="text" value="">
<span class="field-validation-valid text-danger" data-valmsg-for="ReferralName" data-valmsg-replace="true"></span>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="ResumeId">Resume</label>
<div class="col-md-10">
<select class="form-control" data-val="true" data-val-number="The field Resume must be a number." data-val-required="The Resume field is required." id="ResumeId" name="ResumeId"><option value="1017">Res1</option>
</select>
<span class="field-validation-valid text-danger" data-valmsg-for="ResumeId" data-valmsg-replace="true"></span>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="CoverLetterId">Cover Letter</label>
<div class="col-md-10">
<select class="form-control" data-val="true" data-val-number="The field Cover Letter must be a number." id="CoverLetterId" name="CoverLetterId"><option value="">Please select</option>
</select>
<span class="field-validation-valid text-danger" data-valmsg-for="CoverLetterId" data-valmsg-replace="true"></span>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Create" class="btn btn-default">
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<hr>
<footer class="Footer">
</footer>
</div>
<script src="/Scripts/jquery-1.10.2.js"></script>
<script src="/Scripts/bootstrap.js"></script>
<script src="/Scripts/respond.js"></script>
<script src="/Scripts/jquery.validate.js"></script>
<script src="/Scripts/jquery.validate.unobtrusive.js"></script>
<script src="/Scripts/mvcfoolproof.unobtrusive.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.2.3/jquery-confirm.min.js"></script>
<script src="https://use.fontawesome.com/b2224b235f.js"></script>
<script src="/Scripts/CustomJS.js"></script>
<script>
var canSubmit = false;
debugger;
$('#job-form').submit(function (e) {
if (!canSubmit)
e.preventDefault();
var data = $('#job-form').serialize();
var url = '/Referral/CheckForExistingReferral';
$.ajax({
url: url,
type: 'POST',
data: data,
success: function (response) {
if (response.hasPreviousRequest)
{
if (confirm("You've already applied for this job. Apply again?")) {
canSubmit = true;
$('#job-form').submit();
}
}
else {
canSubmit = true;
$('#job-form').submit();
}
},
error: function (){
alert("error");
}
});
});
</script>
<script>
$(function () {
$('[data-admin-menu]').hover(function () {
$('[data-admin-menu]').toggleClass('open')
});
});
</script>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment