The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Added role listing to profile box

Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
master
Polonkai Gergely 10 years ago
parent aa884ae798
commit 995b96b3b7
  1. 2
      app/Resources/views/Box/UserProfile.html.twig
  2. 5
      app/Resources/views/main_template.html.twig
  3. 31
      src/KekRozsak/SecurityBundle/Entity/Role.php

@ -6,7 +6,7 @@
<div id="profil-belso">
[avatar]
{{ app.user.displayName }}<br />
Jogosultság<br />
<span id="jog-lista" title="{% for role in app.user.roles %}{{ role.shortDescription }}<br />{% endfor %}">Jogosultság{% if app.user.roles|length > 1 %}ok{% endif %}</span><br />
<dl>
<dt>Csoportjaim</dt>
{% for group in app.user.groups %}

@ -86,6 +86,11 @@
$('#profil-box').show();
}
});
$('#jog-lista').tooltip({
track: true,
delay: 0,
fade: 250
});
{% else %}
$('#login-mutato').click(function() {
if ($('#login-box').is(':visible'))

@ -168,5 +168,36 @@ class Role implements RoleInterface
{
return $this->name;
}
/**
* Short description
*
* @var string shortDescription
*
* @ORM\Column(type="string", length=50, nullable=false, unique=true, name="short_description")
*/
protected $shortDescription;
/**
* Set shortDescription
*
* @param string $shortDescription
* @return Role
*/
public function setShortDescription($shortDescription)
{
$this->shortDescription = $shortDescription;
return $this;
}
/**
* Get shortDescription
*
* @return string
*/
public function getShortDescription()
{
return $this->shortDescription;
}
}

Loading…
Cancel
Save