mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 05:42:12 +01:00 
			
		
		
		
	Move some buttons, my account form is now working
This commit is contained in:
		@@ -113,14 +113,6 @@
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                        {% endif %}
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    {% if user.admin %}
 | 
			
		||||
                        <li class="nav-item active">
 | 
			
		||||
                            <a class="nav-link" href="{% url "tournament:add" %}"><i class="fas fa-calendar-plus"></i> {% trans "Add a tournament" %}</a>
 | 
			
		||||
                        </li>
 | 
			
		||||
                        <li class="nav-item active">
 | 
			
		||||
                            <a class="nav-link" href="{% url "tournament:add_organizer" %}"><i class="fas fa-user-plus"></i> {% trans "Add an organizer" %}</a>
 | 
			
		||||
                        </li>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    {% if user.organizes %}
 | 
			
		||||
                        <li class="nav-item active">
 | 
			
		||||
                            <a class="nav-link" href="{% url "tournament:all_solutions" %}"><i class="fas fa-lightbulb"></i> {% trans "Solutions" %}</a>
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,7 @@
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
    <form method="post">
 | 
			
		||||
        {% csrf_token %}
 | 
			
		||||
        {{ form|crispy }}
 | 
			
		||||
        <input type="submit" class="btn btn-primary btn-block" value="{% trans "Submit" %}">
 | 
			
		||||
    </form>
 | 
			
		||||
 
 | 
			
		||||
@@ -4,4 +4,8 @@
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
    {% render_table table %}
 | 
			
		||||
    {% if user.admin %}
 | 
			
		||||
        <hr>
 | 
			
		||||
        <a class="btn btn-block btn-secondary" href="{% url "tournament:add_organizer" %}"><i class="fas fa-user-plus"></i> {% trans "Add an organizer" %}</a>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
@@ -10,4 +10,8 @@
 | 
			
		||||
        </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% render_table table %}
 | 
			
		||||
    {% if type == "organizers" and user.is_authenticated and user.admin %}
 | 
			
		||||
        <hr>
 | 
			
		||||
        <a class="btn btn-block btn-secondary" href="{% url "tournament:add" %}"><i class="fas fa-calendar-plus"></i> {% trans "Add a tournament" %}</a>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user