{"id":1702,"date":"2026-05-08T11:05:49","date_gmt":"2026-05-08T11:05:49","guid":{"rendered":"https:\/\/app.digitalfreelancer.org\/?page_id=1702"},"modified":"2026-05-08T19:31:43","modified_gmt":"2026-05-08T19:31:43","slug":"dashboard-task","status":"publish","type":"page","link":"http:\/\/app.digitalfreelancer.org\/index.php\/dashboard-task\/","title":{"rendered":"Dashboard Task"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1702\" class=\"elementor elementor-1702\">\n\t\t\t\t<div class=\"elementor-element elementor-element-80847fb e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"80847fb\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ec64809 elementor-widget elementor-widget-shortcode\" data-id=\"ec64809\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3db31ff e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"3db31ff\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-41b7199 elementor-widget elementor-widget-shortcode\" data-id=\"41b7199\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">Acesso Restrito.<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-c2c6ed7 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"c2c6ed7\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-39f0d5d elementor-widget elementor-widget-shortcode\" data-id=\"39f0d5d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">    <script src=\"https:\/\/cdn.jsdelivr.net\/npm\/chart.js\"><\/script>\n    <style>\n        .u-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; font-family: 'Inter', sans-serif; }\n        .card { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 20px; }\n        .input-f { width:100%; padding:10px; border:1px solid #cbd5e1; border-radius:8px; margin-bottom:10px; }\n        .btn-status { border:none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: bold; }\n        .st-pend { background: #f1f5f9; color: #475569; }\n        .st-dev { background: #fef3c7; color: #92400e; }\n        .st-conc { background: #dcfce7; color: #166534; }\n        \n        \/* BOT\u00c3O PADR\u00c3O (Agendar e Exportar iguais) *\/\n        .btn-action-main { \n            background: #059669; \n            color: white; \n            border: none; \n            padding: 12px 20px; \n            border-radius: 8px; \n            cursor: pointer; \n            font-weight: bold; \n            text-decoration: none; \n            display: inline-block;\n            text-align: center;\n            transition: background 0.2s;\n        }\n        .btn-action-main:hover { background: #047857; color: white; }\n    <\/style>\n\n    <div class=\"u-grid\">\n        <div>\n            <!-- NOVO PLANEAMENTO -->\n            <div class=\"card\">\n                <h3 style=\"margin-top:0\">\ud83d\udcc5 Planear Atividade<\/h3>\n                <form method=\"post\">\n                    <input type=\"hidden\" name=\"dt_action\" value=\"add_task_ultra\">\n                    <input type=\"text\" name=\"t_nome\" class=\"input-f\" placeholder=\"O que vai fazer?\" required>\n                    <textarea name=\"t_desc\" class=\"input-f\" placeholder=\"Descri\u00e7\u00e3o da tarefa...\" style=\"height:60px;\"><\/textarea>\n                    <div style=\"display:grid; grid-template-columns: 1fr 1fr 1fr; gap:10px;\">\n                        <select name=\"t_proj\" class=\"input-f\"><option value='CSM - IUDEX'>CSM - IUDEX<\/option><option value='ISCTE - MANAGIDITH'>ISCTE - MANAGIDITH<\/option><\/select>\n                        <input type=\"date\" name=\"t_start\" class=\"input-f\" required>\n                        <input type=\"date\" name=\"t_end\" class=\"input-f\" required>\n                    <\/div>\n                    <button type=\"submit\" class=\"btn-action-main\" style=\"width:100%; margin-top:5px;\">Agendar Atividade<\/button>\n                <\/form>\n            <\/div>\n\n            <!-- FILTROS E EXPORTA\u00c7\u00c3O -->\n            <div style=\"margin-bottom:20px; display:flex; justify-content:space-between; align-items:center;\">\n                <div style=\"display:flex; gap:8px;\">\n                    <a href=\"?periodo=tudo\" class=\"btn-status st-dev\" style=\"text-decoration:none;\">Tudo<\/a>\n                    <a href=\"?periodo=semana\" class=\"btn-status st-pend\" style=\"text-decoration:none;\">Semana<\/a>\n                    <a href=\"?periodo=mes\" class=\"btn-status st-pend\" style=\"text-decoration:none;\">M\u00eas<\/a>\n                <\/div>\n                <!-- BOT\u00c3O IGUAL AO AGENDAR -->\n                <a href=\"?export=excel\" class=\"btn-action-main\" style=\"font-size: 13px;\">\ud83d\udce5 Exportar para Excel<\/a>\n            <\/div>\n\n            <!-- LISTAGEM -->\n            <h3 style=\"color:#1e293b;\">As Minhas Atividades<\/h3>\n                    <\/div>\n        <!-- SIDEBAR -->\n        <div>\n            <div class=\"card\" style=\"position:sticky; top:20px; border:1px solid #e2e8f0;\">\n                <h4 style=\"margin-top:0; color:#1e293b;\">O Meu Progresso<\/h4>\n                <canvas id=\"ultraChart\"><\/canvas>\n                <div style=\"margin-top:15px; font-size:12px; color:#64748b; line-height:1.6;\">\n                    Total de tarefas: 0<br>\n                    Horas totais investidas: <strong>0h<\/strong>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n    <script>\n    new Chart(document.getElementById('ultraChart'), {\n        type: 'doughnut',\n        data: {\n            labels: ['Conclu\u00eddo', 'Desenvolvimento', 'Pendente'],\n            datasets: [{\n                data: [0,0,0],\n                backgroundColor: ['#10b981', '#f59e0b', '#94a3b8'],\n                borderWidth: 0\n            }]\n        },\n        options: { plugins: { legend: { position: 'bottom' } } }\n    });\n    <\/script>\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3c81a5b elementor-hidden-mobile e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"3c81a5b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b4fe4d1 elementor-widget elementor-widget-spacer\" data-id=\"b4fe4d1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-1702","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/app.digitalfreelancer.org\/index.php\/wp-json\/wp\/v2\/pages\/1702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/app.digitalfreelancer.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/app.digitalfreelancer.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/app.digitalfreelancer.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/app.digitalfreelancer.org\/index.php\/wp-json\/wp\/v2\/comments?post=1702"}],"version-history":[{"count":13,"href":"http:\/\/app.digitalfreelancer.org\/index.php\/wp-json\/wp\/v2\/pages\/1702\/revisions"}],"predecessor-version":[{"id":1738,"href":"http:\/\/app.digitalfreelancer.org\/index.php\/wp-json\/wp\/v2\/pages\/1702\/revisions\/1738"}],"wp:attachment":[{"href":"http:\/\/app.digitalfreelancer.org\/index.php\/wp-json\/wp\/v2\/media?parent=1702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}