mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
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:
parent
4c47de3fc5
commit
f9e0312c89
2 changed files with 119 additions and 10 deletions
|
@ -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]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue