This is an automated email from the ASF dual-hosted git repository.

gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git

commit 3f0a114543f6dbd9426d1f9db6e180bf3cf9c196
Author: Greg Stein <[email protected]>
AuthorDate: Mon Dec 22 23:21:28 2025 -0600

    hide/revise elements based on the Election state
---
 v3/server/templates/manage.ezt | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/v3/server/templates/manage.ezt b/v3/server/templates/manage.ezt
index 2a0821b..c0b00b8 100644
--- a/v3/server/templates/manage.ezt
+++ b/v3/server/templates/manage.ezt
@@ -132,19 +132,30 @@
     </div>[# id=deleteIssueModal ]
 
         <div>
-            State: [e_state]
-        </div>
-        <div>
+          [is e_state "editable"]
             Estimate to open: <input type="date">
+          [else]
+            Opened: [#fmt_open_at_full]TBD
+          [end]
         </div>
+      
         <div class="mb-3">
+          [is e_state "closed"]
+            Closed: [#fmt_close_at_full]TBD
+          [else]
+            [# can set/extend Close date, until actually closed. ]
             Estimate to close: <input type="date">
+          [end]
         </div>
 
         <div class="mb-4">
+
+        [is e_state "editable"]
             <button type="button" class="btn btn-primary" 
onclick="openAddIssueModal()">
                 <i class="bi bi-plus-circle me-1"></i>Add Issue
             </button>
+        [end]
+
             <button type="button" class="btn btn-outline-secondary ms-2" 
onclick="toggleAllDescriptions()">
                 <i class="bi bi-arrows-expand me-1"></i>
                 <span id="toggle-all-text">Expand All</span>
@@ -159,6 +170,8 @@
                         <span class="twiddle bi bi-caret-right-fill me-2" 
onclick="toggleDescription('[issues.iid]')"></span>
                         <strong>[issues.title]</strong>
                     </div>
+
+        [is e_state "editable"]
                     <div class="action-buttons">
                         <button type="button" class="btn btn-outline-primary 
btn-sm me-1"
                               onclick="openEditIssueModal('[issues.iid]',
@@ -174,6 +187,8 @@
                             <i class="bi bi-trash"></i>
                         </button>
                     </div>
+        [end]
+
                </div>
                <div id="description-[issues.iid]" class="description 
mt-2">[issues.description]</div>
            </div>

Reply via email to