Created a login box
This commit is contained in:
@@ -39,6 +39,19 @@
|
||||
<div id="profil-szerkesztes"><a href="{{ path('KekRozsakFrontBundle_profile_edit') }}">Profil szerkesztése</a></div>
|
||||
</div>
|
||||
</div>
|
||||
{% 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>
|
||||
{% endif %}
|
||||
<div id="search-box">
|
||||
<input type="text" />
|
||||
@@ -92,6 +105,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
{% if app.user %}
|
||||
$('#profil-mutato').click(function() {
|
||||
if ($('#profil-box').is(':visible'))
|
||||
{
|
||||
@@ -102,6 +116,18 @@
|
||||
$('#profil-box').show();
|
||||
}
|
||||
});
|
||||
{% else %}
|
||||
$('#login-mutato').click(function() {
|
||||
if ($('#login-box').is(':visible'))
|
||||
{
|
||||
$('#login-box').hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#login-box').show();
|
||||
}
|
||||
});
|
||||
{% endif %}
|
||||
</script>
|
||||
{% block bottomscripts %}{% endblock %}
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user