forked from eahlys/EdPaste
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpassword.blade.php
36 lines (32 loc) · 1.82 KB
/
password.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@extends('default')
@section('pagetitle') {{ __('edpaste.page.title.password.prompt') }} - {{ config('app.name', 'EdPaste') }} @endsection
@section('navbar')
<li class="nav-item"><a href="/" class="nav-link">{{ __('edpaste.menu.home') }}</a></li>
{{--
@if (cas()->isAuthenticated())
<li class="nav-item"><a href="/users/dashboard" class="nav-link">{{ __('edpaste.menu.dashboard') }}</a></li>
<li class="nav-item"><a href="/users/account" class="nav-link">My Account</a></li>
<li class="nav-item"><a href=" /logout" class="nav-link">Logout <i>({{ User::getCurrentUser()->name }})</i></a></li>
@else
<li class="nav-item"><a href="/login" class="nav-link">Login</a></li>
<li class="nav-item"><a href="/register" class="nav-link">Register</a></li>
@endif
--}}
@endsection
@section('content')
<div class="container">
<h2 class="text-center display-4">Password prompt</h2>
<div class="row" style="margin-top:25px;">
<form class="form-inline text-center" action="/{{ $link }}" method="post" accept-charset="utf-8">
@csrf
{{-- Ca c'est pour éviter que les navigateurs préremplissent les champs --}}
<input style="display:none" type="text" name="fakeusernameremembered"/>
<input style="display:none" type="password" name="fakepasswordremembered"/>
<div class="form-group @if (isset($wrongPassword)) has-error @endif" id="passwordInput">
<input type="password" class="form-control" name="pastePassword" id="pastePassword" placeholder="{{ __('edpaste.password.field.placeholder') }}" maxlength="40" autofocus="true">
<button type="submit" id="submit" class="btn @if (isset($wrongPassword)) btn-danger @else btn-outline-success @endif">{{ __('edpaste.password.submit') }}</button>
</div>
</form>
</div>
</div>
@endsection