Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
InfraBlue
InfraBlue
Commits
eff09afc
Commit
eff09afc
authored
Aug 06, 2020
by
Julian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create first template, for adding and updating apitokens
parent
8811a3db
Pipeline
#3304
failed with stages
in 1 minute and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
infrablue/templates/infrablue/apitoken_change.html
infrablue/templates/infrablue/apitoken_change.html
+24
-0
No files found.
infrablue/templates/infrablue/apitoken_change.html
0 → 100644
View file @
eff09afc
{% 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 %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment