Final Roundmail system, show users with missing tips/jokers in playerlist as well.

This commit is contained in:
Torsten 2017-08-24 11:47:16 +02:00
parent 6d7ee1a47c
commit 70e28110cb
19 changed files with 3700 additions and 66 deletions

View file

@ -7,26 +7,23 @@
<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>
<input class="col-md-8" style="width:400px" id="send_date" name="send_date" value="{{ $send_date }}" readonly></input>
</div>
<div class="col-md-12">
<label class="col-md-2" style="width:200px;">Versender:</label>
<input class="col-md-8" style="width:400px" id="sender_name" name="sender_name" value="{{ $sender_name }}" 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="">
<input class="col-md-8" style="width:400px" id="topic" name="topic" value="{{ $topic }}">
</div>
@ -35,7 +32,7 @@
<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>
<textarea id="recipients" name="recipients" class="form-control" style="min-height:150px;height:auto;">{{ $recipients }}</textarea>
<p>&nbsp;</p>
@ -46,17 +43,21 @@
<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;
<button onClick="setMissingTippRecipient(); return false;">Alle Spieler mit fehlenden Tipps</button>&nbsp;
<button onClick="setMissingJokerRecipient(); return false;">Alle Spieler mit fehlenden Jokern</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>
<textarea id="message" name="message" class="form-control" style="min-height:250px;height:auto;">{{$mail_message}}</textarea>
<input type="hidden" id="user_id" name="user_id" value="{{ $user_id }}">
<p></p>
<div class="form-group">
<button type="submit" class="btn btn-primary">Senden</button>
@if (!$viewmode)
<button type="submit" class="btn btn-primary">Senden</button>
@else
<a href="/roundmails" style="font-size: 24px;">Zurück</a>
@endif
</div>
</form>
@ -80,10 +81,16 @@
elem.innerHTML = "{{ $inactiveMailList }}";
}
function setMissingRecipient()
function setMissingTippRecipient()
{
var elem = document.getElementById("recipients");
elem.innerHTML = "{{ $missingMailList }}";
elem.innerHTML = "{{ $missingTippMailList }}";
}
function setMissingJokerRecipient()
{
var elem = document.getElementById("recipients");
elem.innerHTML = "{{ $missingJokerMailList }}";
}
</script>