mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
70cf6ebfa8
Public event list prompte cancelled and sold out badge for more clarity to the public users. Correction for « sold_out » test in home, show and public list. 0 subscriber with 0 free_place should be a free entry case and it appears to be sold out. Another error occurs (negative free place) if an admin change the number of free places or decide to go free entry with an event. Home and public list better display with access and price separate.
149 lines
6.8 KiB
Plaintext
149 lines
6.8 KiB
Plaintext
|
|
<div class="alert alert-warning m-sm text-center" ng-if="(homeBlogpost != null) && (homeBlogpost != '') && (homeBlogpost != undefined)">
|
|
<span ng-bind-html="homeBlogpost"></span>
|
|
</div>
|
|
|
|
<div class="row wrapper">
|
|
<div class="col-lg-8">
|
|
<h4 class="text-sm m-t-sm" translate>{{ 'latest_documented_projects' }}</h4>
|
|
|
|
<uib-carousel interval="5000" disable-animation="true">
|
|
<uib-slide class="h480 cover r" ng-repeat="p in lastProjects" active="p.active" style="background-image:url({{p.project_image}});">
|
|
<!-- <img ng-src="{{p.project_image}}" style="margin:auto;"> -->
|
|
<div class="carousel-caption">
|
|
<h1 class="title"><a ui-sref="app.public.projects_show({id:p.slug})">{{p.name}}</a></h1>
|
|
<!-- <p class="description hidden-xs">{{p.description | humanize : 120}}</p> -->
|
|
</div>
|
|
</uib-slide>
|
|
</uib-carousel>
|
|
</div>
|
|
|
|
|
|
<div class="col-lg-4 m-t-lg">
|
|
|
|
<section class="widget panel b-a m-t-sm" ng-if="lastTweets.length > 0">
|
|
<div class="panel-heading b-b small">
|
|
<div class="pull-right text-xs align">
|
|
<a href="https://twitter.com/{{ twitterName }}" ng-show="twitterName" target="_blank">{{ 'follow_us' | translate }}
|
|
<span class="fa-stack fa-lg">
|
|
<i class="fa fa-circle fa-stack-2x text-yellow"></i>
|
|
<i class="fa fa-twitter fa-stack-1x fa-inverse text-white"></i>
|
|
</span>
|
|
</a>
|
|
</div>
|
|
<h2 translate>{{ 'latest_tweets' }}</h2>
|
|
</div>
|
|
|
|
<ul class="widget-content list-group list-group-lg no-bg auto">
|
|
<li ng-repeat="tweet in lastTweets" class="text-sm list-group-item no-b clearfix" ng-bind-html="tweet.text">
|
|
</li>
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
<section class="widget panel b-a" >
|
|
<div class="panel-heading small b-b">
|
|
<!-- <span class="badge inverse pull-right">110</span> -->
|
|
<h2 translate>{{ 'latest_registered_members' }}</h2>
|
|
</div>
|
|
|
|
<div class="row m-n">
|
|
<div class="col-md-6 b-b b-r block-link" ng-repeat="member in lastMembers" ui-sref="app.logged.members_show({id:member.slug})">
|
|
|
|
|
|
<div class="padder-v">
|
|
<span class="avatar avatar-block text-center">
|
|
<fab-user-avatar ng-model="member.profile.user_avatar" avatar-class="thumb-50"></fab-user-avatar>
|
|
<!-- <i class="on b-white bottom"></i> -->
|
|
<a ><span class="user-name m-l-sm text-black m-t-xs">{{member.name}}</span></a>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- TODO EVEN <div class="col-md-6 b-b"> -->
|
|
|
|
</div>
|
|
<div class="m-t-sm m-b-sm text-center" ng-if="!isAuthenticated()">
|
|
<button href="#" ng-click="signup($event)" class="btn btn-warning-full width-70 font-sbold rounded text-sm" translate>{{ 'create_an_account' }}</button>
|
|
</div>
|
|
|
|
<div class="m-t-sm m-b-sm text-center" ng-if="isAuthenticated()">
|
|
<button href="#" ui-sref="app.logged.members" class="btn btn-warning-full width-70 font-sbold rounded text-sm" translate>{{ 'discover_members' }}</button>
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<section class="home-events col-lg-12 wrapper">
|
|
<h4 class="text-sm m-t-sm">{{ 'fablab_s_next_events' | translate }} <a ui-sref="app.public.events_list" class="pull-right"><i class="fa fa-tags"></i> {{ 'every_events' | translate }}</a></h4>
|
|
|
|
<div class="row" ng-repeat="event in (upcomingEvents.length/3 | array)">
|
|
|
|
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-4" ng-repeat="event in upcomingEvents.slice(3*$index, 3*$index + 3)">
|
|
|
|
|
|
<div class="widget panel panel-default" ui-sref="app.public.events_show({id: event.id})">
|
|
<div class="panel-heading picture" style="background-image: url({{event.event_image_medium}});" >
|
|
<img src="data:image/png;base64," data-src="holder.js/100%x100%/text:/font:FontAwesome/icon" bs-holder ng-if="!event.event_image" class="img-responsive">
|
|
</div>
|
|
<div class="panel-body" style="heigth:170px;">
|
|
<div class="row">
|
|
<div class="col-xs-9">
|
|
<h1 class="m-b">{{event.title}}</h1>
|
|
</div>
|
|
<div class="col-xs-3">
|
|
<span class="v-middle badge text-xs" ng-class="'bg-{{event.category.name | lowercase}}'">{{event.category.name}}</span>
|
|
</div>
|
|
</div>
|
|
<p class="event-description" ng-bind-html="event.description | simpleText | humanize : 500 | breakFilter"></p>
|
|
|
|
<hr/>
|
|
<div class="row">
|
|
<div class="col-sm-6 row m-b-sm">
|
|
<i class="fa fa-calendar red col-xs-3 padder-icon"></i>
|
|
<h6 class="m-n col-xs-9 " ng-hide="isOneDayEvent(event)">{{ 'from_date_to_date' | translate:{START:(event.start_date | amDateFormat:'L'), END:(event.end_date | amDateFormat:'L')} }}</h6>
|
|
<h6 class="m-n col-xs-9 " ng-show="isOneDayEvent(event)">{{ 'on_the_date' | translate:{DATE:(event.start_date | amDateFormat:'L')} }}</h6>
|
|
</div>
|
|
<div class="col-sm-6 row m-b-sm">
|
|
<i class="fa fa-clock-o red col-xs-3 padder-icon"></i>
|
|
<h6 class="m-n col-xs-9">
|
|
<span ng-if="event.all_day == 'true'" translate>{{ 'all_day' }}</span>
|
|
<span ng-if="event.all_day == 'false'">{{ 'from_time_to_time' | translate:{START:(event.start_date | amDateFormat:'LT'), END:(event.end_date | amDateFormat:'LT')} }}</span>
|
|
</h6>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-6 row m-b-sm">
|
|
<i class="fa fa-user red col-xs-3 padder-icon"></i>
|
|
<h6 class="m-n col-xs-9 ">
|
|
<span ng-if="event.nb_free_places > 0">{{ 'still_available' | translate }} {{event.nb_free_places}}</span>
|
|
<span ng-if="!event.nb_total_places" translate>{{ 'free_entry' }}</span>
|
|
<span ng-if="event.nb_total_places > 0 && event.nb_free_places <= 0" translate>{{ 'event_full' }}</span>
|
|
</h6>
|
|
</div>
|
|
<div class="col-sm-6 row m-b-sm">
|
|
<i class="fa fa-bookmark red col-xs-3 padder-icon"></i>
|
|
<h6 class="m-n col-xs-9">
|
|
<span ng-if="event.amount == 0" translate>{{ 'free_admission' }}</span>
|
|
<span ng-if="event.amount > 0">{{ 'full_price' | translate }} {{event.amount | currency}}</span>
|
|
</h6>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-center clearfix ">
|
|
<div class="btn btn-lg btn-warning bg-white b-2x rounded m-t-sm m-b-sm upper text-sm width-70" ui-sref="app.public.events_show({id: event.id})" ><span translate>{{ 'consult' }}</span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</div>
|