Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 251a65ec authored by Volker Krause's avatar Volker Krause

Improve display of rental car bookings

parent f349e16d
......@@ -91,6 +91,7 @@ GRANTLEE_MAKE_GADGET(FoodEstablishmentReservation)
GRANTLEE_MAKE_GADGET(RentalCarReservation)
GRANTLEE_MAKE_GADGET(RentalCar)
GRANTLEE_MAKE_GADGET(Brand)
GRANTLEE_MAKE_GADGET(Organization)
SemanticRenderer::SemanticRenderer()
{
......@@ -123,6 +124,7 @@ SemanticRenderer::SemanticRenderer()
Grantlee::registerMetaType<RentalCarReservation>();
Grantlee::registerMetaType<RentalCar>();
Grantlee::registerMetaType<Brand>();
Grantlee::registerMetaType<Organization>();
}
bool SemanticRenderer::render(const MimeTreeParser::MessagePartPtr &msgPart, MessageViewer::HtmlWriter *htmlWriter, MessageViewer::RenderContext *context) const
......
<div style="font-size:125%;">{{ res.pickupTime|formatDateTime }} - {{ res.dropoffTime|formatDateTime }}</div>
<div>{% i18n "Reservation Number: %1" res.reservationNumber %}</div>
{% if res.underName.name %}
<div>{% i18n "Under Name: %1" res.underName.name %}</div>
{% endif %}
<div>{{ trip.address|formatAddress|safe }}</div>
<div>
{% if trip.rentalCompany.name %}
{{ trip.rentalCompany.name }}:
{% endif %}
{{ trip.name }}
{% if trip.name and trip.model %}({% endif %}
{{ trip.model }}
{% if trip.name and trip.model %}){% endif %}
</div>
<div>{{ res.pickupTime|formatDateTime }} - {{ res.dropoffTime|formatDateTime }}</div>
<div>
{{ res.pickupLocation.name }}
{{ res.pickupLocation|formatAddress|safe }}
</div>
{% include ":/org.kde.messageviewer/semantic/actions.html" %}
<div style="clear:both;"></div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment