diff --git a/README b/README index ca8bfcb..3075aa3 100644 --- a/README +++ b/README @@ -2,3 +2,7 @@ whoisdb see own objects list of all ASses? + +FIXME + contact soll nur einen mnt_by haben + mnt_by ==> mnt_by_in in filter statements diff --git a/templates/whoisdb/contact_detail.html b/templates/whoisdb/contact_detail.html new file mode 100644 index 0000000..ac2c415 --- /dev/null +++ b/templates/whoisdb/contact_detail.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} + +{% block content %} +
+
+
+
Header
+
+ {{ contact }} +
+
+
+
+{% endblock %} + diff --git a/templates/whoisdb/handle_table_row.html b/templates/whoisdb/handle_table_row.html new file mode 100644 index 0000000..a1ffbbe --- /dev/null +++ b/templates/whoisdb/handle_table_row.html @@ -0,0 +1,13 @@ +{% with "whoisdb:"|add:prefix|add:"-detail" as detailView %} + {% with "whoisdb:"|add:prefix|add:"-delete" as deleteView %} + {% with "whoisdb:"|add:prefix|add:"-edit" as editView %} + + {{ obj.handle }} + {{ objType }} + {{obj.name }}{{ obj.description }} + {% for contact in obj.admin_c.all %}{{ contact }} {% endfor %} + Edit Delete + + {% endwith %} + {% endwith %} +{% endwith %} diff --git a/templates/whoisdb/maintainer_detail.html b/templates/whoisdb/maintainer_detail.html new file mode 100644 index 0000000..5dbfd9e --- /dev/null +++ b/templates/whoisdb/maintainer_detail.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} + +{% block content %} +
+
+
+
Header
+
+ {{ mnt }} +
+
+
+
+{% endblock %} + diff --git a/templates/whoisdb/maintainer_edit.html b/templates/whoisdb/maintainer_edit.html new file mode 100644 index 0000000..691f4df --- /dev/null +++ b/templates/whoisdb/maintainer_edit.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% load crispy_forms_tags %} + +{% block content %} +
+
+
+
Header
+
+
+ {% csrf_token %} + {{ form | crispy }} + +
+
+
+
+
+{% endblock %} + diff --git a/templates/whoisdb/obj_create.html b/templates/whoisdb/obj_create.html new file mode 100644 index 0000000..691f4df --- /dev/null +++ b/templates/whoisdb/obj_create.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% load crispy_forms_tags %} + +{% block content %} +
+
+
+
Header
+
+
+ {% csrf_token %} + {{ form | crispy }} + +
+
+
+
+
+{% endblock %} + diff --git a/templates/whoisdb/obj_delete.html b/templates/whoisdb/obj_delete.html new file mode 100644 index 0000000..a13b114 --- /dev/null +++ b/templates/whoisdb/obj_delete.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} + +{% load crispy_forms_tags %} + +{% block content %} +
+
+
+
Header
+
+ {% if reasons %} +

+ You cannot delete this object, as other objects in the database depend on it! +

+

+

    + {% for reason in reasons %} +
  • {{ reason }}
  • + {% endfor %} +
+ {% else %} +
+ {% csrf_token %} + +
+ {% endif %} +
+
+
+
+{% endblock %} + diff --git a/templates/whoisdb/obj_edit.html b/templates/whoisdb/obj_edit.html new file mode 100644 index 0000000..046e9df --- /dev/null +++ b/templates/whoisdb/obj_edit.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% load crispy_forms_tags %} + +{% block content %} +
+
+
+
Header
+
+
+ {% csrf_token %} + {{ form | crispy }} + +
+
+
+
+
+{% endblock %} + diff --git a/templates/whoisdb/overview.html b/templates/whoisdb/overview.html index 93be762..8893b4f 100644 --- a/templates/whoisdb/overview.html +++ b/templates/whoisdb/overview.html @@ -10,13 +10,13 @@
{% if mnts %}