aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-25 22:18:23 +0100
committerMateja <mail@matejamaric.com>2020-10-25 22:18:23 +0100
commitdda8fb2a05de804f2b37245fde2580a9d18cc51b (patch)
tree032bbd11439aded239488b88a34944b0d7384e1a /resources/views/pages
parent4b92a7928ec6634dff4ca066af0a43ad1cfb3c46 (diff)
downloadyota-laravel-dda8fb2a05de804f2b37245fde2580a9d18cc51b.tar.gz
yota-laravel-dda8fb2a05de804f2b37245fde2580a9d18cc51b.zip
Form validation, blade, bootstrap
Diffstat (limited to 'resources/views/pages')
-rw-r--r--resources/views/pages/gallery.blade.php10
-rw-r--r--resources/views/pages/news.blade.php5
-rw-r--r--resources/views/pages/reserve.blade.php51
-rw-r--r--resources/views/pages/sponsoring.blade.php7
4 files changed, 54 insertions, 19 deletions
diff --git a/resources/views/pages/gallery.blade.php b/resources/views/pages/gallery.blade.php
index 7b29580..ebdf42c 100644
--- a/resources/views/pages/gallery.blade.php
+++ b/resources/views/pages/gallery.blade.php
@@ -1,10 +1,8 @@
@extends('layouts.app')
@section('content')
- <img src="/imgs/camp.png" alt="YOTA camp"/>
- <img src="/imgs/yota.jpg" alt="YOTA"/>
-
- <h1>Sponsors: </h1>
- <img src="/imgs/4o3a.png" alt="4o3a"/>
- <img src="/imgs/spiderbeam.gif" alt="Spiderbeam"/>
+ <div class="row">
+ <img class="col-lg-6" src="/imgs/camp.png" alt="YOTA camp"/>
+ <img class="col-lg-6" src="/imgs/yota.jpg" alt="YOTA"/>
+ </div>
@endsection()
diff --git a/resources/views/pages/news.blade.php b/resources/views/pages/news.blade.php
index a8685eb..5e4453f 100644
--- a/resources/views/pages/news.blade.php
+++ b/resources/views/pages/news.blade.php
@@ -4,11 +4,8 @@
@foreach($news as $post)
<div class="well">
<h3>{{ $post->title }}</h3>
- <small>Written at: {{ $post->created_at }}</small>
+ <small>Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset</small>
<p>{{ $post->text }}</p>
- @isset ($post->author)
- <small>Author: {{ $post->author }}</small>
- @endisset
</div>
@endforeach
@endsection()
diff --git a/resources/views/pages/reserve.blade.php b/resources/views/pages/reserve.blade.php
index a3a2519..26003b8 100644
--- a/resources/views/pages/reserve.blade.php
+++ b/resources/views/pages/reserve.blade.php
@@ -11,31 +11,46 @@
<!-- SPECIAL CALL -->
<div class="form-group">
<label for="special-call">Special Callsign:</label>
- <select class="form-control" id="special-call" name="scall">
+ <select class="form-control @error('scall') is-invalid @enderror" id="special-call" name="scall">
<option value="YT50SCWC">YT50SCWC</option>
</select>
+ @error('scall')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+ @enderror
</div>
<!-- START TIME -->
<div class="form-group">
<label for="start-date">Start date:</label>
- <input class="form-control" type="date" id="start-date" name="sdate">
+ <input class="form-control @error('sdate') is-invalid @enderror" type="date" id="start-date" name="sdate">
+ @error('sdate')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+ @enderror
</div>
<div class="form-group">
<label for="start-time">Start time:</label>
- <input class="form-control" type="time" id="start-time" name="stime">
+ <input class="form-control @error('stime') is-invalid @enderror" type="time" id="start-time" name="stime">
+ @error('stime')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+ @enderror
</div>
<!-- END TIME -->
<div class="form-group">
<label for="end-date">End date:</label>
- <input class="form-control" type="date" id="end-date" name="edate">
+ <input class="form-control @error('edate') is-invalid @enderror" type="date" id="end-date" name="edate">
+ @error('edate')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+ @enderror
</div>
<div class="form-group">
<label for="end-time">End time:</label>
- <input class="form-control" type="time" id="end-time" name="etime">
+ <input class="form-control @error('etime') is-invalid @enderror" type="time" id="end-time" name="etime">
+ @error('etime')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+ @enderror
</div>
<!-- BANDS -->
@@ -111,6 +126,9 @@
<label class="form-check-label" for="cb14">2.3 GHz</label>
</div>
+@error('freqs')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+@enderror
</fieldset>
<!-- MODES -->
<fieldset class="form-group">
@@ -151,30 +169,45 @@
<label class="form-check-label" for="OTHER DIGITAL">OTHER DIGITAL</label>
</div>
+@error('modes')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+@enderror
</fieldset>
<!-- OPERATOR CALL -->
<div class="form-group">
<label for="operator-call">Operator Callsign:</label>
- <input class="form-control" type="text" id="operator-call" name="ocall">
+ <input class="form-control @error('ocall') is-invalid @enderror" type="text" id="operator-call" name="ocall">
+ @error('ocall')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+ @enderror
</div>
<!-- OPERATOR NAME -->
<div class="form-group">
<label for="operator-name">Operator name:</label>
- <input class="form-control" type="text" id="operator-name" name="oname">
+ <input class="form-control @error('oname') is-invalid @enderror" type="text" id="operator-name" name="oname">
+ @error('oname')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+ @enderror
</div>
<!-- OPERATOR EMAIL -->
<div class="form-group">
<label for="operator-email">Operator email:</label>
- <input class="form-control" type="email" id="operator-email" name="email">
+ <input class="form-control @error('email') is-invalid @enderror" type="email" id="operator-email" name="email">
+ @error('email')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+ @enderror
</div>
<!-- OPERATOR PHONE -->
<div class="form-group">
<label for="operator-phone">Operator phone:</label>
- <input class="form-control" type="tel" id="operator-phone" name="phone">
+ <input class="form-control @error('phone') is-invalid @enderror" type="tel" id="operator-phone" name="phone">
+ @error('phone')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+ @enderror
</div>
<!-- SUBMIT BUTTON -->
diff --git a/resources/views/pages/sponsoring.blade.php b/resources/views/pages/sponsoring.blade.php
index 78ef499..826fe09 100644
--- a/resources/views/pages/sponsoring.blade.php
+++ b/resources/views/pages/sponsoring.blade.php
@@ -3,4 +3,11 @@
@section('content')
<p>If you are willing to be one of the sponsors of the event and help us set the high standards for Balkan YOTA camp, feel free to contact Goran YT7AW hajosevic at gmail . com</p>
<p>As part of the camp and presentations will be dedicated to already experienced HAM radio operators, this is a great opportunity to present your company and products in the region. Additionally a banner and link to your website will be made available here.</p>
+
+<h3 class="mt-3">Sponsors: </h1>
+
+<div class="row">
+ <img class="col-md-2" src="/imgs/4o3a.png" alt="4o3a"/>
+ <img class="col-md-2" src="/imgs/spiderbeam.gif" alt="Spiderbeam"/>
+</div>
@endsection()