Better demo warning and budget indication.

This commit is contained in:
James Cole 2016-04-29 11:34:48 +02:00
parent baff9780de
commit 8bcc319b7d
3 changed files with 5 additions and 6 deletions

View File

@ -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'));
}
/**

View File

@ -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 %}

View File

@ -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')}) }}