<div class="np-training-session-cta">
	<div class="np-training-session-cta-buttons">
		<form
			action="{% route training_session_registration, id: training_session.id %}"
			method="post"
		>
			{% form_authenticity_token %}

			{% if training_session.internal? and training_session.approved? %}
				{% if features.training_events_google_calendar? %}
					{% include "training_session_calendars" %}
					<button type="submit" class="np-button np-button-big np-button-secondary">
						<span data-lang="DE">{% t .unregister %}</span>
						<span data-lang="EN">Unregister</span>
					</button>
				{% else %}
					<button type="submit" class="np-button-font-color np-button np-button-big">						
						<span data-lang="DE">{% t .unregister %}</span>
						<span data-lang="EN">Unregister</span>
					</button>
				{% endif %}

				<input type="hidden" name="_method" value="delete" />
			{% endif %}

			{% if training_session.not_registered? %}
				<button type="submit" class="np-top-button np-button np-button-big">
					<span data-lang="DE">{% t .register %}</span>
					<span data-lang="EN">Register</span>				
				</button>
			{% endif %}
		</form>
	</div>
</div>