1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Fixed document selection issue

This commit is contained in:
Eldad Fux 2020-05-06 09:33:10 +03:00
parent 72a50cc693
commit 5aa3e768df

View file

@ -43,7 +43,7 @@ $rules = $collection->getAttribute('rules', []);
</div> </div>
<div data-ls-if="({{project-documents.sum}})"> <div data-ls-if="({{project-documents.sum}})">
<div class="scroll"> <form class="scroll">
<table class="margin-top-no margin-bottom-no"> <table class="margin-top-no margin-bottom-no">
<thead> <thead>
<tr> <tr>
@ -58,7 +58,8 @@ $rules = $collection->getAttribute('rules', []);
<tbody data-ls-loop="project-documents.documents" data-ls-as="node"> <tbody data-ls-loop="project-documents.documents" data-ls-as="node">
<tr> <tr>
<td data-title="x" class=""> <td data-title="x" class="">
<input type="radio" id="selected-document-<?php echo $this->escape($id); ?>" name="selected" data-ls-attrs="value={{node.$id}}" data-ls-bind="{{search.selected}}" /> <!-- <input type="radio" name="selected" data-ls-attrs="value={{file.$id}}" data-ls-bind="{{search.selected}}" /> -->
<input type="radio" name="selected" data-ls-attrs="value={{node.$id}}" data-ls-bind="{{search.selected}}" />
</td> </td>
<?php foreach($rules as $rule): <?php foreach($rules as $rule):
$label = (isset($rule['label'])) ? $rule['label'] : ''; $label = (isset($rule['label'])) ? $rule['label'] : '';
@ -89,7 +90,7 @@ $rules = $collection->getAttribute('rules', []);
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </form>
</div> </div>
</div> </div>