diff --git a/selfserv/settings.example.py b/selfserv/settings.example.py index 61cf2be..902036e 100644 --- a/selfserv/settings.example.py +++ b/selfserv/settings.example.py @@ -37,6 +37,7 @@ AVAILABLE_APPROVERS = [ # Tuples (committee name, description) ('Committee', 'Management Committee'), ] +BUDGET_ENABLE_VOTING = True TICKETING_FEE_PROPORTION = 0.0175 # Previous default was (1-1/1.01884) TICKETING_FEE_FIXED = 0.30 # Previous default was 0.8133/1.01884 @@ -50,6 +51,11 @@ ABA_SRC_ACC = '00000000' # Download from http://bsb.apca.com.au/ BSB_FILE_PATH = 'sstreasury/BSBDirectoryMay20-290.csv' +PRETIX_API_BASE = 'https://example.com' +PRETIX_API_TOKEN = 'abcdefg' +PRETIX_ORGANIZER = 'societyname' +PRETIX_START_YEAR = '2023' # Ignore events before this year + # Application definition INSTALLED_APPS = [ diff --git a/sstreasury/jinja2/sstreasury/budget_view.html b/sstreasury/jinja2/sstreasury/budget_view.html index 9abb4ff..f378f21 100644 --- a/sstreasury/jinja2/sstreasury/budget_view.html +++ b/sstreasury/jinja2/sstreasury/budget_view.html @@ -218,7 +218,7 @@ {% elif item.action == import('sstreasury.models').BudgetAction.EDIT.value %} {{ item.author.first_name }} {{ item.author.last_name }} edited the budget (view) {% elif item.action == import('sstreasury.models').BudgetAction.UPDATE_STATE.value %} - {{ item.author.first_name }} {{ item.author.last_name }} changed the state to: {{ item.get_state_display() }} + {{ item.author.first_name }} {{ item.author.last_name }} changed the state to: {{ item.get_state_display() }} (view) {% else %} {{ item.author.first_name }} {{ item.author.last_name }} modified the budget (view) {% endif %} @@ -228,10 +228,103 @@ + {% elif item.__class__.__name__ == 'BudgetVote' %} +