Switch Ajax transport to JSON with proper Content-Type

Migrate $name from Form_Field to input components
Refactor form inputs: $name moves from Form_Field to input components

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-29 09:43:23 +00:00
parent 88aa57d591
commit 21a7149486
11 changed files with 197 additions and 96 deletions

View File

@@ -12,8 +12,8 @@ Forms use `<Rsx_Form>` with automatic data binding:
```jqhtml
<Rsx_Form $data="<%= JSON.stringify(this.data.form_data) %>"
$controller="Controller" $method="save">
<Form_Field $name="email" $label="Email" $required=true>
<Text_Input $type="email" />
<Form_Field $label="Email" $required=true>
<Text_Input $name="email" $type="email" />
</Form_Field>
<Form_Hidden_Field $name="id" />
@@ -84,13 +84,13 @@ Use Bootstrap grid for multi-column field layouts:
```jqhtml
<div class="row">
<div class="col-md-6">
<Form_Field $name="first_name" $label="First Name">
<Text_Input />
<Form_Field $label="First Name">
<Text_Input $name="first_name" />
</Form_Field>
</div>
<div class="col-md-6">
<Form_Field $name="last_name" $label="Last Name">
<Text_Input />
<Form_Field $label="Last Name">
<Text_Input $name="last_name" />
</Form_Field>
</div>
</div>