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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user