diff options
author | emkael <emkael@tlen.pl> | 2017-03-15 16:42:10 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-03-15 16:47:25 +0100 |
commit | 40da59a0c5f9fa2f1cf840bc64161861ef6a818f (patch) | |
tree | 260e296de63cad0eabaa54e34d07df1d400f1861 /app/frontend/controls | |
parent | 44149fc7916ab129e626441d2d81cd8ec7a8ec9f (diff) |
* registration open to public
Diffstat (limited to 'app/frontend/controls')
-rw-r--r-- | app/frontend/controls/HeaderMenu.tpl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/frontend/controls/HeaderMenu.tpl b/app/frontend/controls/HeaderMenu.tpl index 265d29e..c93ac85 100644 --- a/app/frontend/controls/HeaderMenu.tpl +++ b/app/frontend/controls/HeaderMenu.tpl @@ -3,21 +3,25 @@ <prop:Text><%[ Home ]%></prop:Text> <prop:NavigateUrl><%= $this->Service->constructUrl(NULL) %></prop:NavigateUrl> </com:THyperLink> + <com:TActiveLinkButton OnCommand="loginUser"> <prop:Text><%[ Login ]%></prop:Text> <prop:Visible><%= $this->User->IsGuest %></prop:Visible> <prop:ClientSide.OnFailure>window.location.replace('<%= $this->Service->constructUrl('Login') %>')</prop:ClientSide.OnFailure> <prop:ClientSide.OnException>window.location.replace('<%= $this->Service->constructUrl('Login') %>')</prop:ClientSide.OnException> </com:TActiveLinkButton> + <com:THyperLink> <prop:Text><%[ Profile ]%></prop:Text> <prop:NavigateUrl><%= $this->Service->constructUrl('Profile') %></prop:NavigateUrl> <prop:Visible><%= !$this->User->IsGuest %></prop:Visible> </com:THyperLink> + <com:THyperLink> <prop:Text><%[ Calendar list ]%></prop:Text> <prop:NavigateUrl><%= $this->Service->constructUrl('Select') %></prop:NavigateUrl> </com:THyperLink> + <com:TActiveLinkButton OnCommand="logoutUser"> <com:TTranslate> Logout ({name}) @@ -27,11 +31,13 @@ <prop:ClientSide.OnFailure>window.location.reload()</prop:ClientSide.OnFailure> <prop:ClientSide.OnException>window.location.reload()</prop:ClientSide.OnException> </com:TActiveLinkButton> + <com:THyperLink> <prop:Text><%[ New user ]%></prop:Text> <prop:NavigateUrl><%= $this->Service->constructUrl('Signup') %></prop:NavigateUrl> - <prop:Visible><%= $this->User->getIsAdmin() %></prop:Visible> + <prop:Visible><%= $this->User->getIsGuest() %></prop:Visible> </com:THyperLink> + <com:THyperLink> <prop:Text><%[ Admin calendars ]%></prop:Text> <prop:NavigateUrl><%= $this->Service->constructUrl('Admin') %></prop:NavigateUrl> |