{% load i18n %} {% if template.role == "submission.state.accepted" %} {% translate "Accept email" context "email template: acceptance notification" %} {% elif template.role == "submission.state.rejected" %} {% translate "Reject email" context "email template: rejection notification" %} {% elif template.role == "schedule.new" %} {% translate "Schedule update" context "email template: schedule change notification" %} {% elif template.role == "question.reminder" %} {% translate "Custom fields reminder" %} {% elif template.role %} {{ template.get_role_display }} {% elif show_custom %} {% translate "Custom email" context "email template: custom/user-created" %} {% endif %}