Merge branch 'master' of https://github.com/crunchbutton/crunchbutton
This commit is contained in:
commit
7f5f72bbb0
1
db/migrate/000302_stripe_admin.sql
Normal file
1
db/migrate/000302_stripe_admin.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE `admin` ADD `stripe_id` VARCHAR(255) NULL DEFAULT NULL AFTER `date_terminated`;
|
||||
1
db/migrate/000303_admin_dob.sql
Normal file
1
db/migrate/000303_admin_dob.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE `admin` ADD `dob` DATE NULL AFTER `id_admin_author`;
|
||||
@ -53,6 +53,7 @@ class Controller_api_driver_save extends Crunchbutton_Controller_RestAccount {
|
||||
}
|
||||
|
||||
$driver->name = $this->request()[ 'name' ];
|
||||
$driver->dob = $this->request()[ 'dob' ];
|
||||
$driver->phone = $phone;
|
||||
$driver->txt = $phone;
|
||||
$driver->testphone = $phone;
|
||||
|
||||
@ -110,6 +110,7 @@ class Cockpit_Admin extends Crunchbutton_Admin {
|
||||
$out['referral_admin_credit'] = floatval( $this->referral_admin_credit );
|
||||
$out['referral_customer_credit'] = floatval( $this->referral_customer_credit );
|
||||
$out['invite_code'] = $this->invite_code;
|
||||
$out['dob'] = $this->dob;
|
||||
|
||||
$author = $this->author();
|
||||
if( $author->id_admin ){
|
||||
|
||||
@ -78,12 +78,20 @@
|
||||
|
||||
<li class="li-input" ng-class="{'error':form.driverEmail.$invalid}">
|
||||
<div class="label">Email:</div>
|
||||
<div class="input"><input type="email" name="driverEmail" ng-model="driver.email" placeholder="Email"></div>
|
||||
<div class="input"><input type="email" name="driverEmail" ng-model="driver.email" required ng-pattern="/.*@.*/" placeholder="Email"></div>
|
||||
<div class="box-error">
|
||||
<small ng-show="form.driverEmail.$invalid">Enter a valid email.</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="li-input" ng-class="{'error':form.driverDob.$invalid}">
|
||||
<div class="label">Date of Birth:</div>
|
||||
<div class="input"><input type="text" name="driverDob" required ng-pattern="/[0-9]{4}-[0-9]{2}-[0-9]{2}/" ng-model="driver.dob"></div>
|
||||
<div class="box-error">
|
||||
<small ng-show="form.driverDob.$invalid">Enter a valid format (YYYY-MM-DD)</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<br/><br/><br/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user