Tum %!s(int64=5) %!d(string=před) roky
rodič
revize
f5e81c5d60
4 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. binární
      __pycache__/app.cpython-38.pyc
  2. binární
      __pycache__/fpl_lib.cpython-38.pyc
  3. 1 1
      templates/lgs.html
  4. 2 2
      templates/team2.html

binární
__pycache__/app.cpython-38.pyc


binární
__pycache__/fpl_lib.cpython-38.pyc


+ 1 - 1
templates/lgs.html

44
      <ol>
44
      <ol>
45
          
45
          
46
     {% for team in lg.teams %}
46
     {% for team in lg.teams %}
47
-    <li><a href="{{ url_for(".team", team_id=team._id) }}">{{ team['title'] }}</a></li>
47
+    <li><a href="{{ url_for(".team2", team_id=team._id) }}">{{ team['title'] }}</a></li>
48
     {% endfor %}
48
     {% endfor %}
49
      </ol>
49
      </ol>
50
 {% endif %}
50
 {% endif %}

+ 2 - 2
templates/team2.html

9
         
9
         
10
     <ul>
10
     <ul>
11
     {% for r in results %}
11
     {% for r in results %}
12
-    <li><input type=checkbox name="players" value="{{ r.id }}" />{{ r.info }}</li>
12
+    <li><input type=checkbox name="players" value="{{ r.id }}" /><a href="{{ url_for("get_player", pid=r.id) }}" target="_blank">{{ r.info }}</a></li>
13
     {% endfor %}
13
     {% endfor %}
14
     </ul>
14
     </ul>
15
     <input type="submit" name="selectPlayers" value="Select Players">
15
     <input type="submit" name="selectPlayers" value="Select Players">
22
     <form method="post">
22
     <form method="post">
23
     <ol>
23
     <ol>
24
     {% for p in  currentPlayers %}
24
     {% for p in  currentPlayers %}
25
-    <li>{{ p }}  GS={{ p.goals_scored }} <input type="checkbox" name="deletes" value="{{ p.id  }}">Delete</li>
25
+    <li><a href="{{ url_for("get_player", pid=p.id) }}" target="_blank">{{ p }}</a>  GS={{ p.goals_scored }} <input type="checkbox" name="deletes" value="{{ p.id  }}">Delete</li>
26
     {% endfor %}
26
     {% endfor %}
27
     </ul>
27
     </ul>
28
     <input type="submit" name="deletePlayer"  value="Delete Players">
28
     <input type="submit" name="deletePlayer"  value="Delete Players">