Переглянути джерело

Update report views, fix missing forms

Daniel Supernault 3 місяців тому
батько
коміт
475d1d6279

+ 3 - 5
resources/views/report/abusive/comment.blade.php

@@ -31,10 +31,8 @@
             </form>
             </form>
           </div>
           </div>
 
 
-          <div class="col-12 col-md-8 offset-md-2">
-            <p><a class="font-weight-bold" href="#">
-              Learn more
-            </a> about our reporting guidelines and policy.</p>
+          <div class="col-12">
+            <p class="text-center small"><a class="font-weight-bold" href="/site/kb/community-guidelines">Learn more</a> about our community guidelines and policies.</p>
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>
@@ -42,4 +40,4 @@
   </div>
   </div>
 </div>
 </div>
 
 
-@endsection
+@endsection

+ 3 - 5
resources/views/report/abusive/post.blade.php

@@ -31,10 +31,8 @@
             </form>
             </form>
           </div>
           </div>
 
 
-          <div class="col-12 col-md-8 offset-md-2">
-            <p><a class="font-weight-bold" href="#">
-              Learn more
-            </a> about our reporting guidelines and policy.</p>
+          <div class="col-12">
+            <p class="text-center small"><a class="font-weight-bold" href="/site/kb/community-guidelines">Learn more</a> about our community guidelines and policies.</p>
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>
@@ -42,4 +40,4 @@
   </div>
   </div>
 </div>
 </div>
 
 
-@endsection
+@endsection

+ 3 - 5
resources/views/report/abusive/profile.blade.php

@@ -31,10 +31,8 @@
             </form>
             </form>
           </div>
           </div>
 
 
-          <div class="col-12 col-md-8 offset-md-2">
-            <p><a class="font-weight-bold" href="#">
-              Learn more
-            </a> about our reporting guidelines and policy.</p>
+          <div class="col-12">
+            <p class="text-center small"><a class="font-weight-bold" href="/site/kb/community-guidelines">Learn more</a> about our community guidelines and policies.</p>
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>
@@ -42,4 +40,4 @@
   </div>
   </div>
 </div>
 </div>
 
 
-@endsection
+@endsection

+ 3 - 5
resources/views/report/sensitive/comment.blade.php

@@ -31,10 +31,8 @@
             </form>
             </form>
           </div>
           </div>
 
 
-          <div class="col-12 col-md-8 offset-md-2">
-            <p><a class="font-weight-bold" href="#">
-              Learn more
-            </a> about our reporting guidelines and policy.</p>
+          <div class="col-12">
+            <p class="text-center small"><a class="font-weight-bold" href="/site/kb/community-guidelines">Learn more</a> about our community guidelines and policies.</p>
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>
@@ -42,4 +40,4 @@
   </div>
   </div>
 </div>
 </div>
 
 
-@endsection
+@endsection

+ 3 - 5
resources/views/report/sensitive/post.blade.php

@@ -31,10 +31,8 @@
             </form>
             </form>
           </div>
           </div>
 
 
-          <div class="col-12 col-md-8 offset-md-2">
-            <p><a class="font-weight-bold" href="#">
-              Learn more
-            </a> about our reporting guidelines and policy.</p>
+          <div class="col-12">
+            <p class="text-center small"><a class="font-weight-bold" href="/site/kb/community-guidelines">Learn more</a> about our community guidelines and policies.</p>
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>
@@ -42,4 +40,4 @@
   </div>
   </div>
 </div>
 </div>
 
 
-@endsection
+@endsection

+ 3 - 5
resources/views/report/sensitive/profile.blade.php

@@ -31,10 +31,8 @@
             </form>
             </form>
           </div>
           </div>
 
 
-          <div class="col-12 col-md-8 offset-md-2">
-            <p><a class="font-weight-bold" href="#">
-              Learn more
-            </a> about our reporting guidelines and policy.</p>
+          <div class="col-12">
+            <p class="text-center small"><a class="font-weight-bold" href="/site/kb/community-guidelines">Learn more</a> about our community guidelines and policies.</p>
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>
@@ -42,4 +40,4 @@
   </div>
   </div>
 </div>
 </div>
 
 
-@endsection
+@endsection

+ 23 - 22
resources/views/report/spam/comment.blade.php

@@ -9,29 +9,30 @@
         Report Comment Spam
         Report Comment Spam
       </div>
       </div>
       <div class="card-body">
       <div class="card-body">
-        <div class="p-5 text-center">
-          <p class="lead">Please select one of the following options.</p>
-        </div>
         <div class="row">
         <div class="row">
-          <div class="col-12 col-md-8 offset-md-2 my-3">
-            <p><a class="btn btn-light btn-block p-4 font-weight-bold" href="#">
-              This comment contains spam
-            </a></p>
-          </div>
-          <div class="col-12 col-md-8 offset-md-2 my-3">
-            <p><a class="btn btn-light btn-block p-4 font-weight-bold" href="#">
-              This post contains spam
-            </a></p>
+          <div class="col-12 col-md-10 offset-md-1 my-3">
+            <form method="post" action="{{route('report.form')}}">
+              @csrf
+              <input type="hidden" name="report" value="spam"></input>
+              <input type="hidden" name="type" value="{{request()->query('type')}}"></input>
+              <input type="hidden" name="id" value="{{request()->query('id')}}"></input>
+              <div class="form-group row">
+                <label class="col-sm-3 col-form-label font-weight-bold text-right">Message</label>
+                <div class="col-sm-9">
+                  <textarea class="form-control" name="msg" placeholder="Add an optional message for mods/admins" rows="4"></textarea>
+                </div>
+              </div>
+              <hr>
+              <div class="form-group row">
+                <div class="col-12">
+                  <button type="submit" class="btn btn-primary btn-block font-weight-bold">Submit</button>
+                </div>
+              </div>
+            </form>
           </div>
           </div>
-          <div class="col-12 col-md-8 offset-md-2 my-3">
-            <p><a class="btn btn-light btn-block p-4 font-weight-bold" href="#">
-              This users profile contains spam
-            </a></p>
-          </div>
-          <div class="col-12 col-md-8 offset-md-2 my-3">
-            <p><a class="font-weight-bold" href="#">
-              Learn more
-            </a> about our reporting guidelines and policy.</p>
+
+          <div class="col-12">
+            <p class="text-center small"><a class="font-weight-bold" href="/site/kb/community-guidelines">Learn more</a> about our community guidelines and policies.</p>
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>
@@ -39,4 +40,4 @@
   </div>
   </div>
 </div>
 </div>
 
 
-@endsection
+@endsection

+ 3 - 5
resources/views/report/spam/post.blade.php

@@ -31,10 +31,8 @@
             </form>
             </form>
           </div>
           </div>
 
 
-          <div class="col-12 col-md-8 offset-md-2">
-            <p><a class="font-weight-bold" href="#">
-              Learn more
-            </a> about our reporting guidelines and policy.</p>
+          <div class="col-12">
+            <p class="text-center small"><a class="font-weight-bold" href="/site/kb/community-guidelines">Learn more</a> about our community guidelines and policies.</p>
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>
@@ -42,4 +40,4 @@
   </div>
   </div>
 </div>
 </div>
 
 
-@endsection
+@endsection

+ 23 - 22
resources/views/report/spam/profile.blade.php

@@ -9,29 +9,30 @@
         Report Profile Spam
         Report Profile Spam
       </div>
       </div>
       <div class="card-body">
       <div class="card-body">
-        <div class="p-5 text-center">
-          <p class="lead">Please select one of the following options.</p>
-        </div>
         <div class="row">
         <div class="row">
-          <div class="col-12 col-md-8 offset-md-2 my-3">
-            <p><a class="btn btn-light btn-block p-4 font-weight-bold" href="#">
-              This comment contains spam
-            </a></p>
-          </div>
-          <div class="col-12 col-md-8 offset-md-2 my-3">
-            <p><a class="btn btn-light btn-block p-4 font-weight-bold" href="#">
-              This post contains spam
-            </a></p>
+          <div class="col-12 col-md-10 offset-md-1 my-3">
+            <form method="post" action="{{route('report.form')}}">
+              @csrf
+              <input type="hidden" name="report" value="spam"></input>
+              <input type="hidden" name="type" value="{{request()->query('type')}}"></input>
+              <input type="hidden" name="id" value="{{request()->query('id')}}"></input>
+              <div class="form-group row">
+                <label class="col-sm-3 col-form-label font-weight-bold text-right">Message</label>
+                <div class="col-sm-9">
+                  <textarea class="form-control" name="msg" placeholder="Add an optional message for mods/admins" rows="4"></textarea>
+                </div>
+              </div>
+              <hr>
+              <div class="form-group row">
+                <div class="col-12">
+                  <button type="submit" class="btn btn-primary btn-block font-weight-bold">Submit</button>
+                </div>
+              </div>
+            </form>
           </div>
           </div>
-          <div class="col-12 col-md-8 offset-md-2 my-3">
-            <p><a class="btn btn-light btn-block p-4 font-weight-bold" href="#">
-              This users profile contains spam
-            </a></p>
-          </div>
-          <div class="col-12 col-md-8 offset-md-2">
-            <p><a class="font-weight-bold" href="#">
-              Learn more
-            </a> about our reporting guidelines and policy.</p>
+
+          <div class="col-12">
+            <p class="text-center small"><a class="font-weight-bold" href="/site/kb/community-guidelines">Learn more</a> about our community guidelines and policies.</p>
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>
@@ -39,4 +40,4 @@
   </div>
   </div>
 </div>
 </div>
 
 
-@endsection
+@endsection