views/fields/file_store.slim in engine2-1.0.4 vs views/fields/file_store.slim in engine2-1.0.5
- old
+ new
@@ -5,24 +5,24 @@
tr
th>
th Nazwa
th Data
tbody
- tr ng-repeat="f in action.files" ng-hide="f.deleted"
+ tr ng-repeat="ff in action.parent().record[f]" ng-hide="ff.deleted"
td
.btn-group.btn-group-xs
- a.btn.btn-default ng-click="action.show_file(f)": span.glyphicon.glyphicon-file
- a.btn.btn-default ng-click="action.delete_file(f)": span.glyphicon.glyphicon-trash
+ a.btn.btn-default ng-click="action.show_file(ff)": span.glyphicon.glyphicon-file
+ a.btn.btn-default ng-click="action.delete_file(ff)": span.glyphicon.glyphicon-trash
td
- div ng-if="f.id": a ng-href="{{action.action_info().action_resource}}/download?id={{f.id}}" ng-bind="f.name"
- div ng-if="!f.id" ng-bind="f.name"
+ div ng-if="ff.id": a ng-href="{{action.action_info().action_resource}}/download?id={{ff.id}}" ng-bind="ff.name"
+ div ng-if="!ff.id" ng-bind="ff.name"
- td ng-bind="f.uploaded"
+ td ng-bind="ff.uploaded"
div
input [
type="hidden"
- ng-model="action.record[f]"
+ ng-model="action.parent().record[f]"
]
.progress.progress-striped
.progress-bar.progress-bar-success ng-style="{'width': action.progress + '%'}"