Skip to content

Commit 4850e03

Browse files
authored
Merge pull request #15 from appleple/develop
v1.0.4
2 parents 0b175f6 + 4f2e413 commit 4850e03

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

themes/develop/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# テーマ「develop」Ver.1.0.3
1+
# テーマ「develop」Ver.1.0.4
22

33
## バンドル環境の使い方
44

themes/develop/contact/form/main.twig

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
{% set form = module('V2_Form') %}
22

3-
{% if form.error %}
4-
<!-- フォームID : {{ form.error.formID }} エラー項目 : {{ form.error.fields | join('|') }} -->
5-
<p class="text-gray-900 mb-10">
6-
入力内容をもう一度ご確認ください。
7-
</p>
3+
{% if form.error and touch('Touch_SessionWithContribution') %}
4+
<section class="mb-10 bg-red-50 border-t-4 border-red-500 rounded-b text-red-900 py-4 px-3 sm:px-4 shadow-md">
5+
<h2 class="text-base/normal font-semibold">管理者向け: バリデーションエラー通知</h2>
6+
<p class="text-sm/normal font-semibold mt-3">
7+
※このメッセージは投稿者以上の権限を持つユーザーにのみ表示されています
8+
</p>
9+
<p class="mt-4 text-sm/normal">
10+
フォームID「{{ form.error.formID }}」の項目「{{
11+
form.error.fields|join(', ')
12+
}}」で入力ルール違反(バリデーションエラー)が検出されました。以下を確認してください。
13+
</p>
14+
<ul class="list-disc list-inside mt-3 space-y-1 text-sm/normal">
15+
<li>入力ミス:必須項目の未入力、形式間違い、各入力欄にエラーメッセージが出ていないかをご確認ください。</li>
16+
<li>
17+
設定の不一致:正しい入力をしていてもエラーが続く場合、テンプレートの入力欄とフォームID管理の「入力チェック(バリデーター)」設定が一致していない可能性があります。
18+
</li>
19+
</ul>
20+
</section>
821
{% endif %}
922

1023
{% if form.step == 'step' %}

themes/develop/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/develop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "develop",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Webサイト制作プロジェクト",
55
"type": "module",
66
"main": "index.js",

0 commit comments

Comments
 (0)