From b7411fd6648651230cc4d3e6b7b06a73e37f99de Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 27 Jul 2022 08:29:20 +0100 Subject: [PATCH] Implement form for editing network --- app/urls.py | 11 +++ core/templates/base.html | 1 + .../threshold/irc/network/channels.html | 24 ++--- .../threshold/irc/network/edit-network.html | 34 +++++++ .../manage/threshold/irc/network/info.html | 98 ++++++++++-------- .../manage/threshold/irc/network/relays.html | 99 +++++++++---------- core/views/dynamic/manage/threshold/irc.py | 39 ++++++++ 7 files changed, 201 insertions(+), 105 deletions(-) create mode 100644 core/templates/dynamic/manage/threshold/irc/network/edit-network.html diff --git a/app/urls.py b/app/urls.py index 81c531e..706758b 100644 --- a/app/urls.py +++ b/app/urls.py @@ -40,6 +40,7 @@ from core.views.dynamic.insights import ( from core.views.dynamic.manage.threshold.irc import ( ThresholdIRCNetworkChannels, ThresholdIRCNetworkInfo, + ThresholdIRCNetworkInfoEdit, ThresholdIRCNetworkRelays, ThresholdIRCNetworks, ThresholdIRCStats, @@ -103,6 +104,16 @@ urlpatterns = [ ThresholdIRCNetworkInfo.as_view(), name="threshold_irc_network_info", ), + path( + "manage/threshold/irc/network//info/edit/", + ThresholdIRCNetworkInfoEdit.as_view(), + name="threshold_irc_network_info_edit", + ), + path( + "manage/threshold/irc/network//edit/", + ThresholdIRCNetworkInfoEdit.as_view(), + name="threshold_irc_network_edit", + ), path( "manage/threshold/irc/network//relays/", ThresholdIRCNetworkRelays.as_view(), diff --git a/core/templates/base.html b/core/templates/base.html index 30c7d2e..294b82e 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -12,6 +12,7 @@ +