mobile app apply_contest contest_detail contest_edit notifications theme

This commit is contained in:
2026-02-27 20:36:34 +08:00
parent 17a4415cd2
commit 4cd4b6ef52
5 changed files with 53 additions and 6 deletions

View File

@@ -88,7 +88,7 @@
<a href="{{ url_for('contest_list') }}" class="px-5 py-2.5 border border-slate-300 rounded-md text-sm font-medium text-slate-700 bg-white hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary">
取消
</a>
<button type="submit"
<button type="submit" id="submit-btn"
class="px-5 py-2.5 bg-primary text-white rounded-md text-sm font-medium hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary">
提交申请
</button>
@@ -96,4 +96,15 @@
</form>
</div>
</div>
{% endblock %}
{% block scripts %}
<script>
document.querySelector('form').addEventListener('submit', function() {
const btn = document.getElementById('submit-btn');
btn.disabled = true;
btn.textContent = '提交中...';
btn.classList.add('opacity-50', 'cursor-not-allowed');
});
</script>
{% endblock %}