mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 02:11:12 -06:00
Better demo warning and budget indication.
This commit is contained in:
parent
baff9780de
commit
8bcc319b7d
@ -15,7 +15,6 @@ use Illuminate\Mail\Message;
|
||||
use Illuminate\Support\Facades\Lang;
|
||||
use Log;
|
||||
use Mail;
|
||||
use Request as Rq;
|
||||
use Session;
|
||||
use Swift_TransportException;
|
||||
use Validator;
|
||||
@ -143,9 +142,9 @@ class AuthController extends Controller
|
||||
*/
|
||||
public function showRegistrationForm()
|
||||
{
|
||||
$host = Rq::getHttpHost();
|
||||
$showDemoWarning = env('SHOW_DEMO_WARNING', false);
|
||||
|
||||
return view('auth.register', compact('host'));
|
||||
return view('auth.register', compact('showDemoWarning'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
<div class="register-box-body">
|
||||
<p class="login-box-msg">Register a new account</p>
|
||||
{% if host == 'geld.nder.be' or host == 'firefly.app' %}
|
||||
{% if showDemoWarning %}
|
||||
<p class="text-info login-box-msg">Please note that an account on this site will only
|
||||
work for one (1) month.</p>
|
||||
{% endif %}
|
||||
@ -27,7 +27,7 @@
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<input type="email" name="email" class="form-control" placeholder="Email"/>
|
||||
{% if host == 'geld.nder.be' or host == 'firefly.app' %}
|
||||
{% if showDemoWarning %}
|
||||
<p class="help-block">You will receive an email from Firefly III. If your email address
|
||||
is incorrect, your account may not work.</p>
|
||||
{% endif %}
|
||||
|
@ -63,7 +63,7 @@
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<!-- BUDGET ONLY WHEN CREATING A WITHDRAWAL -->
|
||||
{% if budgets|length > 0 %}
|
||||
{% if budgets|length > 1 %}
|
||||
{{ ExpandedForm.select('budget_id',budgets,0) }}
|
||||
{% else %}
|
||||
{{ ExpandedForm.select('budget_id',budgets,0, {helpText: trans('firefly.no_budget_pointer')}) }}
|
||||
|
Loading…
Reference in New Issue
Block a user