更换url风格,修复了https下的表单提交报错
This commit is contained in:
parent
e1f804fbef
commit
df675505d9
@ -16,7 +16,7 @@
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% for scale_id, scale in scales.items() %}
|
||||
<li><a href="{{ url_for('scale', scale_id=scale_id) }}">{{ scale.get('title', '未命名问卷') }}</a></li>
|
||||
<li><a href="/scales/{{ scale_id }}">{{ scale.get('title', '未命名问卷') }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</body>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<body>
|
||||
<h1>{{ scale.title }}</h1>
|
||||
<p>{{ scale.instructions }}</p>
|
||||
<form action="{{ url_for('result', scale_id=scale_id) }}" method="post">
|
||||
<form action="/result/{{ scale_id }}" method="post">
|
||||
{% for question in scale.questions %}
|
||||
<label for="{{ question.id }}">{{ question.text }}</label>
|
||||
<div class="scale-button">
|
||||
|
Loading…
x
Reference in New Issue
Block a user