(update form template and styles)

This commit is contained in:
Adam Wathan
2017-08-22 15:42:11 -04:00
parent f0823c77e3
commit 3a6be393f4
2 changed files with 24 additions and 6 deletions

View File

@@ -14,3 +14,9 @@
background-color: hsl(hue(@color-danger), 100%, 99%); background-color: hsl(hue(@color-danger), 100%, 99%);
border-color: @color-danger; border-color: @color-danger;
} }
.alert-success {
background-color: #edf8ff;
border-color: #a8d9f5;
color: #2b729e;
}

View File

@@ -28,19 +28,31 @@
<h1 class="text-xl wt-light text-center m-xs-b-4 text-dark">New Message</h1> <h1 class="text-xl wt-light text-center m-xs-b-4 text-dark">New Message</h1>
@if (session()->has('flash')) @if (session()->has('flash'))
<div class="alert alert-success m-xs-b-4">Message sent!</div> <div class="alert alert-success m-xs-b-4">
{{ session('flash') }}
</div>
@endif @endif
<div class="card p-xs-6"> <div class="card p-xs-6">
<form action="#" method="POST"> <form action="{{ route('backstage.concert-messages.store', $concert) }}" method="POST">
{{ csrf_field() }} {{ csrf_field() }}
<div class="form-group"> <div class="form-group {{ $errors->first('subject', 'has-error')}}">
<label class="form-label">Subject</label> <label class="form-label">Subject</label>
<input name="subject" class="form-control" required> <input name="subject" class="form-control" value="{{ old('subject') }}">
@if($errors->has('subject'))
<p class="help-block">
{{ $errors->first('subject') }}
</p>
@endif
</div> </div>
<div class="form-group"> <div class="form-group {{ $errors->first('message', 'has-error')}}">
<label class="form-label">Message</label> <label class="form-label">Message</label>
<textarea class="form-control" name="message" rows="10" required></textarea> <textarea class="form-control" name="message" rows="10">{{ old('message') }}</textarea>
@if($errors->has('message'))
<p class="help-block">
{{ $errors->first('message') }}
</p>
@endif
</div> </div>
<div> <div>
<button class="btn btn-primary btn-block text-smooth">Send Now</button> <button class="btn btn-primary btn-block text-smooth">Send Now</button>