110 lines
No EOL
4.2 KiB
PHP
110 lines
No EOL
4.2 KiB
PHP
@extends('layouts.layout')
|
|
|
|
@section('content')
|
|
<section class="text-center container">
|
|
<div class="lead col-md-12" ><h2>Mail</h2></div>
|
|
|
|
<p> </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>
|
|
@if($send_date)
|
|
<input class="col-md-8" style="width:400px" id="send_date" name="send_date" value="{{ $send_date }}" readonly></input>
|
|
@else
|
|
<input class="col-md-8" style="width:400px" id="send_date" name="send_date" value="no send !" readonly></input>
|
|
@endif
|
|
</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> </p>
|
|
|
|
<div class="col-md-12">
|
|
<label class="col-md-2" style="width:200px;">Thema:</label>
|
|
<input class="col-md-8" style="width:400px" id="topic" name="topic" value="{{ $topic }}">
|
|
</div>
|
|
|
|
|
|
<p> </p>
|
|
|
|
|
|
<label>Empfänger:</label>
|
|
<p> </p>
|
|
<textarea id="recipients" name="recipients" class="form-control" style="min-height:150px;height:auto;">{{ $recipients }}</textarea>
|
|
|
|
|
|
<p> </p>
|
|
|
|
|
|
|
|
<div>
|
|
<button onClick="setAdminRecipient(); return false;">Alle Administatoren</button>
|
|
<button onClick="setActiveRecipient(); return false;">Alle aktiven Spieler</button>
|
|
<button onClick="setInactiveRecipient(); return false;">Alle inaktiven Spieler (unbezahlt oder gelöscht)</button>
|
|
<button onClick="setMissingTippRecipient(); return false;">Alle Spieler mit fehlenden Tipps</button>
|
|
<button onClick="setMissingJokerRecipient(); return false;">Alle Spieler mit fehlenden Jokern</button>
|
|
<div>
|
|
<button onClick="setTippLink(); return false;">Tipplink hinzufügen</button>
|
|
<p> </p>
|
|
<label>Nachricht</label>
|
|
<textarea id="message" name="message" class="form-control" style="min-height:250px;height:auto;">{{ str_replace("<br/>","\n",$mail_message) }}</textarea>
|
|
|
|
<input type="hidden" id="user_id" name="user_id" value="{{ $user_id }}">
|
|
|
|
<p></p>
|
|
<div class="form-group">
|
|
@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>
|
|
|
|
|
|
<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 setMissingTippRecipient()
|
|
{
|
|
var elem = document.getElementById("recipients");
|
|
elem.innerHTML = "{{ $missingTippMailList }}";
|
|
}
|
|
|
|
function setMissingJokerRecipient()
|
|
{
|
|
var elem = document.getElementById("recipients");
|
|
elem.innerHTML = "{{ $missingJokerMailList }}";
|
|
}
|
|
function setTippLink()
|
|
{
|
|
var elem = document.getElementById("message");
|
|
elem.innerHTML += "Link zur Tippseite: {{ $tippSpielLink }}";
|
|
}
|
|
</script>
|
|
|
|
|
|
</section>
|
|
@endsection |