Make reset password form look slightly nicer

(Still needs a proper makeover!)
This commit is contained in:
Toby Zerner 2016-11-13 09:01:38 +10:30
parent 5fcc504557
commit e31455769c

View File

@ -9,29 +9,29 @@
</head> </head>
<body> <body>
<h1>{{ $translator->trans('core.views.reset.title') }}</h1> <h2>{{ $translator->trans('core.views.reset.title') }}</h2>
@if (! empty($error)) @if (! empty($error))
<p>{{ $error }}</p> <p style="color:red">{{ $error }}</p>
@endif @endif
<form class="form-horizontal" role="form" method="POST" action="{{ app('Flarum\Forum\UrlGenerator')->toRoute('savePassword') }}"> <form class="form-horizontal" role="form" method="POST" action="{{ app('Flarum\Forum\UrlGenerator')->toRoute('savePassword') }}">
<input type="hidden" name="csrfToken" value="{{ $csrfToken }}"> <input type="hidden" name="csrfToken" value="{{ $csrfToken }}">
<input type="hidden" name="passwordToken" value="{{ $passwordToken }}"> <input type="hidden" name="passwordToken" value="{{ $passwordToken }}">
<div class="form-group"> <p class="form-group">
<label class="control-label">{{ $translator->trans('core.views.reset.password_label') }}</label> <label class="control-label">{{ $translator->trans('core.views.reset.password_label') }}</label><br>
<input type="password" class="form-control" name="password"> <input type="password" class="form-control" name="password">
</div> </p>
<div class="form-group"> <p class="form-group">
<label class="control-label">{{ $translator->trans('core.views.reset.confirm_password_label') }}</label> <label class="control-label">{{ $translator->trans('core.views.reset.confirm_password_label') }}</label><br>
<input type="password" class="form-control" name="password_confirmation"> <input type="password" class="form-control" name="password_confirmation">
</div> </p>
<div class="form-group"> <p class="form-group">
<button type="submit" class="btn btn-primary">{{ $translator->trans('core.views.reset.submit_button') }}</button> <button type="submit" class="btn btn-primary">{{ $translator->trans('core.views.reset.submit_button') }}</button>
</div> </p>
</form> </form>
</body> </body>
</html> </html>