update template add user to add quota, still need to show/hidde quota based on enable or not and impement

backend processing
This commit is contained in:
osaajani 2021-06-11 02:16:41 +02:00
parent 4c47de3fc5
commit f9e0312c89
2 changed files with 119 additions and 10 deletions

View file

@ -129,7 +129,14 @@ class User extends \descartes\Controller
*/
public function add()
{
return $this->render('user/add');
$now = new \DateTime();
$now_plus_one_month = clone $now;
$now_plus_one_month->add(new \DateInterval('P1M'));
$now = $now->format('Y-m-d H:i:00');
$now_plus_one_month = $now_plus_one_month->format('Y-m-d H:i:00');
return $this->render('user/add', ['now' => $now, 'now_plus_one_month' => $now_plus_one_month]);
}
/**