Here are the instructions for the frontend changes to implement the multi-profile selection for tasks. **1. HTML Structure** The following HTML block should be added inside the task editing popup. The popup seems to be generated by a javascript function called `estruturaTarefa`. You should find that function in your javascript files and add this HTML block in a suitable place inside it, likely near the "Responsáveis" or "Prioridade" sections. ```html
Perfis
Adicionar Perfil
``` **2. CSS Styling** You might need to add some CSS to style the new elements. Here is some example CSS you can add to your stylesheet (e.g., `/browse/comum/css/painel3.css`): ```css .campo-tarefa-perfis { margin-bottom: 15px; } .campo-tarefa-perfis .label { font-weight: bold; margin-bottom: 5px; } .selecao-perfis .selecionados { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; } .selecao-perfis .perfil-item { background-color: #f0f0f0; border-radius: 3px; padding: 3px 8px; font-size: 12px; display: flex; align-items: center; } .selecao-perfis .remover-perfil { margin-left: 5px; cursor: pointer; font-weight: bold; } .dropdown-perfis { position: absolute; background-color: white; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); z-index: 100; width: 200px; } .search-box input { width: 100%; padding: 8px; border: none; border-bottom: 1px solid #ccc; } .lista-perfis { list-style: none; margin: 0; padding: 0; max-height: 150px; overflow-y: auto; } .lista-perfis li { padding: 8px; cursor: pointer; } .lista-perfis li:hover { background-color: #f0f0f0; } .lista-perfis li.selecionado { background-color: #e0e0e0; font-weight: bold; } .btn-adicionar-perfil { cursor: pointer; display: flex; align-items: center; color: #3e63dd; } .btn-adicionar-perfil svg { width: 18px; height: 18px; fill: #3e63dd; margin-right: 5px; } ``` **3. JavaScript (jQuery)** The following JavaScript code should be added to a script file that is loaded on the page, for example at the end of `browse/footer.php` inside a `