mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various layout updates and tiny upgrade fixes [skip ci]
This commit is contained in:
@@ -104,7 +104,7 @@ class LoginController extends Controller
|
|||||||
*
|
*
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\Response
|
||||||
*/
|
*/
|
||||||
public function showLoginForm()
|
public function showLoginForm(Request $request)
|
||||||
{
|
{
|
||||||
// is allowed to?
|
// is allowed to?
|
||||||
$singleUserMode = FireflyConfig::get('single_user_mode', Config::get('firefly.configuration.single_user_mode'))->data;
|
$singleUserMode = FireflyConfig::get('single_user_mode', Config::get('firefly.configuration.single_user_mode'))->data;
|
||||||
@@ -114,7 +114,10 @@ class LoginController extends Controller
|
|||||||
$allowRegistration = false;
|
$allowRegistration = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('auth.login', compact('allowRegistration'));
|
$email = $request->old('email');
|
||||||
|
$remember = $request->old('remember');
|
||||||
|
|
||||||
|
return view('auth.login', compact('allowRegistration', 'email', 'remember'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -109,7 +109,7 @@ class RegisterController extends Controller
|
|||||||
*
|
*
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\Response
|
||||||
*/
|
*/
|
||||||
public function showRegistrationForm()
|
public function showRegistrationForm(Request $request)
|
||||||
{
|
{
|
||||||
// TODO move to FireflyConfig
|
// TODO move to FireflyConfig
|
||||||
$showDemoWarning = env('SHOW_DEMO_WARNING', false);
|
$showDemoWarning = env('SHOW_DEMO_WARNING', false);
|
||||||
@@ -123,7 +123,9 @@ class RegisterController extends Controller
|
|||||||
return view('error', compact('message'));
|
return view('error', compact('message'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('auth.register', compact('showDemoWarning'));
|
$email = $request->old('email');
|
||||||
|
|
||||||
|
return view('auth.register', compact('showDemoWarning', 'email'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -173,6 +173,22 @@ class BillRepository implements BillRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function getBillsForAccounts(Collection $accounts): Collection
|
public function getBillsForAccounts(Collection $accounts): Collection
|
||||||
{
|
{
|
||||||
|
$fields = ['bills.id',
|
||||||
|
'bills.created_at',
|
||||||
|
'bills.updated_at',
|
||||||
|
'bills.deleted_at',
|
||||||
|
'bills.user_id',
|
||||||
|
'bills.name',
|
||||||
|
'bills.match',
|
||||||
|
'bills.amount_min',
|
||||||
|
'bills.amount_max',
|
||||||
|
'bills.date',
|
||||||
|
'bills.repeat_freq',
|
||||||
|
'bills.skip',
|
||||||
|
'bills.automatch',
|
||||||
|
'bills.active',
|
||||||
|
'bills.name_encrypted',
|
||||||
|
'bills.match_encrypted'];
|
||||||
$ids = $accounts->pluck('id')->toArray();
|
$ids = $accounts->pluck('id')->toArray();
|
||||||
$set = $this->user->bills()
|
$set = $this->user->bills()
|
||||||
->leftJoin(
|
->leftJoin(
|
||||||
@@ -187,8 +203,8 @@ class BillRepository implements BillRepositoryInterface
|
|||||||
)
|
)
|
||||||
->whereIn('transactions.account_id', $ids)
|
->whereIn('transactions.account_id', $ids)
|
||||||
->whereNull('transaction_journals.deleted_at')
|
->whereNull('transaction_journals.deleted_at')
|
||||||
->groupBy('bills.id')
|
->groupBy($fields)
|
||||||
->get(['bills.*']);
|
->get($fields);
|
||||||
|
|
||||||
$set = $set->sortBy(
|
$set = $set->sortBy(
|
||||||
function (Bill $bill) {
|
function (Bill $bill) {
|
||||||
|
@@ -29,7 +29,7 @@ $(function () {
|
|||||||
function checkImportStatus() {
|
function checkImportStatus() {
|
||||||
"use strict";
|
"use strict";
|
||||||
console.log('checkImportStatus()');
|
console.log('checkImportStatus()');
|
||||||
$.getJSON(jobImportUrl).success(reportOnJobImport).fail(failedJobImport);
|
$.getJSON(jobImportUrl).done(reportOnJobImport).fail(failedJobImport);
|
||||||
}
|
}
|
||||||
|
|
||||||
function importComplete(data) {
|
function importComplete(data) {
|
||||||
|
@@ -34,7 +34,7 @@ function clickInfoButton(e) {
|
|||||||
attributes.reportType = reportType;
|
attributes.reportType = reportType;
|
||||||
attributes.accounts = accountIds;
|
attributes.accounts = accountIds;
|
||||||
|
|
||||||
$.getJSON('popup/report', {attributes: attributes}).success(respondInfoButton).fail(errorInfoButton);
|
$.getJSON('popup/report', {attributes: attributes}).done(respondInfoButton).fail(errorInfoButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
function errorInfoButton(data) {
|
function errorInfoButton(data) {
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<div class="form-group has-feedback">
|
||||||
<input type="email" name="email" class="form-control" placeholder="Email"/>
|
<input type="email" name="email" value="{{ email }}" class="form-control" placeholder="Email"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group has-feedback">
|
<div class="form-group has-feedback">
|
||||||
<input type="password" name="password" class="form-control" placeholder="Password"/>
|
<input type="password" name="password" class="form-control" placeholder="Password"/>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<div class="col-xs-8">
|
<div class="col-xs-8">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="remember" value="1"> Remember Me
|
<input type="checkbox" name="remember" {% if remember %}checked="checked"{% endif %} value="1"> Remember Me
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<div class="form-group has-feedback">
|
||||||
<input type="email" name="email" class="form-control" placeholder="Email"/>
|
<input type="email" name="email" value="{{ email }}"class="form-control" placeholder="Email"/>
|
||||||
{% if showDemoWarning %}
|
{% if showDemoWarning %}
|
||||||
<p class="help-block">You will receive an email from Firefly III. If your email address
|
<p class="help-block">You will receive an email from Firefly III. If your email address
|
||||||
is incorrect, your account may not work.</p>
|
is incorrect, your account may not work.</p>
|
||||||
|
Reference in New Issue
Block a user