FEATURE: add somehow final login form.

Currently, this form does not point to any existing (resp. working) methods for authentication. For this purpose I need to develop some functionality to add user and have some data for testing.
This commit is contained in:
Michal Kváček
2016-01-20 23:29:00 +01:00
parent 6430a661fb
commit cacad9a8f9
7 changed files with 113 additions and 25 deletions
+5 -4
View File
@@ -6,16 +6,17 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@yield('head_meta')
<title>@yield('pageName') {{$vendorName}}</title>
<link rel="stylesheet" href="{{asset('css/foundation.css')}}" />
<link rel="stylesheet" href="{{asset('../resources/assets/css/foundation.css')}}" />
<link rel="stylesheet" href="{{asset('../resources/assets/css/admin.css')}}" />
@yield('head_stylesheets')
</head>
<body>
@yield('content')
<script src="{{asset('js/vendor/jquery.min.js')}}"></script>
<script src="{{asset('js/vendor/what-input.min.js')}}"></script>
<script src="{{asset('js/foundation.min.js')}}"></script>
<script src="{{asset('../resources/assets/js/vendor/jquery.min.js')}}"></script>
<script src="{{asset('../resources/assets/js/vendor/what-input.min.js')}}"></script>
<script src="{{asset('../resources/assets/js/foundation.min.js')}}"></script>
@yield('javascripts')
+44 -3
View File
@@ -1,9 +1,50 @@
@extends('admin.layout')
{{--Set page name--}}
@section('pageName', 'Login form')
@section('pageName', @trans('admin/loginForm.pageName'))
@section('content')
@parent
{{$something}}
<div class="row">
<div class="medium-6 medium-centered large-4 large-centered columns login-form">
<form method="POST" action="{{ route('login') }}">
{!! csrf_field() !!}
<div class="row column log-in-form{{ $errors->has('email') ? ' has-error' : '' }}">
<h4 class="text-center">@lang('admin/loginForm.formHeading')</h4>
<label>
@lang('admin/loginForm.email')
<input type="text" placeholder="somebody@example.com">
@if ($errors->has('email'))
<span class="help-block">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</label>
<label>
@lang('admin/loginForm.password')
<input type="password" placeholder="@lang('admin/loginForm.password')">
@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</label>
<label>
@lang('admin/loginForm.rememberMe')
<input type="checkbox" name="remember">
</label>
<p>
<a type="submit" class="button expanded">@lang('admin/loginForm.login')</a>
</p>
</div>
</form>
</div>
</div>
@stop