You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace "instantbuy" setting on sponsorship levels with contract levels
This allows explicit specification of "No contract, Click-through
contract or Full contract", instead of the definitely-hard-to-grok
combination of whether a contract existed and if the checkbox was set or
not.
# Instantbuy levels that has a contract should get an implicit contract
540
-
# attached to an email.
539
+
iflevel.contractlevel<2:
540
+
# No contract or click-through contract
541
+
iflevel.contractlevel==1:
542
+
# Click-through contract
541
543
_generate_and_send_sponsor_contract(sponsor)
542
544
543
545
mailstr+="Level does not require a signed contract. Verify the details and approve\nthe sponsorship using:\n\n{0}/events/sponsor/admin/{1}/{2}/".format(
Copy file name to clipboardExpand all lines: template/confsponsor/admin_dashboard.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ <h2>Unconfirmed sponsors</h2>
86
86
{%else%}
87
87
<spanclass="label label-success">Invoiced</span>
88
88
{%endif%}
89
-
{%elif s.level.instantbuy%}
89
+
{%elif s.level.contractlevel <2%}
90
90
<spanclass="label label-warning" title="Sponsor details for instant buy levels have to be verified before invoice is issued">Pending organizer verification</span>
Copy file name to clipboardExpand all lines: template/confsponsor/admin_sponsor_details.html
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -39,13 +39,11 @@
39
39
<tr>
40
40
<th>Contract:</th>
41
41
<td>
42
-
{%if sponsor.level.instantbuy %}
43
-
{%if sponsor.level.contract %}
44
-
Click-through contract completed. <formclass="inline-block-form" method="post" action="resendcontract/">{% csrf_token %}<inputtype="submit" class="btn btn-sm btn-default confirm-btn" value="Re-send contract anyway" data-confirm="Are you sure you want to re-send a new contract to this sponsor?{%if sponsor.signmethod == 0%} {{conference.contractprovider.implementation.resendprompt}}{%endif%}"></form>
45
-
{%else%}
42
+
{%if sponsor.level.contractlevel == 0 %}
46
43
No contract needed for this level.
47
-
{%endif%}
48
-
{%else%}
44
+
{%elif sponsor.level.contractlevel == 1 %}
45
+
Click-through contract completed. {%if not sponsor.confirmed%}<formclass="inline-block-form" method="post" action="resendcontract/">{% csrf_token %}<inputtype="submit" class="btn btn-sm btn-default confirm-btn" value="Re-send contract anyway" data-confirm="Are you sure you want to re-send a new contract to this sponsor?{%if sponsor.signmethod == 0%} {{conference.contractprovider.implementation.resendprompt}}{%endif%}"></form>{%endif%}
46
+
{%else%}{%comment%}Full contract{%endcomment%}
49
47
{%if sponsor.signmethod == 0%}
50
48
Digital contract.<br/>
51
49
{%if sponsor.contract.completed%}Signed ({{sponsor.contract.firstsigned}}) and countersigned ({{sponsor.contract.completed}}).
@@ -63,7 +61,7 @@
63
61
<formclass="inline-block-form" method="post" action="resendcontract/">{% csrf_token %}<inputtype="submit" class="btn btn-sm btn-default confirm-btn" value="Re-send contract" data-confirm="Are you sure you want to re-send a new contract to this sponsor?{%if sponsor.signmethod == 0%} {{conference.contractprovider.implementation.resendprompt}}{%endif%}"></form>
{% if sponsor.confirmed and sponsor.level.contract %}
37
+
{% if sponsor.confirmed %}
38
38
<tr>
39
39
<th>Contract:</th>
40
40
<td>
41
-
{% if sponsor.level.instantbuy %}
41
+
{% if sponsor.level.contractlevel == 0 %}
42
+
This level requires no contract.
43
+
{% elif sponsor.level.contractlevel == 1 %}
42
44
Click-through contract agreed to. <ahref="contractview/" class="btn btn-outline-dark btn-sm">View copy of contract</a>
43
45
{% else %}
44
46
{%if sponsor.signmethod == 0%}
45
47
Digital contract completed {{sponsor.contract.completed}}.
46
48
{%if sponsor.contract.completed and sponsor.contract.has_completed_pdf %}<ahref="contractview/" class="btn btn-outline-dark btn-sm">View signed contract</a>{%endif%}
0 commit comments