Commit 2ed43d23 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed csp

parent dc51a754
......@@ -175,7 +175,9 @@ class HumanVerification extends Controller
->with('title', "Bot Overview")
->with('ip', $request->ip())
->with('userList', $human_verification->getUserList())
->with('user', $human_verification->getUser());
->with('user', $human_verification->getUser())
->with('css', [mix('css/admin/bot/index.css')])
->with('js', [mix('js/admin/bot.js')]);
}
public function botOverviewChange(Request $request)
......
......@@ -3,15 +3,6 @@
@section('title', $title )
@section('content')
<style>
.user {
width: max-content;
padding: 1rem;
border: 1px solid white;
background-color: #4a4a4a;
border-radius: 5px;
}
</style>
<div class="user">
<table>
<tbody>
......@@ -31,7 +22,7 @@
<td>Unused Resultpages</td>
<td>
<form action="" method="post">
<input onchange="this.form.submit()" type="number" name="unusedResultPages" id="unusedResultPages" value="{{$user["unusedResultPages"]}}">
<input type="number" name="unusedResultPages" id="unusedResultPages" value="{{$user["unusedResultPages"]}}">
</form>
</td>
</tr>
......@@ -39,7 +30,7 @@
<td>Whitelist</td>
<td>
<form action="" method="post">
<select name="whitelist" id="locked" onchange="this.form.submit()">
<select name="whitelist" id="locked">
<option value="1" @if($user["whitelist"]) selected @endif>True</option>
<option value="0" @if(!$user["whitelist"]) selected @endif>False</option>
</select>
......@@ -50,7 +41,7 @@
<td>Locked</td>
<td>
<form action="" method="post">
<select name="locked" id="locked" onchange="this.form.submit()">
<select name="locked" id="locked">
<option value="1" @if($user["locked"]) selected @endif>True</option>
<option value="0" @if(!$user["locked"]) selected @endif>False</option>
</select>
......
......@@ -31,6 +31,7 @@ mix
.less("resources/less/metager/pages/count/style.less", "public/css/count/style.css")
.less("resources/less/metager/pages/admin/affilliates/index.less", "public/css/admin/affilliates/index.css")
.less("resources/less/metager/pages/admin/affilliates/index-dark.less", "public/css/admin/affilliates/index-dark.css")
.less("resources/less/metager/pages/admin/bot/index.less", "public/css/admin/bot/index.css")
.less("resources/less/metager/pages/asso/style-dark.less", "public/css/asso/dark.css")
.less("resources/less/metager/pages/asso/style.less", "public/css/asso/style.css")
.less("resources/less/metager/pages/spende/danke.less", "public/css/spende/danke.css")
......@@ -68,6 +69,7 @@ mix
.js("resources/js/scriptJoinPage.js", "public/js/scriptJoinPage.js")
.js("resources/js/admin/affilliates/index.js", "public/js/admin/affilliates.js")
.js("resources/js/admin/spam.js", "public/js/admin/spam.js")
.js("resources/js/admin/bot.js", "public/js/admin/bot.js")
.polyfill({
enabled: true,
useBuiltIns: "usage",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment