浏览代码

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

deadtom 4 天之前
父节点
当前提交
0e39328a4c
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      ownchatbot/templates/add.html
  2. 1 1
      ownchatbot/templates/edit.html
  3. 1 1
      ownchatbot/templates/edit_account.html

+ 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>