brotherton-erpnext/erpnext/hr/notification/training_scheduled/training_scheduled.md
Anurag Mishra d021db1cb1
fix: Training event (#26164)
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
2021-06-23 12:59:43 +05:30

1.9 KiB

{{_("Training Event:")}} {{ doc.event_name }}
{{ doc.introduction }}
  • {{_("Event Location")}}: {{ doc.location }}
  • {% set start = frappe.utils.get_datetime(doc.start_time) %} {% set end = frappe.utils.get_datetime(doc.end_time) %} {% if start.date() == end.date() %}
  • {{_("Date")}}: {{ start.strftime("%A, %d %b %Y") }}
  • {{_("Timing")}}: {{ start.strftime("%I:%M %p") + ' to ' + end.strftime("%I:%M %p") }}
  • {% else %}
  • {{_("Start Time")}}: {{ start.strftime("%A, %d %b %Y at %I:%M %p") }}
  • {{_("End Time")}}: {{ end.strftime("%A, %d %b %Y at %I:%M %p") }}
  • {% endif %}
  • {{ _("Event Link") }}: {{ frappe.utils.get_link_to_form(doc.doctype, doc.name) }}
  • {% if doc.is_mandatory %}
  • {{ _("Note: This Training Event is mandatory") }}
  • {% endif %}