1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

interface structure refactoring for fares' categories

This commit is contained in:
Sylvain 2016-08-23 17:49:43 +02:00
parent ead7eda76b
commit 9748ea596f
3 changed files with 9 additions and 52 deletions

View File

@ -23,63 +23,16 @@
<div class="col-md-12">
<uib-tabset justified="true">
<uib-tab heading="{{ 'events_monitoring' | translate }}">
<div class="col-md-6 m-b m-t">
<select ng-model="selectedTimezone" class="form-control">
<option value="" translate>{{ 'all_events' }}</option>
<option value="passed" translate>{{ 'passed_events' }}</option>
<option value="future" translate>{{ 'events_to_come' }}</option>
</select>
</div>
<table class="table">
<thead>
<tr>
<th style="width:30%" translate>{{ 'title' }}</th>
<th style="width:30%" translate>{{ 'dates' }}</th>
<th style="width:40%"></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="event in filtered = (events | eventsReservationsFilter:selectedTimezone)">
<td>
<a ui-sref="app.public.events_show({id: event.id})">{{ event.title }} </a>
</td>
<td>
<span> {{ 'from_DATE' | translate:{DATE:(event.start_date | amDateFormat:'LL')} }} <span class="text-sm font-thin" translate>{{ 'to_date' }}</span> {{event.end_date | amDateFormat:'LL'}}</span>
<br/>
<span ng-if="event.all_day == 'true'" translate>{{ 'all_day' }}</span>
<span ng-if="event.all_day == 'false'">
{{ 'from_TIME' | translate:{TIME:(event.start_date | amDateFormat:'LT')} }}
<span class="text-sm font-thin" translate>{{ 'to_time' }}</span>
{{event.end_date | amDateFormat:'LT'}}
</span>
</td>
<td>
<div class="buttons">
<button class="btn btn-default" ui-sref="app.admin.event_reservations({id: event.id})">
<i class="fa fa-bookmark"></i> {{ 'view_reservations' | translate }}
</button>
<button class="btn btn-default" ui-sref="app.admin.events_edit({id: event.id})">
<i class="fa fa-edit"></i> {{ 'edit' | translate }}
</button>
</div>
</td>
</tr>
</tbody>
</table>
<div class="row">
<div class="col-lg-12 text-center">
<a class="btn btn-warning" ng-click="loadMoreEvents()" ng-if="paginateActive" translate>{{ 'load_the_next_events' }}</a>
</div>
</div>
<ng-include src="'<%= asset_path 'admin/events/monitoring.html' %>'"></ng-include>
</uib-tab>
<uib-tab heading="{{ 'manage_filters' | translate }}">
<ng-include src="'<%= asset_path 'admin/events/filters.html' %>'"></ng-include>
</uib-tab>
<uib-tab heading="{{ 'manage_fares_categories' | translate }}">
<ng-include src="'<%= asset_path 'admin/events/fares.html' %>'"></ng-include>
</uib-tab>
</uib-tabset>
</div>
</div>

View File

@ -90,6 +90,8 @@ en:
at_least_one_category_is_required: "At least one category is required."
unable_to_delete_the_last_one: "Unable to delete the last one."
unable_to_delete_an_error_occured: "Unable to delete: an error occurred."
manage_fares_categories: "Manage fares' categories"
fares_categories: "Fares' categories"
events_new:
# add a new event

View File

@ -90,6 +90,8 @@ fr:
at_least_one_category_is_required: "Au moins une catégorie est requise."
unable_to_delete_the_last_one: "Impossible de supprimer la dernière."
unable_to_delete_an_error_occured: "Impossible de supprimer : une erreur est survenue."
manage_fares_categories: "Gérer les catégories de tarifs"
fares_categories: "Catégories de tarifs"
events_new:
# ajouter un nouvel évènement