Selaa lähdekoodia

Set activeTab on cancel button, so user is returned to the proper tab

deadtom 5 päivää sitten
vanhempi
commit
0e39328a4c

+ 1 - 1
ownchatbot/templates/add.html

@@ -146,7 +146,7 @@
             {% endif %}
             <br><button class="button button2" type="submit">Create {{ reward_type }}</button><br>
         </form>
-        <a href="{{ url_for('web_panels.mgmt', auth=session['auth_code']) }}">Cancel</a>
+        <a href="{{ url_for('web_panels.mgmt', activeTab='managerewards') }}">Cancel</a>
         <br><br>
     </div>
 </body>

+ 1 - 1
ownchatbot/templates/edit.html

@@ -124,7 +124,7 @@
                 </table>
                 <br><button class="button button2" type="submit">Save Changes</button><br>
             </form>
-            <a href="{{ url_for('web_panels.mgmt', auth=session['auth_code']) }}">Cancel</a>
+            <a href="{{ url_for('web_panels.mgmt', activeTab='managerewards') }}">Cancel</a>
             <br><br>
         </body>
     </div>

+ 1 - 1
ownchatbot/templates/edit_account.html

@@ -26,7 +26,7 @@
                 </table>
                 <br><button class="button button2" type="submit">Save</button><br>
             </form>
-            <a href="{{ url_for('web_panels.mgmt', auth=session['auth_code']) }}">Cancel</a>
+            <a href="{{ url_for('web_panels.mgmt', activeTab='accounts') }}">Cancel</a>
         </body>
     </div>
 </html>