File reformatting.

This commit is contained in:
James Cole 2015-12-18 16:37:45 +01:00
parent e7562781f7
commit 813fb679a7
16 changed files with 72 additions and 63 deletions

View File

@ -26,7 +26,7 @@
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group has-feedback">
<input type="email" name="email" class="form-control" placeholder="Email" />
<input type="email" name="email" class="form-control" placeholder="Email"/>
{% if host == 'geld.nder.be' or host == 'firefly.app' %}
<p class="help-block">You will receive an email from Firefly III. If your email address
is incorrect, your account may not work.</p>

View File

@ -24,7 +24,8 @@
</div>
<div class="col-lg-6 col-md-4 col-sm-3" style="text-align:right;">
<small>{{ trans('firefly.availableIn',{date : period }) }}:
<a href="#" class="updateIncome"><span id="budgetIncomeTotal" data-value="{{ budgetIncomeTotal }}">{{ budgetIncomeTotal|formatAmount }}</span></a>
<a href="#" class="updateIncome"><span id="budgetIncomeTotal"
data-value="{{ budgetIncomeTotal }}">{{ budgetIncomeTotal|formatAmount }}</span></a>
</small>
</div>
</div>

View File

@ -97,12 +97,12 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript">
var budgetID = {{budget.id}};
var budgetID = {{ budget.id }};
{% if repetition.id %}
var repetitionID = {{repetition.id}};
var year = {{repetition.startdate.format('Y')}};
var repetitionID = {{ repetition.id }};
var year = {{ repetition.startdate.format('Y') }};
{% else %}
var year = {{Session.get('start').format('Y')}};
var year = {{ Session.get('start').format('Y') }};
{% endif %}
</script>

View File

@ -59,6 +59,7 @@
}
</script>
</body>

View File

@ -164,11 +164,11 @@
// date range picker configuration:
var dateRangeConfig = {
startDate: moment("{{Session.get('start').format('Y-m-d')}}"),
endDate: moment("{{Session.get('end').format('Y-m-d')}}"),
linkTitle: "{{Session.get('start').formatLocalized(monthAndDayFormat)}} - {{Session.get('end').formatLocalized(monthAndDayFormat)}}",
URL: "{{route('daterange')}}",
firstDate: moment("{{Session.get('first').format('Y-m-d')}}"),
startDate: moment("{{ Session.get('start').format('Y-m-d') }}"),
endDate: moment("{{ Session.get('end').format('Y-m-d') }}"),
linkTitle: "{{ Session.get('start').formatLocalized(monthAndDayFormat) }} - {{ Session.get('end').formatLocalized(monthAndDayFormat) }}",
URL: "{{ route('daterange') }}",
firstDate: moment("{{ Session.get('first').format('Y-m-d') }}"),
currentMonth: "{{ currentMonthName }}",
previousMonth: "{{ previousMonthName }}",
nextMonth: "{{ nextMonthName }}",
@ -180,10 +180,10 @@
toLabel: '{{ 'to'|_ }}'
};
var token = "{{csrf_token()}}";
var token = "{{ csrf_token() }}";
var language = "{{ language }}";
var currencyCode = '{{getCurrencyCode() }}';
var currencySymbol = '{{getCurrencySymbol()|raw }}';
var currencyCode = '{{ getCurrencyCode() }}';
var currencySymbol = '{{ getCurrencySymbol()|raw }}';
</script>
@ -210,12 +210,12 @@
// send an event if relevant:
{% if Session.has('gaEventCategory') and Session.has('gaEventAction') and not Session.has('gaEventLabel') %}
ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}');
ga('send', 'event', '{{ Session.get('gaEventCategory') }}', '{{ Session.get('gaEventAction') }}');
{% endif %}
// send event if relevant:
{% if Session.has('gaEventCategory') and Session.has('gaEventAction') and Session.has('gaEventLabel') %}
ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}', '{{ Session.get('gaEventLabel') }}');
ga('send', 'event', '{{ Session.get('gaEventCategory') }}', '{{ Session.get('gaEventAction') }}', '{{ Session.get('gaEventLabel') }}');
{% endif %}
</script>
{% endif %}

View File

@ -67,12 +67,12 @@
// send an event if relevant:
{% if Session.has('gaEventCategory') and Session.has('gaEventAction') and not Session.has('gaEventLabel') %}
ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}');
ga('send', 'event', '{{ Session.get('gaEventCategory') }}', '{{ Session.get('gaEventAction') }}');
{% endif %}
// send event if relevant:
{% if Session.has('gaEventCategory') and Session.has('gaEventAction') and Session.has('gaEventLabel') %}
ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}', '{{ Session.get('gaEventLabel') }}');
ga('send', 'event', '{{ Session.get('gaEventCategory') }}', '{{ Session.get('gaEventAction') }}', '{{ Session.get('gaEventLabel') }}');
{% endif %}
</script>
{% endif %}

View File

@ -68,12 +68,12 @@
// send an event if relevant:
{% if Session.has('gaEventCategory') and Session.has('gaEventAction') and not Session.has('gaEventLabel') %}
ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}');
ga('send', 'event', '{{ Session.get('gaEventCategory') }}', '{{ Session.get('gaEventAction') }}');
{% endif %}
// send event if relevant:
{% if Session.has('gaEventCategory') and Session.has('gaEventAction') and Session.has('gaEventLabel') %}
ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}', '{{ Session.get('gaEventLabel') }}');
ga('send', 'event', '{{ Session.get('gaEventCategory') }}', '{{ Session.get('gaEventAction') }}', '{{ Session.get('gaEventLabel') }}');
{% endif %}
</script>
{% endif %}

View File

@ -102,7 +102,7 @@
<script type="text/javascript" src="js/Chart.StackedBar.js"></script>
<script type="text/javascript" src="js/charts.js"></script>
<script type="text/javascript">
var year = '{{start.year}}';
var year = '{{ start.year }}';
// to report another URL:
var startDate = '{{ start.format('Ymd') }}';

View File

@ -14,7 +14,7 @@
<div class="box-body">
<form class="form-horizontal" id="report-form" action="{{ route('reports.index') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
<div class="form-group">
<label for="inputReportType" class="col-sm-3 control-label">{{ 'report_type'|_ }}</label>
@ -64,7 +64,8 @@
<ul class="list-inline">
{% for month in data.months %}
<li>
<a data-start="{{ month.start }}" data-end="{{ month.end }}" class="date-select" href="#">{{ month.formatted }}</a>
<a data-start="{{ month.start }}" data-end="{{ month.end }}" class="date-select"
href="#">{{ month.formatted }}</a>
</li>
{% endfor %}
</ul>

View File

@ -55,7 +55,7 @@
{% block scripts %}
<script type="text/javascript">
{% if Input.old('latitude') %}
var latitude = "{{Input.old('latitude')}}";
var latitude = "{{ Input.old('latitude') }}";
{% else %}
var latitude = "52.3167";
{% endif %}
@ -67,13 +67,13 @@
{% endif %}
{% if Input.old('longitude') %}
var longitude = "{{Input.old('longitude')}}";
var longitude = "{{ Input.old('longitude') }}";
{% else %}
var longitude = "5.5500";
{% endif %}
{% if Input.old('zoomLevel') %}
var zoomLevel = {{Input.old('zoomLevel')}};
var zoomLevel = {{ Input.old('zoomLevel') }};
{% else %}
var zoomLevel = 6;
{% endif %}

View File

@ -59,7 +59,7 @@
{% block scripts %}
<script type="text/javascript">
{% if Input.old('latitude') %}
var latitude = "{{Input.old('latitude')}}";
var latitude = "{{ Input.old('latitude') }}";
{% else %}
var latitude = "52.3167";
{% endif %}
@ -71,13 +71,13 @@
{% endif %}
{% if Input.old('longitude') %}
var longitude = "{{Input.old('longitude')}}";
var longitude = "{{ Input.old('longitude') }}";
{% else %}
var longitude = "5.5500";
{% endif %}
{% if Input.old('zoomLevel') %}
var zoomLevel = {{Input.old('zoomLevel')}};
var zoomLevel = {{ Input.old('zoomLevel') }};
{% else %}
var zoomLevel = 6;
{% endif %}

View File

@ -19,8 +19,10 @@
<div class="btn-group">
<button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></button>
<ul class="dropdown-menu" role="menu">
<li><a href="{{ route('tags.edit',tag.id) }}"><i class="fa fa-pencil fa-fw"></i> {{ trans('firefly.edit_tag',{tag: tag.tag}) }}</a></li>
<li><a href="{{ route('tags.delete',tag.id) }}"><i class="fa fa-trash fa-fw"></i> {{ trans('firefly.delete_tag',{tag: tag.tag}) }}</a></li>
<li><a href="{{ route('tags.edit',tag.id) }}"><i class="fa fa-pencil fa-fw"></i> {{ trans('firefly.edit_tag',{tag: tag.tag}) }}
</a></li>
<li><a href="{{ route('tags.delete',tag.id) }}"><i
class="fa fa-trash fa-fw"></i> {{ trans('firefly.delete_tag',{tag: tag.tag}) }}</a></li>
</ul>
</div>
</div>
@ -50,8 +52,10 @@
<div class="btn-group">
<button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></button>
<ul class="dropdown-menu" role="menu">
<li><a href="{{ route('tags.edit',tag.id) }}"><i class="fa fa-pencil fa-fw"></i> {{ trans('firefly.edit_tag',{tag: tag.tag}) }}</a></li>
<li><a href="{{ route('tags.delete',tag.id) }}"><i class="fa fa-trash fa-fw"></i> {{ trans('firefly.delete_tag',{tag: tag.tag}) }}</a></li>
<li><a href="{{ route('tags.edit',tag.id) }}"><i class="fa fa-pencil fa-fw"></i> {{ trans('firefly.edit_tag',{tag: tag.tag}) }}
</a></li>
<li><a href="{{ route('tags.delete',tag.id) }}"><i
class="fa fa-trash fa-fw"></i> {{ trans('firefly.delete_tag',{tag: tag.tag}) }}</a></li>
</ul>
</div>
</div>
@ -80,8 +84,10 @@
<div class="btn-group">
<button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></button>
<ul class="dropdown-menu" role="menu">
<li><a href="{{ route('tags.edit',tag.id) }}"><i class="fa fa-pencil fa-fw"></i> {{ trans('firefly.edit_tag',{tag: tag.tag}) }}</a></li>
<li><a href="{{ route('tags.delete',tag.id) }}"><i class="fa fa-trash fa-fw"></i> {{ trans('firefly.delete_tag',{tag: tag.tag}) }}</a></li>
<li><a href="{{ route('tags.edit',tag.id) }}"><i class="fa fa-pencil fa-fw"></i> {{ trans('firefly.edit_tag',{tag: tag.tag}) }}
</a></li>
<li><a href="{{ route('tags.delete',tag.id) }}"><i
class="fa fa-trash fa-fw"></i> {{ trans('firefly.delete_tag',{tag: tag.tag}) }}</a></li>
</ul>
</div>
</div>
@ -96,6 +102,6 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript">
var tagID = {{tag.id}};
var tagID = {{ tag.id }};
</script>
{% endblock %}

View File

@ -103,7 +103,7 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript">
var what = "{{what}}";
var what = "{{ what }}";
</script>
<script type="text/javascript" src="js/bootstrap3-typeahead.min.js"></script>
<script type="text/javascript" src="js/bootstrap-tagsinput.min.js"></script>