mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
62 lines
2.6 KiB
Plaintext
62 lines
2.6 KiB
Plaintext
<section class="heading b-b">
|
|
<div class="row no-gutter b-b">
|
|
<div class="col-xs-2 col-sm-2 col-md-1">
|
|
<section class="heading-btn">
|
|
<a href="#" ng-click="backPrevLocation($event)"><i class="fa fa-long-arrow-left "></i></a>
|
|
</section>
|
|
</div>
|
|
<div class="col-xs-10 col-sm-10 col-md-8 b-l b-r-md">
|
|
<section class="heading-title">
|
|
<h1 translate>{{ 'the_fablab_s_courses_and_workshops' }}</h1>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-3 b-t hide-b-md" ng-if="isAuthorized(['admin'])">
|
|
<section class="heading-actions wrapper">
|
|
<a class="btn btn-lg btn-warning bg-white b-2x rounded m-t-sm upper text-sm" ui-sref="app.admin.events_new" role="button" translate>{{ 'add_an_event' }}</a>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<section class="m-lg">
|
|
|
|
<div ng-repeat="month in monthOrder">
|
|
<h1>{{month.split(',')[0]}}, {{month.split(',')[1]}}</h1>
|
|
|
|
<div class="row" ng-repeat="event in (eventsGroupByMonth[month].length/3 | array)">
|
|
|
|
<div class="col-xs-12 col-sm-6 col-md-4" ng-repeat="event in eventsGroupByMonth[month].slice(3*$index, 3*$index + 3)" ng-click="showEvent(event)">
|
|
|
|
|
|
<a class="block bg-white img-full p-sm p-l-m box-h-m event b b-light-dark m-t-sm" ui-sref="app.public.events_show({id: event.id})">
|
|
<div class="pull-left half-w m-t-n-sm">
|
|
<h5 class="text-xs">{{event.categories[0].name}}</h5>
|
|
<h4 class="m-n text-sm clear l-n">{{event.title}}</h4>
|
|
<h3 class="m-n">{{event.start_date | amDateFormat:'L'}} <span class="text-sm font-thin" translate> {{ 'to_date' }} </span> {{event.end_date | amDateFormat:'L'}}</h3>
|
|
|
|
<h6 class="m-n" ng-if="event.amount">{{ 'full_price_' | translate }} {{event.amount | currency}} <span ng-if="event.reduced_amount > 0">/ {{ 'reduced_rate_' | translate }} {{event.reduced_amount | currency}}</span></h6>
|
|
</div>
|
|
<!-- Event Image -->
|
|
<div class="pull-right crop-130">
|
|
<img class="pull-right" ng-src="{{event.event_image_small}}" title="{{event.title}}" ng-if="event.event_image">
|
|
<img class="pull-right img-responsive" src="data:image/png;base64," data-src="holder.js/100%x100%/text:/font:FontAwesome/icon" bs-holder ng-if="!event.event_image">
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 text-center m-t-md">
|
|
<a class="btn btn-warning" ng-click="loadMoreEvents()" ng-if="paginateActive" translate>{{ 'load_the_next_courses_and_workshops' }}</a>
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
</section>
|
|
|
|
|