ui touch ups
This commit is contained in:
@@ -20,19 +20,23 @@
|
||||
{{ form_errors(form.title) }}
|
||||
</div>
|
||||
<div class="task-composer__details">
|
||||
<div>{{ form_row(form.estimatedDurationMinutes) }}</div>
|
||||
<div>{{ form_row(form.priority) }}</div>
|
||||
<div>{{ form_row(form.category) }}</div>
|
||||
<div>{{ form_row(form.scheduledFor) }}</div>
|
||||
<div>{{ form_row(form.isOutdoor) }}</div>
|
||||
<div>{{ form_row(form.weatherProfile) }}</div>
|
||||
<div class="task-composer__repeat">
|
||||
{{ form_widget(form.isRecurring, {attr: {class: 'task-composer__repeat-input'}}) }}
|
||||
{{ form_label(form.isRecurring) }}
|
||||
{{ form_errors(form.isRecurring) }}
|
||||
<div class="task-composer__repeat-fields">
|
||||
<div>{{ form_row(form.recurrenceInterval) }}</div>
|
||||
<div>{{ form_row(form.recurrenceUnit) }}</div>
|
||||
<div class="task-composer__row">
|
||||
<div>{{ form_row(form.estimatedDurationMinutes) }}</div>
|
||||
<div>{{ form_row(form.priority) }}</div>
|
||||
<div>{{ form_row(form.category) }}</div>
|
||||
</div>
|
||||
<div class="task-composer__row">
|
||||
<div>{{ form_row(form.scheduledFor) }}</div>
|
||||
<div>{{ form_row(form.isOutdoor) }}</div>
|
||||
<div>{{ form_row(form.weatherProfile) }}</div>
|
||||
<div class="task-composer__repeat">
|
||||
{{ form_widget(form.isRecurring, {attr: {class: 'task-composer__repeat-input'}}) }}
|
||||
{{ form_label(form.isRecurring) }}
|
||||
{{ form_errors(form.isRecurring) }}
|
||||
<div class="task-composer__repeat-fields">
|
||||
<div>{{ form_row(form.recurrenceInterval) }}</div>
|
||||
<div>{{ form_row(form.recurrenceUnit) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,38 +1,48 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Tasks{% endblock %}
|
||||
{% block title %}Tasks
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="container">
|
||||
<div class="task-list-header">
|
||||
<h1>Tasks</h1>
|
||||
<button class="weather-location" type="button" data-weather-location data-location-url="{{ path('app_task_location') }}" data-location-token="{{ csrf_token('weather_location') }}">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">my_location</span>
|
||||
{{ has_saved_location ? 'Update weather location' : 'Use my location for weather' }}
|
||||
</button>
|
||||
|
||||
<nav class="day-picker" aria-label="Choose task day">
|
||||
<a href="{{ path('app_task_index', {date: selected_date|date_modify('-1 day')|date('Y-m-d')}) }}" aria-label="Previous day"><span class="material-symbols-outlined">
|
||||
chevron_backward
|
||||
</span></a>
|
||||
<div>
|
||||
<strong>{{ selected_date|date('l, j F') }}</strong>
|
||||
{% if selected_date|date('Y-m-d') != 'now'|date('Y-m-d') %}
|
||||
<a href="{{ path('app_task_index') }}">Today</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<a href="{{ path('app_task_index', {date: selected_date|date_modify('+1 day')|date('Y-m-d')}) }}" aria-label="Next day"><span class="material-symbols-outlined">
|
||||
chevron_forward
|
||||
</span></a>
|
||||
</nav>
|
||||
{# <p class="weather-location__status" data-weather-location-status aria-live="polite"></p> #}
|
||||
{% if weather_forecast %}
|
||||
{{ include('task/_weather_forecast.html.twig', {forecast: weather_forecast}) }}
|
||||
{% endif %}
|
||||
|
||||
<nav class="day-picker" aria-label="Choose task day">
|
||||
<a href="{{ path('app_task_index', {date: selected_date|date_modify('-1 day')|date('Y-m-d')}) }}" aria-label="Previous day">
|
||||
<span class="material-symbols-outlined">
|
||||
chevron_backward
|
||||
</span>
|
||||
</a>
|
||||
<div>
|
||||
<strong>{{ selected_date|date('l, j F') }}</strong>
|
||||
{% if selected_date|date('Y-m-d') != 'now'|date('Y-m-d') %}
|
||||
<a href="{{ path('app_task_index') }}">Today</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<a href="{{ path('app_task_index', {date: selected_date|date_modify('+1 day')|date('Y-m-d')}) }}" aria-label="Next day">
|
||||
<span class="material-symbols-outlined">
|
||||
chevron_forward
|
||||
</span>
|
||||
</a>
|
||||
</nav>
|
||||
<form method="post" action="{{ path('weather_refresh') }}" class="weather-refresh">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
Update weather
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="weather-location" type="button" data-weather-location data-location-url="{{ path('app_task_location') }}" data-location-token="{{ csrf_token('weather_location') }}">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">my_location</span>
|
||||
{{ has_saved_location ? 'Update weather location' : 'Use my location for weather' }}
|
||||
</button>
|
||||
|
||||
<p class="weather-location__status" data-weather-location-status aria-live="polite"></p>
|
||||
{% if weather_forecast %}
|
||||
{{ include('task/_weather_forecast.html.twig', {forecast: weather_forecast}) }}
|
||||
{% endif %}
|
||||
<h1>Tasks</h1>
|
||||
{{ include('task/_task_composer.html.twig', {form: form}) }}
|
||||
|
||||
{{ include('task/_task_recommendations.html.twig', {
|
||||
|
||||
Reference in New Issue
Block a user