about summary refs log tree commit diff
path: root/uploader/templates/sui-index.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-12-10 12:57:14 -0600
committerFrederick Muriuki Muriithi2025-12-10 12:57:14 -0600
commit09fc4bbc3ef66b02f0711dadaf3b10ed53d9d968 (patch)
tree722daa9cee62cc7d66ed58f85fc18dcbf2636a89 /uploader/templates/sui-index.html
parent7838bd59c7fe3fbc936c932f1729c7372eb158ed (diff)
downloadgn-uploader-09fc4bbc3ef66b02f0711dadaf3b10ed53d9d968.tar.gz
Feature Flags: Generically deal with HTTP-based feature flags.
* Define a default `FEATURE_FLAGS_HTTP` configuration variable that's
  an empty list to help defining http-based feature flags that can be
  used to turn on/off features
* Build macro to include hidden fields for feature flags where
  necessary.
* Extend flask's `url_for` function to deal with defined feature flags
  in a mostly transparent way
Diffstat (limited to 'uploader/templates/sui-index.html')
-rw-r--r--uploader/templates/sui-index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/templates/sui-index.html b/uploader/templates/sui-index.html
index e6873e2..260ec30 100644
--- a/uploader/templates/sui-index.html
+++ b/uploader/templates/sui-index.html
@@ -1,5 +1,6 @@
 {%extends "sui-base.html"%}
 {%from "flash_messages.html" import flash_all_messages%}
+{%from "macro-forms.html" import add_http_feature_flags%}
 {%from "macro-step-indicator.html" import step_indicator%}
 
 {%block title%}Home{%endblock%}
@@ -25,8 +26,7 @@
 
 <div class="row">
   <form method="GET" action="{{url_for('base.index')}}" class="form-horizontal">
-    <input type="hidden" name="streamlined_ui", value="{{streamlined_ui}}" />
-
+    {{add_http_feature_flags()}}
     {%if species | length != 0%}
     <div style="margin-top:3em;">
       <table id="tbl-select-species" class="table compact stripe"