add shortcut to ”add new…”-button

This commit is contained in:
Laura Klünder 2016-12-08 22:53:41 +01:00
parent 4d5cbad685
commit 3684cf6432

View file

@ -1,6 +1,6 @@
{% load bootstrap3 %} {% load bootstrap3 %}
<a class="btn btn-default btn-sm pull-right " href="{% url 'editor.mapitems.add' mapitem_type=mapitem_type %}">Add new</a> <a class="btn btn-default btn-sm pull-right" accesskey="n" href="{% url 'editor.mapitems.add' mapitem_type=mapitem_type %}">Add new</a>
<h3>{{ title }}{% if has_level %} <small>on level {{ level }}</small>{% endif %}</h3> <h3>{{ title }}{% if has_level %} <small>on level {{ level }}</small>{% endif %}</h3>
<table class="table table-condensed itemtable" data-mapitem-type="{{ mapitem_type }}"> <table class="table table-condensed itemtable" data-mapitem-type="{{ mapitem_type }}">