Explorar el Código

Adaptación a TR

Celestino Rey hace 5 meses
padre
commit
e35630fa79
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      templates/textdocs/base.html
  2. 2 2
      templates/textdocs/document_form.html

+ 1 - 1
templates/textdocs/base.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-    <title>{% block title %}Document Generator{% endblock %}</title>
+    <title>{% block title %}Technical Report Generator{% endblock %}</title>
     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
     {{ form.media }}
 </head>

+ 2 - 2
templates/textdocs/document_form.html

@@ -1,10 +1,10 @@
 {% extends 'textdocs/base.html' %}
 {% block content %}
-    <h2>{% if form.instance.pk %}Edit Document{% else %}Create a New Document{% endif %}</h2>
+    <h2>{% if form.instance.pk %}Edit Technical Report{% else %}Create a New Technical Report{% endif %}</h2>
     <form method="post">
         {% csrf_token %}
         {{ form.as_p }}
         <button type="submit" class="btn btn-success">Save Document</button>
-        <a href="{{ document.get_absolute_url }}" class="btn btn-secondary">Cancel</a>
+        <a href="{% url 'document_list' %}" class="btn btn-secondary">Cancel</a>
     </form>
 {% endblock %}