Last active
December 21, 2015 15:49
-
-
Save SvitlanaShepitsena/6329562 to your computer and use it in GitHub Desktop.
Laravel and Fundation Style Authentication Form for Creating an Account
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- /* My SlideDown Authentification Form Starts Here */ --> | |
<div id="adminAuth" class="reveal-modal small adminAuth2 createAccount panel"> | |
<div class="row"> | |
<div class="large-12 columns profileContent"> | |
{{Form::open(array('url'=>'login'))}} | |
<div class="navPanel"> | |
<nav class="top-bar min"> | |
<div class="large-2 columns"> | |
<a class="logoS" href="{{URL::route('home')}}" title="Home Page"> | |
<img src="{{url('comp/img/REMAX1LogoS.png')}}" alt="RE/MAX FIRST CLASS Logo"> | |
</a> | |
</div> | |
<div class="large-10 columns"> <ul class="title-area right"> | |
<!-- Title Area --> | |
<li class="name"> | |
<h1> | |
{{link_to_route('home', 'REMAX FIRST CLASS');}} | |
</h1> | |
</li> | |
</ul> | |
</div> | |
</nav> | |
</div> | |
<div class="row"> | |
<div class="large-12 columns signInFormWrapper"> | |
<h3 class="subheader account">Sign In to Your Account</h3> | |
<div class="row"> | |
<div class="large-6 columns"> | |
{{Form::label('email', 'Your Email')}} | |
{{ Form::email('email', Input::old('email'), $attributes = array())}} | |
</div> | |
<div class="large-6 columns"> | |
{{Form::label('password', 'Your Password')}} | |
{{ Form::password('password', $value = null, $attributes = array())}} | |
</div> | |
</div> | |
{{ Form::submit('Login', $attributes = array('class'=>'button tiny radius'))}} | |
{{Form::close()}} | |
</div> | |
</div> | |
</div> | |
</div> | |
<a class="close-reveal-modal">×</a> | |
</div> | |
<!-- | |
/* insert data-reveal-id to your button with the same id */ | |
<ul class="inline-list ulAccountPanel"> | |
@if(!Auth::check()) | |
<li class="liSignIn right"> | |
{{link_to('#', 'Sign In', array('data-reveal-id'=>'adminAuth'))}} | |
</li> | |
<li class="liCreateAccount right"> | |
<em>{{link_to('#', 'Create Your Free Account', array('data-reveal-id'=>'createAccount'))}}</em> | |
</li> | |
@else | |
<li class="liSignIn right"> | |
<a href="{{URL::route('panel')}}"> | |
<img class="userImg"src="{{url('comp/img/user.png')}}" alt="name"> | |
<em>{{Auth::user()->first_name}} {{Auth::user()->last_name}}</em></a> | |
</li> | |
<li class="liSignIn right"> | |
{{link_to_route('logout', 'Logout');}} | |
</li> | |
@endif | |
</ul> | |
--> | |
<!-- /* My slideDown Authentification Form Ends Here */ --> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment