Skip to content

Commit 9af102f

Browse files
committed
fix button placement
1 parent 7ca3d31 commit 9af102f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

apps/sponsors/templates/sponsors/manage/sponsor_edit.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@
1818
</div>
1919
{% endblock %}
2020

21-
{% block topbar_actions %}
22-
{% if not is_create and object %}
23-
<a href="{% url 'manage_contact_create' object.pk %}" class="btn btn-sm btn-secondary">+ Contact</a>
24-
<a href="{% url 'manage_composer' %}?new=1&sponsor_id={{ object.pk }}" class="btn btn-sm btn-primary">+ Sponsorship</a>
25-
{% endif %}
26-
{% endblock %}
27-
2821
{% block manage_content %}
2922
<div class="manage-form">
30-
<h2 style="font-size:18px;font-weight:700;color:#1a1a2e;margin:0 0 20px;">{% if is_create %}New Sponsor{% else %}Edit Sponsor: {{ object.name }}{% endif %}</h2>
23+
<div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;">
24+
<h2 style="font-size:18px;font-weight:700;color:#1a1a2e;margin:0;">{% if is_create %}New Sponsor{% else %}Edit Sponsor: {{ object.name }}{% endif %}</h2>
25+
{% if not is_create and object %}
26+
<div style="display:flex;gap:6px;">
27+
<a href="{% url 'manage_contact_create' object.pk %}" style="font-size:12px;color:#3776ab;text-decoration:none;font-weight:500;padding:4px 10px;border:1px solid #ccc;border-radius:3px;">+ Contact</a>
28+
<a href="{% url 'manage_composer' %}?new=1&sponsor_id={{ object.pk }}" style="font-size:12px;color:#fff;text-decoration:none;font-weight:500;padding:4px 10px;border:1px solid #3776ab;border-radius:3px;background:#3776ab;">+ Sponsorship</a>
29+
</div>
30+
{% endif %}
31+
</div>
3132

3233
{% if form.errors %}
3334
<div class="form-errors">

0 commit comments

Comments
 (0)