Moved boxes to separate files
This commit is contained in:
parent
2e7d217503
commit
33b90a5c9f
12
app/Resources/views/Box/Login.html.twig
Normal file
12
app/Resources/views/Box/Login.html.twig
Normal file
@ -0,0 +1,12 @@
|
||||
<div id="login-gomb">
|
||||
<span id="login-mutato">Bejelentkezés</span>
|
||||
<div id="login-box">
|
||||
<div id="login-belso">
|
||||
<form method="post" action="{{ path('KekRozsakSecurityBundle_login_check') }}">
|
||||
Felhasználónév: <input type="text" name="_username" /><br />
|
||||
Jelszó: <input type="password" name="_password" /><br />
|
||||
<button type="submit">Bejelentkezés</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
26
app/Resources/views/Box/UserProfile.html.twig
Normal file
26
app/Resources/views/Box/UserProfile.html.twig
Normal file
@ -0,0 +1,26 @@
|
||||
<div id="profil-gomb">
|
||||
<span id="profil-mutato">[avatar] {{ app.user.displayName }}</span>
|
||||
<div id="profil-box">
|
||||
<div id="profil-belso">
|
||||
[avatar]
|
||||
{{ app.user.displayName }}<br />
|
||||
Jogosultság<br />
|
||||
<dl>
|
||||
<dt>Csoportjaim</dt>
|
||||
{% for group in app.user.groups %}
|
||||
{% if group.group.open or group.membershipAcceptedAt %}
|
||||
<dl><a href="{{ path('KekRozsakFrontBundle_groupView', {groupSlug: group.group.slug}) }}">{{ group.group.name }}</a></dl>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<dl><a href="{{ path('KekRozsakFrontBundle_groupList') }}">További csoportok</a></dl>
|
||||
|
||||
<dt>Kedvenc Fórum-témáim</dt>
|
||||
|
||||
<dl><a href="{{ path('KekRozsakFrontBundle_forum_main') }}">Fórum</a></dl>
|
||||
|
||||
<dt>Üzenetek</dt>
|
||||
</dl>
|
||||
</div>
|
||||
<div id="profil-szerkesztes"><a href="{{ path('KekRozsakFrontBundle_profile_edit') }}">Profil szerkesztése</a></div>
|
||||
</div>
|
||||
</div>
|
@ -16,43 +16,9 @@
|
||||
<div id="top-line-wrapper">
|
||||
<div id="top-line">
|
||||
{% if app.user %}
|
||||
<div id="profil-gomb">
|
||||
<span id="profil-mutato">[avatar] {{ app.user.displayName }}</span>
|
||||
<div id="profil-box">
|
||||
<div id="profil-belso">
|
||||
[avatar]
|
||||
{{ app.user.displayName }}<br />
|
||||
Jogosultság<br />
|
||||
<dl>
|
||||
<dt>Csoportjaim</dt>
|
||||
{% for group in app.user.groups %}
|
||||
{% if group.group.open or group.membershipAcceptedAt %}
|
||||
<dl><a href="{{ path('KekRozsakFrontBundle_groupView', {groupSlug: group.group.slug}) }}">{{ group.group.name }}</a></dl>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<dl><a href="{{ path('KekRozsakFrontBundle_groupList') }}">További csoportok</a></dl>
|
||||
|
||||
<dt>Kedvenc Fórum-témáim</dt>
|
||||
|
||||
<dt>Üzenetek</dt>
|
||||
</dl>
|
||||
</div>
|
||||
<div id="profil-szerkesztes"><a href="{{ path('KekRozsakFrontBundle_profile_edit') }}">Profil szerkesztése</a></div>
|
||||
</div>
|
||||
</div>
|
||||
{% include ':Box:UserProfile.html.twig' %}
|
||||
{% else %}
|
||||
<div id="login-gomb">
|
||||
<span id="login-mutato">Bejelentkezés</span>
|
||||
<div id="login-box">
|
||||
<div id="login-belso">
|
||||
<form method="post" action="{{ path('KekRozsakSecurityBundle_login_check') }}">
|
||||
Felhasználónév: <input type="text" name="_username" /><br />
|
||||
Jelszó: <input type="password" name="_password" /><br />
|
||||
<button type="submit">Bejelentkezés</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% include ':Box:Login.html.twig' %}
|
||||
{% endif %}
|
||||
<div id="search-box">
|
||||
<input type="text" />
|
||||
@ -66,7 +32,6 @@
|
||||
<ul>
|
||||
<li><a href="{{ path('KekRozsakFrontBundle_homepage') }}">Főoldal - Aktuális</a></li>
|
||||
<li><a href="{{ path('KekRozsakFrontBundle_article', { articleSlug: 'rolunk' }) }}">Rólunk</a></li>
|
||||
<li><a href="{{ path('KekRozsakFrontBundle_forum_main') }}">Fórum</a></li>
|
||||
<li><a href="{{ path('KekRozsakFrontBundle_article', { articleSlug: 'a-magiarol-roviden' }) }}">A Mágiáról röviden</a></li>
|
||||
<li><a href="{{ path('KekRozsakFrontBundle_article', { articleSlug: 'rendek' }) }}">Rendek</a></li>
|
||||
<li><a href="{{ path('KekRozsakFrontBundle_article', { articleSlug: 'a-regiek' }) }}">A régiek</a></li>
|
||||
|
@ -4,7 +4,6 @@ namespace KekRozsak\FrontBundle\Twig;
|
||||
|
||||
use Symfony\Bridge\Doctrine\RegistryInterface;
|
||||
use Symfony\Component\Security\Core\SecurityContextInterface;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
|
||||
|
||||
class NewsExtension extends \Twig_Extension
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user