Merge branch 'saas' into saas-dev
Conflicts: airtime_mvc/public/css/billing.css
This commit is contained in:
commit
479153df17
|
@ -113,10 +113,10 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
$csrf_namespace = new Zend_Session_Namespace('csrf_namespace');
|
||||
// Check if the token exists
|
||||
if (!$csrf_namespace->authtoken) {
|
||||
// If we don't have a token, regenerate it and set a 2 hour timeout
|
||||
// If we don't have a token, regenerate it and set a 1 week timeout
|
||||
// Should we log the user out here if the token is expired?
|
||||
$csrf_namespace->authtoken = sha1(uniqid(rand(), 1));
|
||||
$csrf_namespace->setExpirationSeconds(2 * 60 * 60);
|
||||
$csrf_namespace->setExpirationSeconds(168 * 60 * 60);
|
||||
}
|
||||
|
||||
//Here we are closing the session for writing because otherwise no requests
|
||||
|
|
|
@ -28,6 +28,10 @@ function validatePlan()
|
|||
|
||||
function validateVATNumber()
|
||||
{
|
||||
if ($(vatFieldId).val() == '') {
|
||||
return;
|
||||
}
|
||||
|
||||
$.post("/billing/vat-validator", { "vatnumber" : $(vatFieldId).val(), "country" : $("#country").val() })
|
||||
.success(function(data, textStatus, jqXHR) {
|
||||
if (data["result"]) {
|
||||
|
@ -261,6 +265,10 @@ echo($currentProduct["name"]);
|
|||
//echo Application_Model_Preference::GetPlanLevel();
|
||||
?>
|
||||
</p>
|
||||
<div class="educational-discount">
|
||||
<h4>Are you a student or educator?</h4>
|
||||
<p>Sign up on an annual plan before the end of October to receive a special educational discount. <a href="https://www.airtime.pro/educational-discount">Find out more</a>.</p>
|
||||
</div>
|
||||
|
||||
<h3><?php echo(_pro('Choose a plan: ')); ?></h3>
|
||||
<form id="<?php echo $form->getId(); ?>" method="<?php echo $form->getMethod() ?>" action="<?php echo
|
||||
|
|
|
@ -274,3 +274,25 @@
|
|||
color: #ff611f;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.billing-panel .educational-discount {
|
||||
border: 1px solid #306999;
|
||||
border-radius: 3px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
box-sizing: border-box;
|
||||
padding: 16px;
|
||||
background-color: #b8d9f4;
|
||||
color: #234f5d;
|
||||
|
||||
}
|
||||
.billing-panel .educational-discount h4 {
|
||||
color: #1e415d;
|
||||
font-weight: bold;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.billing-panel .educational-discount p {
|
||||
margin: 0px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue