mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Can have link in success message to the transaction it refers to
This commit is contained in:
@@ -369,7 +369,7 @@ class SingleController extends Controller
|
|||||||
|
|
||||||
event(new StoredTransactionJournal($journal, $data['piggy_bank_id']));
|
event(new StoredTransactionJournal($journal, $data['piggy_bank_id']));
|
||||||
|
|
||||||
session()->flash('success', (string)trans('firefly.stored_journal', ['description' => $journal->description]));
|
session()->flash('success_uri', (string)trans('firefly.stored_journal', ['description' => "<a href='/transactions/show/{$journal->id}'>{$journal->description}</a>"]));
|
||||||
app('preferences')->mark();
|
app('preferences')->mark();
|
||||||
|
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
|
@@ -18,6 +18,16 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{# SUCCESS MESSAGE WITH URL (ALWAYS SINGULAR) #}
|
||||||
|
{% if session_has('success_uri') %}
|
||||||
|
<div class="alert alert-success alert-dismissible" role="alert">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">
|
||||||
|
<span>×</span><span class="sr-only">{{ 'close'|_ }}</span>
|
||||||
|
</button>
|
||||||
|
<strong>{{ 'flash_success'|_ }}</strong> {{ session('success_uri') | striptags('<a>') | raw }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{# INFO MESSAGE (CAN BE MULTIPLE) #}
|
{# INFO MESSAGE (CAN BE MULTIPLE) #}
|
||||||
{% if session_has('info') %}
|
{% if session_has('info') %}
|
||||||
<div class="alert alert-info alert-dismissible" role="alert">
|
<div class="alert alert-info alert-dismissible" role="alert">
|
||||||
|
Reference in New Issue
Block a user