Skip to content

Instantly share code, notes, and snippets.

@desmax
Created November 26, 2012 15:24
Show Gist options
  • Select an option

  • Save desmax/4148772 to your computer and use it in GitHub Desktop.

Select an option

Save desmax/4148772 to your computer and use it in GitHub Desktop.
<div class="default-login-block">
<h1>{{ 'login.headline'|trans }}</h1>
<h2>{{ 'login.login_text'|trans }}</h2>
<div class="login-types">
<div class="email-login">
<h4>{{ 'login.gw_login_text'|trans }}</h4>
<div>{{ 'login.gw_login_text_sub'|trans }}</div>
<div class="buttons">
<a href="#login_form_popup" class="btn btn-action">{{ 'login.with_email'|trans }}</a><br>
<a href="{{ path('gw_forgot_password') }}">{{ 'login.forgot'|trans }}</a>
</div>
</div>
<div class="social-login">
<h4>{{ 'login.social_login_text'|trans }}</h4>
<div>{{ 'login.social_login_text_sub'|trans }}</div>
{% include "GLGatewayBundle:Signup:connect_buttons_login.html.twig" %}
</div>
</div>
<form action="{{ path('gw_login_check') }}" method="post" class="styledform" name="login_form" id="login_form_popup" style="display: none;">
<h3>{{ 'login.gw_login_text'|trans }}</h3>
<div>{{ 'login.gw_login_text_sub'|trans }}</div>
{% if error is there %}
<div class="form-message status-error">
{{ "login_error.#{error}"|trans }}
</div>
{% endif %}
<fieldset>
<label class="form-field{% if error.email is defined %} form-field-error{% endif %}">
<span>{{ 'email'|trans }}:</span>
<input tabindex="1" type="text" name="_username" placeholder="{{ 'input_your'|trans }} {{ 'email'|trans|lower }}"
value="{{ app.request.request.get('_username') }}">
</label>
<label class="form-field{% if error.subject is defined %} form-field-error{% endif %}">
<span>{{ 'password'|trans }}:</span>
<input tabindex="2" type="text" name="_password" placeholder="{{ 'input_your'|trans }} {{ 'password'|trans|lower }}"
value="{{ app.request.request.get('_password') }}">
</label>
</fieldset>
<fieldset>
<span class="form-actions">
<input type="submit" value="Send" class="btn btn-action">
<input type="reset" value="Reset" class="btn">
<input type="hidden" name="submit_contact" value="1">
<input type="hidden" name="login" value="Login">
<input type="submit" id="login_form_submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;">
<input type="hidden" name="redirect" value="{{ ref }}">
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
<a href="javascript: void(0);" onclick="$(this).closest('form').submit();" class="green_big" style="margin-top: 20px;">{{ 'login.login_button'|trans }}</a>
<a href="{{ path('gw_forgot_password') }}">{{ 'login.forgot'|trans }}</a>
<input tabindex="4" type="checkbox" name="_remember_me" id="rememberMe" value="1">
<a href="javascript: void(0);" onclick="$('#rememberMe').attr('checked', !$('#rememberMe').attr('checked'));">{{ 'rememberMe'|trans }}</a>
</span>
</fieldset>
</form>
<script>
$(document).ready(function() {
{% if app.gateway.id == 13 %}
$("#cas_problems").click(function(){
$("#show_cas_problems").slideToggle();
});
$("#alumni_info").click(function(){
$("#show_alumni_info").slideToggle();
});
{% endif %}
{% if error is there %}
$.facebox({ div: "#login_form_popup" });
{% endif %}
});
</script>
</div>i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment