{% extends "base.html" %}

{% block title %}{{ page_title }}{% endblock %}
{% block meta_description %}{{ meta_description }}{% endblock %}

{% block content %}
<section class="success-wrap">
  <div class="container">
    <div class="success-card glass-card mx-auto">
      <span class="success-mark">✓</span>
      <h1>{{ source.name }} is ready for intake</h1>
      <p class="lead">The source is registered as <strong>{{ source.get_family_display }}</strong> with status <strong>{{ source.get_status_display }}</strong>.</p>
      <dl class="detail-list">
        <div><dt>URL</dt><dd><a href="{{ source.url }}" target="_blank" rel="noopener">{{ source.url }}</a></dd></div>
        <div><dt>Offers attached</dt><dd>{{ source.job_count }}</dd></div>
      </dl>
      <div class="d-flex flex-wrap justify-content-center gap-3 mt-4">
        <a class="btn btn-accent rounded-pill px-4" href="{% url 'job_create' %}">Add offer from this source</a>
        <a class="btn btn-outline-dark rounded-pill px-4" href="{% url 'home' %}">Back to dashboard</a>
      </div>
    </div>
  </div>
</section>
{% endblock %}
