Merge branch 'authentication' into user_management

This commit is contained in:
Michal Kváček
2016-01-20 23:54:21 +01:00
25 changed files with 14137 additions and 85 deletions
+9
View File
@@ -0,0 +1,9 @@
.login-form {
margin-top: 4em;
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
View File
+1
View File
@@ -0,0 +1 @@
$(document).foundation();
+7698
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
!function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof exports?module.exports=t():e.whatInput=t()}(this,function(){"use strict";function e(e){clearTimeout(s),n(e),f=!0,s=setTimeout(function(){f=!1},1e3)}function t(e){f||n(e)}function n(e){var t=o(e),n=r(e),d=w[e.type];"pointer"===d&&(d=i(e)),p!==d&&(!y&&p&&"keyboard"===d&&"tab"!==v[t]&&m.indexOf(n.nodeName.toLowerCase())>=0||(p=d,a.setAttribute("data-whatinput",p),-1===h.indexOf(p)&&h.push(p))),"keyboard"===d&&u(t)}function o(e){return e.keyCode?e.keyCode:e.which}function r(e){return e.target||e.srcElement}function i(e){return"number"==typeof e.pointerType?b[e.pointerType]:e.pointerType}function u(e){-1===c.indexOf(v[e])&&v[e]&&c.push(v[e])}function d(e){var t=o(e),n=c.indexOf(v[t]);-1!==n&&c.splice(n,1)}var s,c=[],a=document.body,f=!1,p=null,m=["input","select","textarea"],y=a.hasAttribute("data-whatinput-formtyping"),w={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},h=[],v={9:"tab",13:"enter",16:"shift",27:"esc",32:"space",37:"left",38:"up",39:"right",40:"down"},b={2:"touch",3:"touch",4:"mouse"};return function(){var n="mousedown";window.PointerEvent?n="pointerdown":window.MSPointerEvent&&(n="MSPointerDown"),a.addEventListener(n,t),a.addEventListener("mouseenter",t),"ontouchstart"in document.documentElement&&a.addEventListener("touchstart",e),a.addEventListener("keydown",t),a.addEventListener("keyup",d)}(),{ask:function(){return p},keys:function(){return c},types:function(){return h},set:n}});
+10
View File
@@ -0,0 +1,10 @@
<?php
return [
'pageName' => 'Login form',
'formHeading' => 'Login with your e-mail',
'email' => 'E-mail used for login',
'password' => 'Password',
'rememberMe' => 'Remember me',
'forgottenPassword' => 'Did you forgot your password?',
'login' => 'Login'
];
+24
View File
@@ -0,0 +1,24 @@
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@yield('head_meta')
<title>@yield('pageName') {{$vendorName}}</title>
<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('../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')
</body>
</html>
@@ -0,0 +1,50 @@
@extends('admin.layout')
{{--Set page name--}}
@section('pageName', @trans('admin/loginForm.pageName'))
@section('content')
<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