mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Some translations, playing around with popups. [skip ci]
This commit is contained in:
parent
ff0379182e
commit
23c91b9990
@ -60,7 +60,7 @@ class BudgetController extends Controller
|
|||||||
Session::put('budgets.create.url', URL::previous());
|
Session::put('budgets.create.url', URL::previous());
|
||||||
}
|
}
|
||||||
Session::forget('budgets.create.fromStore');
|
Session::forget('budgets.create.fromStore');
|
||||||
$subTitle = 'Create a new budget';
|
$subTitle = trans('firefly.create_new_budget');
|
||||||
|
|
||||||
return view('budgets.create', compact('subTitle'));
|
return view('budgets.create', compact('subTitle'));
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ $(function () {
|
|||||||
function updateSingleRange(e) {
|
function updateSingleRange(e) {
|
||||||
// get some values:
|
// get some values:
|
||||||
var input = $(e.target);
|
var input = $(e.target);
|
||||||
var id = input.data('id');
|
var id = input.data('id');
|
||||||
var value = parseInt(input.val());
|
var value = parseInt(input.val());
|
||||||
var spent = parseFloat($('#spent-' + id).data('value'));
|
var spent = parseFloat($('#spent-' + id).data('value'));
|
||||||
|
|
||||||
@ -95,7 +95,9 @@ function updateTotal() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateIncome(e) {
|
function updateIncome(e) {
|
||||||
$('#monthlyBudgetModal').empty().load('budgets/income').modal('show');
|
$('#monthlyBudgetModal').empty().load('budgets/income', function () {
|
||||||
|
$('#monthlyBudgetModal').modal('show');
|
||||||
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -112,7 +114,7 @@ function updateRanges() {
|
|||||||
var value = parseInt(input.val());
|
var value = parseInt(input.val());
|
||||||
|
|
||||||
// calculate sum:
|
// calculate sum:
|
||||||
sum += value
|
sum += value;
|
||||||
|
|
||||||
// update small display:
|
// update small display:
|
||||||
$('#budget-range-display-' + id).text('\u20AC ' + value.toFixed(2));
|
$('#budget-range-display-' + id).text('\u20AC ' + value.toFixed(2));
|
||||||
|
@ -20,6 +20,10 @@ return [
|
|||||||
'from' => 'From',
|
'from' => 'From',
|
||||||
'to' => 'To',
|
'to' => 'To',
|
||||||
|
|
||||||
|
'showEverything' => 'Show everything',
|
||||||
|
'create_new_budget' => 'Create a new budget',
|
||||||
|
'store_new_budget' => ' Store new budget',
|
||||||
|
|
||||||
'availableIn' => 'Available in :date',
|
'availableIn' => 'Available in :date',
|
||||||
'transactionsWithoutBudget' => 'Expenses without budget',
|
'transactionsWithoutBudget' => 'Expenses without budget',
|
||||||
'transactionsWithoutBudgetDate' => 'Expenses without budget in :date',
|
'transactionsWithoutBudgetDate' => 'Expenses without budget in :date',
|
||||||
|
@ -20,6 +20,10 @@ return [
|
|||||||
'from' => 'Van',
|
'from' => 'Van',
|
||||||
'to' => 'Tot',
|
'to' => 'Tot',
|
||||||
|
|
||||||
|
'showEverything' => 'Laat alles zien',
|
||||||
|
'create_new_budget' => 'Maak een nieuw budget',
|
||||||
|
'store_new_budget' => 'Sla nieuw budget op',
|
||||||
|
|
||||||
'availableIn' => 'Beschikbaar in :date',
|
'availableIn' => 'Beschikbaar in :date',
|
||||||
'transactionsWithoutBudget' => 'Uitgaven zonder budget',
|
'transactionsWithoutBudget' => 'Uitgaven zonder budget',
|
||||||
'transactionsWithoutBudgetDate' => 'Uitgaven zonder budget in :date',
|
'transactionsWithoutBudgetDate' => 'Uitgaven zonder budget in :date',
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||||
<p>
|
<p>
|
||||||
<button type="submit" class="btn btn-lg btn-success">
|
<button type="submit" class="btn btn-lg btn-success">
|
||||||
<i class="fa fa-plus-circle"></i> Store new budget
|
<i class="fa fa-plus-circle"></i> {{ 'store_new_budget'|_ }}
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
{% extends "./layout/default.twig" %}
|
{% extends "./layout/default.twig" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, budget) }}
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, budget) }}
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<p class="lead">Use budgets to organize and limit your expenses.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ Form.model(budget, {'class' : 'form-horizontal','id' : 'update','url' : route('budgets.update',budget.id) } ) }}
|
{{ Form.model(budget, {'class' : 'form-horizontal','id' : 'update','url' : route('budgets.update',budget.id) } ) }}
|
||||||
<input type="hidden" name="id" value="{{budget.id}}" />
|
<input type="hidden" name="id" value="{{budget.id}}" />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
<form style="display: inline;" id="income" action="{{route('budgets.postIncome')}}" method="POST">
|
<div class="modal-dialog">
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}"
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
<div class="modal-dialog">
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">{{ 'close'|_ }}</span></button>
|
||||||
<div class="modal-content">
|
<h4 class="modal-title" id="myModalLabel">Update (expected) available amount for {{Session.get('start').format('F Y')}}</h4>
|
||||||
<div class="modal-header">
|
</div>
|
||||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">{{ 'close'|_ }}</span></button>
|
<form style="display: inline;" id="income" action="{{route('budgets.postIncome')}}" method="POST">
|
||||||
<h4 class="modal-title" id="myModalLabel">Update (expected) available amount for {{Session.get('start').format('F Y')}}</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
<input type="hidden" name="_token" value="{{ csrf_token() }}"
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-addon">{{ getCurrencySymbol() }}</div>
|
<div class="input-group-addon">{{ getCurrencySymbol() }}</div>
|
||||||
<input step="any" class="form-control" id="amount" value="{{ amount.data }}" autocomplete="off" name="amount" type="number">
|
<input step="any" class="form-control" id="amount" value="{{ amount.data }}" autocomplete="off" name="amount" type="number">
|
||||||
@ -17,6 +16,6 @@
|
|||||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>
|
||||||
<button type="submit" class="btn btn-primary">Update</button>
|
<button type="submit" class="btn btn-primary">Update</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</div>
|
@ -185,6 +185,8 @@
|
|||||||
|
|
||||||
<!-- DIALOG -->
|
<!-- DIALOG -->
|
||||||
<div class="modal fade" id="monthlyBudgetModal">
|
<div class="modal fade" id="monthlyBudgetModal">
|
||||||
|
|
||||||
|
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -29,29 +29,29 @@
|
|||||||
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
Transactions
|
{{ 'transactions'|_ }}
|
||||||
</div>
|
</div>
|
||||||
{% include 'list/journals.twig' %}
|
{% include 'list/journals.twig' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-3 col-md-3 col-sm-5">
|
<div class="col-lg-3 col-md-3 col-sm-5">
|
||||||
{% if limits|length == 1 %}
|
{% if limits|length == 1 %}
|
||||||
<p class="small text-center"><a href="{{ route('budgets.show',budget.id) }}">Show everything</a></p>
|
<p class="small text-center"><a href="{{ route('budgets.show',budget.id) }}">{{ 'showEverything'|_ }}</a></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for limit in limits %}
|
{% for limit in limits %}
|
||||||
{% for rep in limit.limitRepetitions %}
|
{% for rep in limit.limitRepetitions %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<a href="{{route('budgets.show',[budget.id,rep.id])}}">{{rep.startdate.format('F Y')}}</a>
|
<a href="{{route('budgets.show',[budget.id,rep.id])}}">{{rep.startdate.formatLocalized(monthFormat)}}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
Amount: {{ rep.amount|formatAmount }}
|
{{ 'amount'|_ }}: {{ rep.amount|formatAmount }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
Spent: {{ spentInRepetitionCorrected(rep)|formatAmount }}
|
{{ 'spent'|_ }}: {{ spentInRepetitionCorrected(rep)|formatAmount }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -79,7 +79,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if limits|length == 1 %}
|
{% if limits|length == 1 %}
|
||||||
<p class="small text-center"><a href="{{route('budgets.show',budget.id)}}">Show everything</a></p>
|
<p class="small text-center"><a href="{{route('budgets.show',budget.id)}}">{{ 'showEverything'|_ }}</a></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,18 +1,16 @@
|
|||||||
|
<div class="modal-dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-content">
|
||||||
<div class="modal-content">
|
<div class="modal-header">
|
||||||
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">{{ 'close'|_ }}</span></button>
|
||||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">{{ 'close'|_ }}</span></button>
|
<h4 class="modal-title" id="myModalLabel">Add money to {{ piggyBank.name }}</h4>
|
||||||
<h4 class="modal-title" id="myModalLabel">Add money to {{ piggyBank.name }}</h4>
|
</div>
|
||||||
</div>
|
<form style="display: inline;" id="add" action="{{ route('piggy-banks.add', piggyBank.id) }}" method="POST">
|
||||||
<form style="display: inline;" id="add" action="{{ route('piggy-banks.add', piggyBank.id) }}" method="POST">
|
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p>
|
<p>
|
||||||
The maximum amount you can add is {{ maxAmount|formatAmount }}.
|
The maximum amount you can add is {{ maxAmount|formatAmount }}.
|
||||||
</p>
|
</p>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-addon">{{ getCurrencySymbol() }}</div>
|
<div class="input-group-addon">{{ getCurrencySymbol()|raw }}</div>
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
||||||
<input step="any" class="form-control" id="amount" autocomplete="off" name="amount" max="{{ maxAmount|round(2) }}" type="number" />
|
<input step="any" class="form-control" id="amount" autocomplete="off" name="amount" max="{{ maxAmount|round(2) }}" type="number" />
|
||||||
</div>
|
</div>
|
||||||
@ -21,7 +19,7 @@
|
|||||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>
|
||||||
<button type="submit" class="btn btn-primary">Add</button>
|
<button type="submit" class="btn btn-primary">Add</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
The maximum amount you can remove is {{ currentRelevantRepAmount(piggyBank)|formatAmount }}
|
The maximum amount you can remove is {{ currentRelevantRepAmount(piggyBank)|formatAmount }}
|
||||||
</p>
|
</p>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-addon">{{ getCurrencySymbol() }}</div>
|
<div class="input-group-addon">{{ getCurrencySymbol()|raw }}</div>
|
||||||
<input step="any" class="form-control" id="amount" autocomplete="off" name="amount" max="{{ currentRelevantRepAmount(piggyBank)|round(2) }}" type="number">
|
<input step="any" class="form-control" id="amount" autocomplete="off" name="amount" max="{{ currentRelevantRepAmount(piggyBank)|round(2) }}" type="number">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user