Worked on #4, #1 and #2

Also:
- enhanced form stylesheets
- W3C validation
This commit is contained in:
Marcin Kurczewski
2013-10-15 00:41:04 +02:00
parent 79b51d31e5
commit 8fdc90bab7
16 changed files with 282 additions and 92 deletions

View File

@ -22,6 +22,24 @@ class UserController
/**
* @route /user/{name}/edit
* @validate name [^\/]+
*/
public function editAction($name)
{
$this->context->viewName = 'user-view';
$this->context->stylesheets []= 'user-view.css';
$this->context->subTitle = $name;
PrivilegesHelper::confirmWithException($this->context->user, Privilege::ViewUser);
$user = self::locateUser($name);
$this->context->transport->user = $user;
$this->context->transport->tab = 'edit';
}
/**
* @route /user/{name}
* @route /user/{name}/{tab}/{page}