Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
common_elements:
- name: commonLabel
type: label
description: "共通ラベル"
required: true
attributes:
for: "commonInput"

- name: commonRadio
type: radio
description: "共通ラジオボタン"
required: false
attributes:
name: "commonOptions"
37 changes: 37 additions & 0 deletions gui_agent_loop_core/rule_config/page_definitions/page1/form1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
root_element:
name: "FormA"
type: "form"
description: "このフォームはラベルとラジオボタンの関係を定義します。"
attributes:
action: "/submit"
method: "post"
elements:
- name: AAA
type: label
description: "このラベルは必須です。"
required: true
attributes:
for: "input1"
check:
condition: "every"
target: "label"

- name: BBB
type: radio
description: "このラジオボタンはオプションです。"
required: false
attributes:
id: "input1"
name: "options"
prohibited: false
check:
condition: "first_only"
target: "radio"

- name: commonLabel
type: label
description: "共通ラベルを使用しています。"
required: true
attributes:
for: "commonInput"
uses_common: true # 共通要素を使用することを明示
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root_element_relations:
- source: "FormA"
target: "FormB"
condition: "exists" # FormAが存在する場合にFormBをチェック
- source: "FormC"
target: "commonLabel"
condition: "uses_common" # FormCが共通ラベルを使用する場合
37 changes: 37 additions & 0 deletions gui_agent_loop_core/rule_config/page_definitions/page2/form1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
root_element:
name: "FormB"
type: "form"
description: "このフォームはラベルとラジオボタンの関係を定義します。"
attributes:
action: "/submit"
method: "post"
elements:
- name: CCC
type: label
description: "このラベルは必須です。"
required: true
attributes:
for: "input2"
check:
condition: "every"
target: "label"

- name: DDD
type: radio
description: "このラジオボタンはオプションです。"
required: false
attributes:
id: "input2"
name: "options"
prohibited: false
check:
condition: "first_only"
target: "radio"

- name: commonRadio
type: radio
description: "共通ラジオボタンを使用しています。"
required: false
attributes:
name: "commonOptions"
uses_common: true # 共通要素を使用することを明示
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root_element_relations:
- source: "FormB"
target: "FormD"
condition: "exists" # FormBが存在する場合にFormDをチェック
- source: "FormE"
target: "commonRadio"
condition: "uses_common" # FormEが共通ラジオボタンを使用する場合