{% extends "nav.html" %} {% block content %} {% if id.is_some() %} Bearbeite Vefügbarkeit für den {{ date.format("%d.%m.%Y") }} {% else %} Neue Vefügbarkeit für den {{ date.format("%d.%m.%Y") }} {% endif %} Dauer {% let time_url -%} {% if id.is_some() -%} {% let time_url = "/availabillity/edit/{}?wholeday="|format(id.unwrap()) -%} {% else -%} {% let time_url = "/availabillity/new?date={}&wholeday="|format(date) -%} {% endif -%} ganztägig zeitweise Von - Bis {% let times = ("00:00".to_string(), "23:59".to_string()) -%} {% if let Some(times) = time -%} {% if let AvailabilityTime::Temporarily(start, end) = times -%} {% let times = (start.to_string(), end.to_string()) -%} {% endif -%} {% endif -%} noch mögliche Zeiträume: {% for (s, e) in slot_suggestions %} {{ s }} - {{ e }} {% endfor %} Kommentar {{ comment.unwrap_or("") }} {% if id.is_some() %} Speichern {% else %} Erstellen {% endif %} Zurück {% endblock %}
noch mögliche Zeiträume: