Don't show moderation notes when adding a new field.
authorDave Page <dpage@pgadmin.org>
Tue, 2 Apr 2024 14:35:58 +0000 (15:35 +0100)
committerDave Page <dpage@pgadmin.org>
Tue, 2 Apr 2024 14:35:58 +0000 (15:35 +0100)
hamnadmin/hamnadmin/register/templates/edit.html

index d39bc20fed48e3699ee4deb25edcce37d9e36729..63fceb25a1e36c83db19ac0f7b58997e5362e09b 100644 (file)
@@ -33,7 +33,7 @@
             </p>
         {% endif %}{#not new#}
 
-    {% if user.is_superuser %}
+    {% if user.is_superuser and not new %}
         <h3>Moderator Notes</h3>
         {% if notes %}
         <table class="table table-condensed table-striped">
 
 
     <h3>Edit</h3>
+{% endif %}
 
     {% if form.errors %}
         <div class="alert alert-danger">Please correct the errors below, and re-submit the form.</div>