Skip to content

Commit e099030

Browse files
committed
Update Bake Template View
1 parent 51d35fe commit e099030

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Template/Bake/Template/view.ctp

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use Cake\Utility\Inflector;
3737
$fieldData = $schema->column($field);
3838
if (!empty($fieldData['null'])) {
3939
%>
40-
echo $this->Form->input('<%= $field %>', ['options' => $<%= $keyFields[$field] %>, 'empty' => true, 'value' => $<%= $singularVar %>-><%= $field %>, 'disabled' => true]);
40+
echo $this->Form->input('<%= $field %>', ['options' => $<%= $keyFields[$field] %>, 'empty' => true, 'placeholder' => $<%= $singularVar %>-><%= $field %>, 'disabled' => true]);
4141
<%
4242
} else {
4343
%>
@@ -54,7 +54,7 @@ use Cake\Utility\Inflector;
5454
<%
5555
} else {
5656
%>
57-
echo $this->Form->input('<%= $field %>', ['value' => $<%= $singularVar %>-><%= $field %>, 'disabled' => true]);
57+
echo $this->Form->input('<%= $field %>', ['placeholder' => $<%= $singularVar %>-><%= $field %>, 'disabled' => true]);
5858
<%
5959
}
6060
}

0 commit comments

Comments
 (0)