File: D:/HostingSpaces/SBogers33/bbec.nl/workbench/komma/kms/src/views/attributes/editableRows.blade.php
<div class="entity-attribute entity-attribute-editable-rows {{{ count($attribute->errors) == 0 ? '' : ' error' }}} {{{$attribute->class}}} @if( !$attribute->show || ($attribute->show === 'admin' && !\Auth::user()->get()->is_admin) ) hidden @endif photo " ng-controller="KmsAttributeEditableRowsController">
{{ Form::label($attribute->key, $attribute->label) }}
{{ Form::hidden($attribute->key, $attribute->getValue()) }}
<div class="content">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
@foreach($attribute->getStructure() as $column)
<th>{{$column}}</th>
@endforeach
</tr>
<tr ng-repeat="(itemKey, item) in attributes.{{$attribute->key}}">
@foreach($attribute->getStructure() as $columnKey => $column)
<td><input type="text" ng-model="item.{{$columnKey}}" id="{{$columnKey}}_@{{itemKey}}" ng-change="processMainValue()"/></td>
@endforeach
<td><a href="" ng-click="deleteRow(itemKey)">{{Config::get('kms::'.$lang.'/translations.delete')}}</a></td>
</tr>
<tr>
@foreach($attribute->getStructure() as $columnKey => $column)
<td><input type="text" ng-model="new_{{$columnKey}}" ng-change="addNewRow('{{$columnKey}}')" placeholder="{{$column}}" class="new-item-field"/></td>
@endforeach
<td> </td>
</tr>
</table>
</div>
{{-- Deze structuur is al in de foreach verwerkt
<script id="data-{{$attribute->key}}" type="application/json">
{
"structure" : {{ json_encode($attribute->getStructure()) }}
}
</script>
--}}
</div>