Mobile alignments and toolbar #151 (#157)

* improved toolbar position #151
* fixed alignments on mobile #151
* fixed moment js #151
This commit is contained in:
Kevin Papst
2018-06-05 23:15:25 +02:00
committed by GitHub
parent 0445a255d0
commit 6eef9f6f37
13 changed files with 42 additions and 20 deletions

View File

@@ -1,11 +1,16 @@
{% extends 'base.html.twig' %}
{% import "macros/widgets.html.twig" as widgets %}
{% import "macros/datatables.html.twig" as tables %}
{% import "macros/toolbar.html.twig" as toolbar %}
{% block page_title %}{{ 'admin_timesheet.title'|trans }}{% endblock %}
{% block page_subtitle %}{{ 'admin_timesheet.subtitle'|trans }}{% endblock %}
{% block page_actions %}{{ widgets.page_actions({'filter': '#collapseTimesheetAdmin', 'plus-square': path('admin_timesheet_create')}) }}{% endblock %}
{% block main_before %}
{{ toolbar.toolbar(toolbarForm, 'collapseTimesheetAdmin') }}
{% endblock %}
{% block main %}
{% if entries.count == 0 %}
{{ widgets.callout('warning', 'error.no_entries_found') }}
@@ -17,16 +22,14 @@
{% set columns = columns|merge({'label.starttime': 'hidden-xs', 'label.endtime': 'hidden-xs'}) %}
{% endif %}
{% set columns = columns|merge({
{{ tables.data_table_header(columns|merge({
'label.duration': '',
'label.rate': '',
'label.activity': 'hidden-xs hidden-sm',
'label.username': 'hidden-xs',
'label.description': 'hidden-xs hidden-sm',
'label.actions': '',
}) %}
{{ tables.data_table_header(columns, toolbarForm, 'collapseTimesheetAdmin') }}
})) }}
{% for entry in entries %}
<tr>