在html laravel中将表单呈现为空白

时间:2015-05-04 10:04:08

标签: php laravel laravel-5

我有一个在HTML中呈现为空白的表单(我无法理解),但这些值仍然被发送到Laravel。这不会打扰我,除非我需要能够更改按钮文本并有办法复制from,这两种方法都不会起作用,因为表单在技术上是空的。下面是表单输出内容的屏幕截图。

enter image description here

代码如下所示:

@foreach( $Contractors as $contractor )

{!! Form::open(array('route' => 'ContractorInvoicing.store', 'class' => 'form-inline InvoiceForm')); !!}

<tr {!! checkRDO($contractor->RDOCat, $TheDate) !!}>
    <td>{!! $contractor->Surname; !!}, {!! $contractor->name; !!} </td>
<td>{!! $contractor->PRN; !!} {!! Form::hidden('PRN', $contractor->PRN); !!} {!! Form::hidden('thedate', $TheDate); !!} {!! Form::hidden('id', ''); !!}</td>
<td>{!! Form::text('StartTime', '', array('class' => 'form-control StartTime required', 'id' => 'TimePicker', 'tabindex' => '1')); !!}</td>
<td>{!! Form::text('FinishTime', '', array('class' => 'form-control FinishTime required', 'tabindex' => '2')); !!}</td>
<td>{!! Form::text('BreakTime', '', array('class' => 'form-control BreakTime required', 'tabindex' => '3')); !!}</td>
<td>{!! Form::text('grade', '', array('class' => 'form-control required', 'tabindex' => '4')); !!}</td>
<td>{!! Form::checkbox('PM', '1', false, array('class' => 'form-control')); !!}</td>
<td>{!! Form::checkbox('NS', '1', false, array('class' => 'form-control')); !!}</td>
<td>{!! Form::checkbox('RDO', '1', false, array('class' => 'form-control')); !!}</td>
<td>{!! Form::text('OrdHours', $OrdHours, array('class' => 'form-control')); !!}</td>
<td>{!! Form::text('OT150', '3.0', array('class' => 'form-control')); !!}</td>
<td>{!! Form::select('AreaPosition', $DepartmentCodes, $contractor->AreaPosition, array('class' => 'form-control')) !!}</td>
<td>{!! Form::select('Company', $Company, $contractor->Company, array('class' => 'form-control')) !!}</td>
<td>{!! Form::submit('Submit', array('class' => 'btn btn-default submitInvoice', 'tabindex' => '5')); !!}</td>
<td><a href="#" class="AddRow">Add</a></td>
</tr>
{!! Form::close(); !!}

 @endforeach

1 个答案:

答案 0 :(得分:0)

Form tag cannot be an immediate child of a tbody tag.

尝试在android:layout_centerVertical="true" 标记

周围包裹main()标记