<div ng-app="psApp" ng-controller="psController as vm" ng-cloak>
    <div class="contenedor-estatal contenedor-regresar">
        <a href="../marco-normativo-estatal" title="Regresar">
            <img src="https://evalua-pbr.nl.gob.mx/wp-content/plugins/programas-sectoriales/inc/../img/regresar.svg" class="link-regresar">
        </a>
    </div>
    <table 
    class="tabla-pbr tabla-pe table wp-list-table widefat" 
    id="">
    <thead>
        <tr>
            <th>Ente público</th>  
            <th>Programa</th>
            <th>Periodo</th>
            <th>Descarga de PDF</th>
            <th ng-if="vm.esAdmin"></th>
        </tr>
    </thead>
    <tbody>
        <tr ng-repeat="e in vm.programas">
            <td>
                {{ e.ente_publico }}
            </td>
            <td>
                {{ e.programa }}
            </td>
            <td>
                {{ e.periodo }}
            </td>
            <td>
                <a href="{{ e.link }}" 
                    target="_blank"
                    ng-if="e.link.length > 0">
                    <img src="https://evalua-pbr.nl.gob.mx/wp-content/plugins/programas-sectoriales/inc/plantillas/../../img/pdf.png" 
                    class="img-link-descarga"
                        ng-if="e.link.toLowerCase().endsWith('pdf')"
                    alt="">
                </a>
            </td>
            <td ng-if="vm.esAdmin">
                <a href="javascript:" class="button button-primary" ng-click="vm.modificar(e)" >
                    Modificar
                </a>
                <a href="javascript:" class="button button-primary" ng-click="vm.eliminar(e)" >
                    Eliminar
                </a>
            </td>
        </tr>
        <tr ng-if="!vm.esAdmin && vm.programas.length == 0">
            <td colspan="4" >
                No se encontraron resultados
            </td>
        </tr>
        <tr>
            <td colspan="4" style="text-align:center" ng-if="vm.programas == null || vm.cargando">
                <div class="lds-default" ><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
                <div>
                Cargando información...
                </div>
            </td>
        </tr>
    </tbody>
</table>

</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"></script>
<script src="https://evalua-pbr.nl.gob.mx/wp-content/plugins/programas-sectoriales/inc/../js/admin-ps.js"></script>
{"id":1241,"date":"2023-06-05T14:09:34","date_gmt":"2023-06-05T14:09:34","guid":{"rendered":"http:\/\/10.200.4.111\/wordpress\/?page_id=1241"},"modified":"2023-06-05T14:09:34","modified_gmt":"2023-06-05T14:09:34","slug":"programas-sectoriales","status":"publish","type":"page","link":"https:\/\/evalua-pbr.nl.gob.mx\/index.php\/programas-sectoriales\/","title":{"rendered":"Programas sectoriales"},"content":{"rendered":"\n","protected":false},"excerpt":{"rendered":"<p> [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/evalua-pbr.nl.gob.mx\/index.php\/programas-sectoriales\/\">Leer m\u00e1s&#8230;<span class=\"screen-reader-text\"> from Programas sectoriales<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1241","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/evalua-pbr.nl.gob.mx\/index.php\/wp-json\/wp\/v2\/pages\/1241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evalua-pbr.nl.gob.mx\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/evalua-pbr.nl.gob.mx\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/evalua-pbr.nl.gob.mx\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/evalua-pbr.nl.gob.mx\/index.php\/wp-json\/wp\/v2\/comments?post=1241"}],"version-history":[{"count":1,"href":"https:\/\/evalua-pbr.nl.gob.mx\/index.php\/wp-json\/wp\/v2\/pages\/1241\/revisions"}],"predecessor-version":[{"id":1242,"href":"https:\/\/evalua-pbr.nl.gob.mx\/index.php\/wp-json\/wp\/v2\/pages\/1241\/revisions\/1242"}],"wp:attachment":[{"href":"https:\/\/evalua-pbr.nl.gob.mx\/index.php\/wp-json\/wp\/v2\/media?parent=1241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}