Add views to genereate badges for the state of interns

This commit is contained in:
Kevin Alberts 2018-09-13 14:47:21 +02:00
parent 5555992f06
commit cfe4c07d84
Signed by: Kurocon
GPG key ID: BCD496FEBA0C6BC1
6 changed files with 60 additions and 2 deletions

View file

@ -65,6 +65,11 @@
margin-bottom: 2em;
}
.badge img {
position: relative;
top: 4px;
}
</style>
</head>
<body>
@ -85,6 +90,8 @@
{% else %}
<h1>{{ association.short_name }} heeft helemaal geen intern!</h1>
{% endif %}
<p class="badge">Deel een badge!<br /><img src="{% url 'dronken:association_badge' city=association.city.slug slug=association.slug %}" /> <input onClick="this.select();" type="text" readonly value="{{ base_url }}{% url 'dronken:association_badge' city=association.city.slug slug=association.slug %}"/></p>
</div>
</body>
</html>
</html>