+ {{ frappe.utils.fmt_money(batch_info.amount, 0, batch_info.currency)
+ }}
+
+
+
+ {{ courses | length }} {{ _("Courses") }}
+
- {% if batch_info.seat_count %}
- {% if seats_left %}
-
- {{ _("Seats Available") }}: {{ seats_left }}
-
- {% else %}
-
- {{ _("No seats left") }}
-
- {% endif %}
- {% endif %}
-
- {% if batch_info.paid_batch %}
-
- {{ frappe.utils.fmt_money(batch_info.amount, 0, batch_info.currency) }}
-
- {% endif %}
-
-
-
- {{ courses | length }} {{ _("Courses") }}
-
-
-
-
-
- {{ frappe.utils.format_date(batch_info.start_date, "long") }}
-
+
+
+
+ {{ frappe.utils.format_date(batch_info.start_date, "long") }}
+
{% if batch_info.start_date != batch_info.end_date %}
- {{ frappe.utils.format_date(batch_info.end_date, "long") }}
{% endif %}
-
+
- {% if batch_info.start_time and batch_info.end_time %}
-
-
-
- {{ frappe.utils.format_time(batch_info.start_time, "hh:mm a") }} -
-
-
- {{ frappe.utils.format_time(batch_info.end_time, "hh:mm a") }}
-
-
- {% endif %}
+ {% if batch_info.start_time and batch_info.end_time %}
+
+
+
+ {{ frappe.utils.format_time(batch_info.start_time, "hh:mm a") }}
+ -
+
+
+ {{ frappe.utils.format_time(batch_info.end_time, "hh:mm a") }}
+
+
+ {% endif %}
-
- {% if is_moderator or is_evaluator %}
-
- {{ _("Manage Batch") }}
-
- {% elif batch_info.paid_batch %}
-
- {{ _("Register Now") }}
-
- {% elif batch_info.allow_self_enrollment and batch_info.seat_count and seats_left %}
-
- {% else %}
-
- {{ _("To join this batch, please contact the Administrator.") }}
-
- {% endif %}
-
- {% if is_moderator %}
-
- {% endif %}
-
+ {% if is_moderator or is_evaluator %}
+
+ {{ _("Manage Batch") }}
+
+ {% elif batch_info.paid_batch and batch_info.start_date >
+ frappe.utils.getdate() %}
+
+ {{ _("Register Now") }}
+
+ {% elif batch_info.allow_self_enrollment and batch_info.seat_count
+ and seats_left and batch_info.start_date > frappe.utils.getdate() %}
+
+ {% else %}
+
+ {{ _("To join this batch, please contact the Administrator.") }}
+
+ {% endif %}
+