Commit eff09afc authored by Julian's avatar Julian

Create first template, for adding and updating apitokens

parent 8811a3db
Pipeline #3304 failed with stages
in 1 minute and 45 seconds
{% extends "infrablue/base.html" %}
{% load i18n material_form %}
{% trans "Update APIToken" as update %}
{% trans "Create APIToken" as create %}
{% block browser_title %}{% if object.id %}{{ update }}{% else %}{{ create }}{% endif %}{% endblock %}
{% block page_title %}{% if object.id %}{{ update }}{% else %}{{ create }}{% endif %}{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{% form form=form %}{% endform %}
<div class="submit-row">
{% include "infrablue/snippets/save_button.html" with caption=_("Save") %}
{% if object.id %}
<a href="{% url 'apitoken_delete' object.id %}"
class="btn waves-effect waves-light red">{% trans "Delete" %}</a>
{% endif %}
<a href="{% url 'apitoken_list' %}" class="btn waves-effect waves-light secondary-color">
{% trans "Cancel" %}
</a>
</div>
</form>
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment