mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-11 07:18:03 +00:00
fix room search form
This commit is contained in:
parent
660d6613d6
commit
10dae97b78
@ -19,12 +19,14 @@ class RoomController extends AbstractController
|
|||||||
'GET'
|
'GET'
|
||||||
]
|
]
|
||||||
)]
|
)]
|
||||||
public function index(): Response
|
public function index(
|
||||||
|
?Request $request
|
||||||
|
): Response
|
||||||
{
|
{
|
||||||
return $this->redirectToRoute(
|
return $this->redirectToRoute(
|
||||||
'room_namespace',
|
'room_namespace',
|
||||||
[
|
[
|
||||||
'namespace' => $this->getParameter('app.kevacoin.room.namespace.default')
|
'namespace' => $request->get('namespace') ? $request->get('namespace') : $this->getParameter('app.kevacoin.room.namespace.default')
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<form name="room" action="{{ path('room_namespace', { namespace : room.namespace }) }}" method="get">
|
<form name="room" action="{{ path('room_index') }}" method="get">
|
||||||
<input type="text" name="namespace" value="{{ room.namespace }}" placeholder="{{ 'join room by kevacoin namespace...' | trans }}" />
|
<input type="text" name="namespace" value="{{ room.namespace }}" placeholder="{{ 'join room by kevacoin namespace...' | trans }}" />
|
||||||
</form>
|
</form>
|
||||||
{% if list %}
|
{% if list %}
|
||||||
|
Loading…
Reference in New Issue
Block a user