Added links to event/organiser dashboards on event/organiser pages for logged in users (closed #162)

This commit is contained in:
Dave Earley 2016-07-20 15:11:08 +01:00
parent c9e7e0e671
commit d3511a4f7e
5 changed files with 25 additions and 16 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -84,6 +84,12 @@ section h1 {
}
}
#adminBar {
background-color: rgba(255,255,255,.9);
text-align: center;
padding: 10px;
}
#event_page_wrap {
min-height: 100%;

View File

@ -1,20 +1,13 @@
@if(Auth::check() && !$event->is_live)
@if(Auth::check())
<section id="adminBar">
<div class="container">
<div class="row">
<div class="col-md-12">
<style>
.not_live {
margin: 20px;
text-align: center;
}
</style>
<div class="alert alert-warning not_live">
This event is not visible to the public. <a href="{{route('MakeEventLive' , ['event_id' => $event->id])}}" target="_blank">Click
here to make it live</a> .
</div>
<a class="btn btn-primary btn-xs" href="{{route('showEventDashboard' , ['event_id' => $event->id])}}" >Event Dashboard</a>
@if(!$event->is_live)
<a style="background-color: green; border-color: green;" class="btn btn-success btn-xs" href="{{route('MakeEventLive' , ['event_id' => $event->id])}}" >Publish Event</a>
@endif
</div>
</div>
</div>
</section>
@endif

View File

@ -1,3 +1,13 @@
@if(Auth::check())
<section id="adminBar">
<div class="container">
<div class="row">
<div class="col-md-12">
<a class="btn btn-primary btn-xs" href="{{route('showOrganiserDashboard' , ['organiser_id' => $organiser->id])}}" >Organiser Dashboard</a>
</div>
</div>
</section>
@endif
<section id="intro" class="container">
<div class="row">
<div class="col-md-12">