@@ -86,7 +86,7 @@ <h2>{{ sponsorship.sponsor.name }}</h2>
8686 < a href ="{% url 'manage_sponsorship_notify' sponsorship.pk %} " class ="btn btn-secondary "> Notify</ a >
8787 < a href ="{% url 'manage_sponsorship_export' %}?selected_ids={{ sponsorship.pk }} " class ="btn btn-secondary " style ="font-size:11px; " title ="Export this sponsorship as CSV "> CSV</ a >
8888 < a href ="{% url 'manage_sponsorship_export_assets' sponsorship.pk %} " class ="btn btn-secondary " style ="font-size:11px; "> Assets</ a >
89- {% if sponsorship.sponsor %}< a href ="{{ sponsorship.detail_url }} " target =" _blank " rel =" noopener noreferrer " class ="btn btn-secondary " style ="font-size:11px; " title ="View what the sponsor sees "> Sponsor View</ a > {% endif %}
89+ {% if sponsorship.sponsor %}< a href ="{{ sponsorship.detail_url }} " class ="btn btn-secondary " style ="font-size:11px; " title ="View what the sponsor sees "> Sponsor View</ a > {% endif %}
9090 {% if can_lock %}
9191 < form method ="post " action ="{% url 'manage_sponsorship_lock' sponsorship.pk %} " style ="display:inline; ">
9292 {% csrf_token %}< input type ="hidden " name ="action " value ="lock ">
@@ -381,26 +381,26 @@ <h2>Contract</h2>
381381 <!-- Document downloads -->
382382 < div style ="border-top:1px solid #f0f0f0;padding-top:12px;display:flex;gap:12px;flex-wrap:wrap; ">
383383 <!-- Preview (renders live from contract template data) -->
384- < a href ="{% url 'manage_contract_preview' sponsorship.pk %}?format=pdf " target =" _blank " rel =" noopener noreferrer " style ="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#f7f8fa;border:1px solid #e0e0e0;border-radius:4px;font-size:12px;color:#333;text-decoration:none; ">
384+ < a href ="{% url 'manage_contract_preview' sponsorship.pk %}?format=pdf " style ="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#f7f8fa;border:1px solid #e0e0e0;border-radius:4px;font-size:12px;color:#333;text-decoration:none; ">
385385 < span style ="color:#e74c3c;font-weight:700; "> PDF</ span > Preview
386386 </ a >
387- < a href ="{% url 'manage_contract_preview' sponsorship.pk %}?format=docx " target =" _blank " rel =" noopener noreferrer " style ="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#f7f8fa;border:1px solid #e0e0e0;border-radius:4px;font-size:12px;color:#333;text-decoration:none; ">
387+ < a href ="{% url 'manage_contract_preview' sponsorship.pk %}?format=docx " style ="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#f7f8fa;border:1px solid #e0e0e0;border-radius:4px;font-size:12px;color:#333;text-decoration:none; ">
388388 < span style ="color:#3776ab;font-weight:700; "> DOCX</ span > Preview
389389 </ a >
390390 <!-- Stored final documents: "Sent" only once they were emailed to the sponsor -->
391391 {% if contract.document %}
392- < a href ="{{ contract.document.url }} " target =" _blank " rel =" noopener noreferrer " style ="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#fff8dc;border:1px solid #ffd43b;border-radius:4px;font-size:12px;color:#333;text-decoration:none; ">
392+ < a href ="{{ contract.document.url }} " style ="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#fff8dc;border:1px solid #ffd43b;border-radius:4px;font-size:12px;color:#333;text-decoration:none; ">
393393 < span style ="color:#e74c3c;font-weight:700; "> PDF</ span > {% if contract.sent_on %}Sent{% else %}Generated{% endif %}
394394 </ a >
395395 {% endif %}
396396 {% if contract.document_docx %}
397- < a href ="{{ contract.document_docx.url }} " target =" _blank " rel =" noopener noreferrer " style ="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#fff8dc;border:1px solid #ffd43b;border-radius:4px;font-size:12px;color:#333;text-decoration:none; ">
397+ < a href ="{{ contract.document_docx.url }} " style ="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#fff8dc;border:1px solid #ffd43b;border-radius:4px;font-size:12px;color:#333;text-decoration:none; ">
398398 < span style ="color:#3776ab;font-weight:700; "> DOCX</ span > {% if contract.sent_on %}Sent{% else %}Generated{% endif %}
399399 </ a >
400400 {% endif %}
401401 <!-- Signed document -->
402402 {% if contract.signed_document %}
403- < a href ="{{ contract.signed_document.url }} " target =" _blank " rel =" noopener noreferrer " style ="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#e8f5e9;border:1px solid #a5d6a7;border-radius:4px;font-size:12px;color:#2e7d32;text-decoration:none;font-weight:600; ">
403+ < a href ="{{ contract.signed_document.url }} " style ="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#e8f5e9;border:1px solid #a5d6a7;border-radius:4px;font-size:12px;color:#2e7d32;text-decoration:none;font-weight:600; ">
404404 < span style ="font-weight:700; "> {{ signed_document_kind }}</ span > Signed Contract
405405 </ a >
406406 {% endif %}
@@ -435,13 +435,13 @@ <h2>Contract</h2>
435435 </ div >
436436 < div style ="display:flex;gap:8px; ">
437437 {% if hc.document %}
438- < a href ="{{ hc.document.url }} " target =" _blank " rel =" noopener noreferrer " style ="font-size:11px;color:#e74c3c;text-decoration:none; "> PDF</ a >
438+ < a href ="{{ hc.document.url }} " style ="font-size:11px;color:#e74c3c;text-decoration:none; "> PDF</ a >
439439 {% endif %}
440440 {% if hc.document_docx %}
441- < a href ="{{ hc.document_docx.url }} " target =" _blank " rel =" noopener noreferrer " style ="font-size:11px;color:#3776ab;text-decoration:none; "> DOCX</ a >
441+ < a href ="{{ hc.document_docx.url }} " style ="font-size:11px;color:#3776ab;text-decoration:none; "> DOCX</ a >
442442 {% endif %}
443443 {% if hc.signed_document %}
444- < a href ="{{ hc.signed_document.url }} " target =" _blank " rel =" noopener noreferrer " style ="font-size:11px;color:#2e7d32;text-decoration:none; "> Signed</ a >
444+ < a href ="{{ hc.signed_document.url }} " style ="font-size:11px;color:#2e7d32;text-decoration:none; "> Signed</ a >
445445 {% endif %}
446446 </ div >
447447 </ div >
0 commit comments