Working on Roundmail system

This commit is contained in:
Torsten 2017-08-21 16:55:26 +02:00
parent 3fa31921f0
commit 6d7ee1a47c
11 changed files with 224 additions and 24 deletions

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test</title>
</head>
<body>
<h1>Rundmail Test</h1>
<h3>Um nicht alle Spieler mit Spam zu belästigen, sende ich die Test-Rundmails in den nächsten Tagen</h3>
<h3>an Euch Administratoren (Volker Geissler, Wilfried Moitzheim, Michael Schmitz).</h3>
<p>&nbsp;</p>
<h3>Seid tapfer, ich belästige euch mit dem Test-Spam nur für ein paar Tage ;-)</h3>
<p>&nbsp;</p>
<h3>Wenn diese Auto-Mails vor unleserlichen Sonderzeichen nur so strotzen, lasst es mich wissen: torsten.schneider@programmschmiede.de</h3>
<p>&nbsp;</p>
<h3>-Torsten.</h3>
</body>
</html>

View file

@ -17,16 +17,16 @@
@endif
</section>
@if (Auth::check())
<div class="container-fluid jumbotron col-md-12">
<span class="col-md-2"></span>
<span class="text-center col-md-8">
<p>&nbsp;{{ $roundname }}</p>
<p>&nbsp;{!! $report !!}</p>
</span>
</div>
@foreach($display_rounds as $round)
<div class="container-fluid col-md-12">
<span class="col-md-2"></span>
<span class="text-center col-md-8">
<h2>&nbsp;{{ $round['name'] }}</h2>
<div style="font-size: 18px;">&nbsp;{!! $round['report'] !!}</div>
</span>
</div>
@endforeach
@endif
@endsection

View file

@ -0,0 +1,21 @@
@extends('layouts.layout')
@section('content')
<section class="jumbotron text-center container">
<!-- <div class="container"> -->
<span class="lead col-md-10" >Rundmails</span><a class="lead col-md-2" href="/roundmails/show/-1">Neue Rundmail</a>
<p>&nbsp;</p>
<div class="col-md-10">
<h4>(Neue Rundmail erstellen)</h4>
<h4>(Datum-sortierte Liste der letzten Themen)</h4>
<h4>(Mail-Liste)</h4>
</div>
<!-- </div> -->
</section>
@endsection

View file

@ -0,0 +1,92 @@
@extends('layouts.layout')
@section('content')
<section class="text-center container">
<div class="lead col-md-12" ><h2>Mail</h2></div>
<p>&nbsp;</p>
<form method="POST" action="/roundmails/send" class="text-center col-md-12">
{{ csrf_field() }}
<div class="col-md-12">
<label class="col-md-2" style="width:200px;">Datum der Mail</label>
<input class="col-md-8" style="width:400px" value="xxxxxxx" readonly></input>
</div>
<p>&nbsp;</p>
<div class="col-md-12">
<label class="col-md-2" style="width:200px;">Thema:</label>
<input class="col-md-8" style="width:400px" name="topic" value="">
</div>
<p>&nbsp;</p>
<label>Empfänger:</label>
<p>&nbsp;</p>
<textarea id="recipients" name="recipients" class="form-control" style="min-height:150px;height:auto;">dummy@doof.de</textarea>
<p>&nbsp;</p>
<button onClick="setAdminRecipient(); return false;">Alle Administatoren</button>&nbsp;
<button onClick="setActiveRecipient(); return false;">Alle aktiven Spieler</button>&nbsp;
<button onClick="setInactiveRecipient(); return false;">Alle inaktiven Spieler (keine Zahlung)</button>&nbsp;
<button onClick="setMissingRecipient(); return false;">Alle Spieler mit fehlenden Eingaben</button>&nbsp;
<p>&nbsp;</p>
<label>Nachricht</label>
<textarea name="message" class="form-control" style="min-height:250px;height:auto;">I am a message text</textarea>
<p></p>
<div class="form-group">
<button type="submit" class="btn btn-primary">Senden</button>
</div>
</form>
<script type="text/javascript">
function setAdminRecipient()
{
var elem = document.getElementById("recipients");
elem.innerHTML = "{{ $adminMailList }}";
}
function setActiveRecipient()
{
var elem = document.getElementById("recipients");
elem.innerHTML = "{{ $activeMailList }}";
}
function setInactiveRecipient()
{
var elem = document.getElementById("recipients");
elem.innerHTML = "{{ $inactiveMailList }}";
}
function setMissingRecipient()
{
var elem = document.getElementById("recipients");
elem.innerHTML = "{{ $missingMailList }}";
}
</script>
</section>
@endsection

View file

@ -2,7 +2,7 @@
@section('content')
<div style="float:left;left:10%">
<div style="float:left;position:relative;">
@foreach($all_rounds as $r)
@if (App\Round::hasLockedGame($r->id) )
@ -19,8 +19,8 @@
</div>
<div style="float:left; position:relative;left:47%">
<div style="float:left; position:relative; left:-50%;">
<div style="float:left; position:relative; left:5%;">
<div style="float:left;">
<h3>{{ App\Season::getCurrent()->name }}</h3>
<h4>{{ $round->name }}</h4>