|
@@ -2,15 +2,13 @@
|
|
|
{% load static from staticfiles %}
|
|
|
{% load form_helpers %}
|
|
|
|
|
|
-{% block title %}{% if secret.pk %}Editing {{ secret }}{% else %}Add a Secret{% endif %}{% endblock %}
|
|
|
-
|
|
|
{% block content %}
|
|
|
<form action="." method="post" class="form form-horizontal">
|
|
|
{% csrf_token %}
|
|
|
{{ form.private_key }}
|
|
|
<div class="row">
|
|
|
<div class="col-md-6 col-md-offset-3">
|
|
|
- <h3>{% if secret.pk %}Editing {{ secret }}{% else %}Add a Secret{% endif %}</h3>
|
|
|
+ <h3>{% block title %}{% if secret.pk %}Editing {{ secret }}{% else %}Add a Secret{% endif %}{% endblock %}</h3>
|
|
|
{% if form.non_field_errors %}
|
|
|
<div class="panel panel-danger">
|
|
|
<div class="panel-heading"><strong>Errors</strong></div>
|