Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit d54cfd2

Browse files
author
David Yell
committed
Fixed the indenting of form elements
1 parent 33bd215 commit d54cfd2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Template/Bake/Element/form.ctp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ $fields = collection($fields)
2020
$fieldData = $schema->column($field);
2121
if (!empty($fieldData['null'])) {
2222
%>
23-
echo $this->Form->input('<%= $field %>', ['options' => $<%= $keyFields[$field] %>, 'empty' => true]);
23+
echo $this->Form->input('<%= $field %>', ['options' => $<%= $keyFields[$field] %>, 'empty' => true]);
2424
<%
2525
} else {
2626
%>
27-
echo $this->Form->input('<%= $field %>', ['options' => $<%= $keyFields[$field] %>]);
27+
echo $this->Form->input('<%= $field %>', ['options' => $<%= $keyFields[$field] %>]);
2828
<%
2929
}
3030
continue;
@@ -33,16 +33,16 @@ $fields = collection($fields)
3333
$fieldData = $schema->column($field);
3434
if (($fieldData['type'] === 'date') && (!empty($fieldData['null']))) {
3535
%>
36-
echo $this->Form->input('<%= $field %>', ['empty' => true, 'default' => '']);
36+
echo $this->Form->input('<%= $field %>', ['empty' => true, 'default' => '']);
3737
<%
3838
} else {
3939
if (empty($fieldData['null'])) {
4040
%>
41-
echo $this->Form->input('<%= $field %>'); <% // Required fields %>
41+
echo $this->Form->input('<%= $field %>'); <% // Required fields %>
4242
<%
4343
} else {
4444
%>
45-
echo $this->Form->input('<%= $field %>');
45+
echo $this->Form->input('<%= $field %>');
4646
<%
4747
}
4848

@@ -52,7 +52,7 @@ $fields = collection($fields)
5252
if (!empty($associations['BelongsToMany'])) {
5353
foreach ($associations['BelongsToMany'] as $assocName => $assocData) {
5454
%>
55-
echo $this->Form->input('<%= $assocData['property'] %>._ids', ['options' => $<%= $assocData['variable'] %>]);
55+
echo $this->Form->input('<%= $assocData['property'] %>._ids', ['options' => $<%= $assocData['variable'] %>]);
5656
<%
5757
}
5858
}

0 commit comments

Comments
 (0)