- 修改`styles.css`中的`input[type="submit"]`样式,增加宽度并调整边距 - 修复`scale.html`中的拼写错误,将`lable`改为`label` - 更新`base.html`的meta描述和关键词,优化SEO - 调整HTML模板中的格式和缩进,提高代码可读性
24 lines
776 B
HTML
24 lines
776 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block head_extra %}
|
|
<title>{{ scale.title }}</title>
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
<h1>{{ scale.title }}</h1>
|
|
<div>
|
|
{{ scale.instructions|safe }}
|
|
</div>
|
|
<form class="scale" action="/scales/{{ scale_id }}" method="post">
|
|
{% for id, question in scale['items'].items() %}
|
|
<label for="{{ id }}">{{ id }}. {{ question }}</label>
|
|
<div class="scale-button">
|
|
{% for option, label in scale.options.items() %}
|
|
<input type="radio" id="{{ id }}_{{ option }}" name="{{ id }}" value="{{ option }}" required>
|
|
<label for="{{ id }}_{{ option }}" title="{{label}}">{{ option }}</label>
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
<input type="submit" value="提交">
|
|
</form>
|
|
{% endblock %} |