{% extends "dingos/grappelli/edits/base_edits.html" %} {% comment %} Copyright (c) Siemens AG, 2013 This file is part of MANTIS. MANTIS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or(at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. {% endcomment %} {% load dingos_tags %} {% block content_title %}

Saved searches for user {{ user.username }}

{% endblock %} {% block content %}
{% csrf_token %}

Available searches

Name
Link
Parameters
Actions
{{ formset.management_form }} {% for form in formset %}
{% comment %} We output the hidden fields: - new_entry is hidden, because it is set/unset automatically (to distinguish a newly added entry that is not to be saved if it is not given a name - position probably is needed by the Grappelli JS (or maybe not?) {% endcomment %} {{form.new_entry}} {{form.title}} {{form.title.errors}} {% if form.new_entry.value == True %}

This is a temporary entry and won't be persisted unless you give it a name and press save.

{% endif %}
{% comment %} The view field is hidden, because we want to display its value using the url tag. Still, we need to include it here, otherwise we will not have access to the value when the form is returned. {% endcomment %} {{form.view}} {% if form.view.value %} {% url form.view.value %} {% endif %}
{{form.parameter}}
  • {{form.DELETE}}
{% endfor %}
{% endblock %}