bornhack-website/src/economy/templates/revenue_list.html

25 lines
840 B
HTML
Raw Normal View History

{% extends 'base.html' %}
{% load staticfiles %}
{% block title %}
Revenues | {{ block.super }}
{% endblock %}
{% block extra_head %}
<script src="{% static "js/jquery.dataTables.min.js" %}"></script>
<link rel="stylesheet" href="{% static 'css/jquery.dataTables.min.css' %}">
{% endblock extra_head %}
<{% block content %}
<h3>Your {{ camp.title }} Revenues</h3>
{% include 'includes/revenue_list_panel.html' %}
{% if perms.camps.revenue_create_permission %}
<a class="btn btn-success" href="{% url 'economy:chain_list' camp_slug=camp.slug %}"><i class="fas fa-plus"></i> Create Revenue</a>
{% else %}
<div class="alert alert-danger"><p class="lead"><span class="text-error">You don't have permission to add revenue. Please ask someone from the Economy team to add the permission if you need it.</p></div>
{% endif %}
{% endblock %}