</tbody>
    </table>
    <img src="resources/images/pm_plus_16.png"
         alt="Edit"
         width="16"
         height="16"
         onclick="ARP.create();" />

    <br />

    <!-- ARP Add -->
    <div id="arpEdit" style="display: none;">
        <script type="text/javascript">
        <?php 
    foreach ($this->data['adminentities'] as $entity) {
        $arpId = $entity->getArp();
        $entityId = $entity->getEntityid();
        $entityName = $entity->getPrettyname();
        $entityData = array('eid' => $entity->getEid(), 'entityId' => $entity->getEntityid(), 'name' => $entity->getPrettyname(), 'revision' => $entity->getRevisionid());
        $entityDataJson = json_encode($entityData, true);
        echo "ARP.setEntityForArp({$arpId}, {$entityDataJson});" . PHP_EOL;
    }
    ?>
        </script>
        <form action="" method="post" onsubmit="return ARP.validate()">
            <a href="#"
               style="float: right;"
               onclick="$(this).parents('#arpEdit').hide(); return false;"
                >
                [<?php 
    echo strtoupper($this->t('text_close'));