{% extends "admin/base.html" %}
{% load i18n admin_urls static admin_list %}

<!-- added by aman -->
{% load tag %}
<!--  -->
{% block branding %}
<h1 id="site-name">Institute Homepage</h1>
{% endblock %}

{% block usertools %}
<div id="user-tools">
{% block welcome-msg %}
{% trans 'Welcome,' %}
<strong> {{institute.name}}</strong>.
{% endblock %}
{% block userlinks %}
{% if user.has_usable_password %}
<a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
{% endif %}
<a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
{% endblock %}
</div>
{% endblock %}

{% block breadcrumbs %}
    <div class="breadcrumbs">
    <a href="{% url 'allocation:admin1' %}">{% trans 'Home' %}</a>
    </div>
{% endblock %}

{% block content %}
<p style="font-size: 30px;"><a href="{% url 'allocation:applicant_list' %}">Applicants</a></p>
<p style="font-size: 30px;"><a href="{% url 'allocation:choice_list' %}">Choices</a></p>


{% if request.get_full_path == "/allocation/admin" %}
<div style="float:right; vertical-align: top; margin-top: -140px">
	  <form method="POST" action="/allocation/button_action" enctype="multipart/form-data">
	    {% csrf_token %}
	    <input type="hidden" name="prikey" value="{{ request.get_full_path }}">  
	    <button type="submit" style="width: 180px; height: 40px; font-size: 25px"> Allocate</button>
	  </form>
<div>


{% endif %}
{% endblock %}

