Bläddra i källkod

add form_url into home and room_planner main route

weichen 4 år sedan
förälder
incheckning
07bd1dc9da
2 ändrade filer med 2 tillägg och 0 borttagningar
  1. 1 0
      backstage/home/routes.py
  2. 1 0
      backstage/room_planner/routes.py

+ 1 - 0
backstage/home/routes.py

@@ -11,6 +11,7 @@ def home():
     if response.status_code == 200:
         return render_template('home.html',
                                title='首頁',
+                               form_url='home.update',
                                page='home',
                                contents=response.json())
 

+ 1 - 0
backstage/room_planner/routes.py

@@ -10,6 +10,7 @@ def main():
     response = requests.get('http://127.0.0.1:5000/api/manages/data?page=room_planner')
     return render_template('room_planner.html',
                            title='規劃師服務',
+                           form_url='room_planner.update',
                            page='room_planner',
                            contents=response.json())