Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
3e27f13a
Commit
3e27f13a
authored
2 years ago
by
S-Nathalia
Browse files
Options
Download
Plain Diff
Merge branch 'master' of github.com:lmtsufape/submeta
parents
6e2bf42a
3daa4e92
master
carl-branch
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.env.example
+2
-2
.env.example
app/Policies/UsuariosPolicy.php
+0
-47
app/Policies/UsuariosPolicy.php
resources/views/administrador/usersAdmin.blade.php
+33
-4
resources/views/administrador/usersAdmin.blade.php
resources/views/projeto/editaFormulario/participantes.blade.php
+1
-1
...ces/views/projeto/editaFormulario/participantes.blade.php
resources/views/projeto/formularioVisualizar/participantes2.blade.php
+8
-7
...ews/projeto/formularioVisualizar/participantes2.blade.php
with
44 additions
and
61 deletions
+44
-61
.env.example
View file @
3e27f13a
A
PP_NAME=Laravel
PP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
...
...
@@ -43,4 +43,4 @@ PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/Policies/UsuariosPolicy.php
deleted
100755 → 0
View file @
6e2bf42a
<?php
namespace
App\Policies
;
use
App\User
;
use
App\Evento
;
use
App\CoordenadorComissao
;
use
App\AdministradorResponsavel
;
use
Illuminate\Auth\Access\HandlesAuthorization
;
class
UsuariosPolicy
{
use
HandlesAuthorization
;
/**
* Create a new policy instance.
*
* @return void
*/
public
function
__construct
()
{
}
public
function
isUser
(
User
$user
){
if
(
$user
->
has
(
''
)){
}
else
if
(){
}
else
if
(){
}
else
if
(){
}
else
if
(){
}
else
if
(){
}
else
if
(){
}
}
}
This diff is collapsed.
Click to expand it.
resources/views/administrador/usersAdmin.blade.php
View file @
3e27f13a
...
...
@@ -4,7 +4,7 @@
<
div
class
=
"container"
style
=
"margin-top: 30px;"
>
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-md-12"
style
=
"margin-top: 30px;"
>
...
...
@@ -29,6 +29,9 @@
</
div
>
</
div
>
<
hr
>
<
div
class
=
"col-sm-4 mb-3"
style
=
"display:flex; margin:auto;"
>
<
input
type
=
"text"
class
=
"form-control form-control-edit"
placeholder
=
"Digite o nome do usuário..."
onkeyup
=
"buscar(this)"
>
<
img
src
=
"
{
{asset('img/icons/logo_lupa.png')}
}
"
alt
=
""
>
</
div
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
...
...
@@ -38,11 +41,11 @@
<
th
scope
=
"col"
>
Opções
</
th
>
</
tr
>
</
thead
>
<
tbody
>
<
tbody
id
=
"usuarios"
>
@
foreach
(
$users
as
$user
)
@
if
(
auth
()
->
user
()
->
id
!=
$user
->
id
)
@
if
(
auth
()
->
user
()
->
id
!=
"administrador"
)
<
tr
>
<
tr
class
=
"apareceu"
>
<
td
>
{{
$user
->
name
}}
</
td
>
...
...
@@ -117,6 +120,32 @@
@
section
(
'javascript'
)
<
script
>
function
buscar
(
input
)
{
let
nome_usuarios
=
document
.
getElementById
(
"usuarios"
)
.
children
;
if
(
input
.
value
.
length
>
2
)
{
for
(
let
i
=
0
;
i
<
nome_usuarios
.
length
;
i
++
){
if
(
nome_usuarios
[
i
]
.
classList
.
contains
(
"apareceu"
)){
let
nameUser
=
nome_usuarios
[
i
]
.
children
[
0
]
.
textContent
;
console
.
log
(
nameUser
);
if
(
nameUser
.
toLowerCase
()
.
substr
(
0
)
.
indexOf
(
input
.
value
.
toLowerCase
())
>=
0
)
{
nome_usuarios
[
i
]
.
style
.
display
=
""
;
}
else
{
nome_usuarios
[
i
]
.
style
.
display
=
"none"
;
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
nome_usuarios
.
length
;
i
++
)
{
if
(
nome_usuarios
[
i
]
.
classList
.
contains
(
"apareceu"
)){
nome_usuarios
[
i
]
.
style
.
display
=
""
;
}
}
}
}
</
script
>
@
endsection
This diff is collapsed.
Click to expand it.
resources/views/projeto/editaFormulario/participantes.blade.php
View file @
3e27f13a
...
...
@@ -26,7 +26,7 @@
@endphp
<div
@
if
(!$
participante
)
hidden
@
endif
class=
"form-row mb-
1
col-md-6"
style=
"margin-top: 10px"
id=
"part{{$i}}"
>
<div
@
if
(!$
participante
)
hidden
@
endif
class=
"form-row mb-
3
col-md-6"
style=
"margin-top: 10px"
id=
"part{{$i}}"
>
<div
class=
"col-sm-2"
style=
"display: flex; align-items: center;"
>
<img
src=
"{{asset('img/icons/usuario.svg')}}"
style=
"width:60px"
alt=
""
>
</div>
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/formularioVisualizar/participantes2.blade.php
View file @
3e27f13a
...
...
@@ -17,16 +17,17 @@
<div
class=
"row justify-content-start"
style=
"alignment: center"
>
@foreach($projeto->participantes as $participante)
<div
class=
"col-sm-1"
>
<img
src=
"{{asset('img/icons/usuario.svg')}}"
style=
"width:60px"
alt=
""
>
<div
class=
"col-sm-1
mt-4
"
>
<img
src=
"{{asset('img/icons/usuario.svg')}}"
style=
"width:60px"
alt=
""
>
</div>
<div
class=
"col-sm-5"
>
<h5
>
{{$participante->user->name}}
</h5>
<h5
>
{{$participante->planoTrabalho->titulo}}
</h5>
<h
9
>
<div
class=
"col-sm-5
mt-4
"
>
<h5
class=
"mb-0"
>
Nome:
{{$participante->user->name}}
</h5>
<h5
class=
"mb-0"
>
Plano:
{{$participante->planoTrabalho->titulo}}
</h5>
<h
6
>
<a
href=
""
data-toggle=
"modal"
data-target=
"#modalVizuParticipante{{$participante->id}}"
class=
"button"
>
Informações
</a>
</h
9
>
</h
6
>
</div>
<!-- Modal visualizar informações participante -->
<div
class=
"modal fade"
id=
"modalVizuParticipante{{$participante->id}}"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-centered modal-xl"
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help