We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9633766 commit 5760d6fCopy full SHA for 5760d6f
task_manager/templates/tasks/form.html
@@ -36,8 +36,9 @@ <h1>{{ object|default_if_none:"Создать задачу" }}</h1>
36
<div class="form-text">Можно выбрать несколько (Ctrl/⌘ + клик).</div>
37
</div>
38
39
- <button type="submit" class="btn btn-primary">Создать</button>
40
- <a href="{% url 'tasks_index' %}" class="btn btn-link">Отмена</a>
+<button type="submit" class="btn btn-primary">
+ {% if object %}Изменить{% else %}Создать{% endif %}
41
+</button> <a href="{% url 'tasks_index' %}" class="btn btn-link">Отмена</a>
42
</form>
43
44
{% endblock %}
0 commit comments