1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/app/assets/templates/machines/index.html.erb

64 lines
2.4 KiB
Plaintext
Raw Normal View History

2015-05-05 03:10:25 +02:00
<section class="heading b-b">
<div class="row no-gutter">
<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">
2016-03-23 18:39:41 +01:00
<h1 translate>{{ 'the_fablab_s_machines' }}</h1>
2015-05-05 03:10:25 +02:00
</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">
2016-03-23 18:39:41 +01:00
<a class="btn btn-lg btn-warning bg-white b-2x rounded m-t-xs" ui-sref="app.admin.machines_new" role="button" translate>{{ 'add_a_machine' }}</a>
2015-05-05 03:10:25 +02:00
</section>
</div>
</div>
</section>
<section class="m-lg">
<div class="row" ng-repeat="machine in (machines.length/3 | array)">
<div class="col-xs-12 col-sm-6 col-md-4" ng-repeat="machine in machines.slice(3*$index, 3*$index + 3)">
2016-03-23 18:39:41 +01:00
<div class="widget panel panel-default">
<div class="panel-heading picture" ng-if="!machine.machine_image" ng-click="showMachine(machine)">
2015-05-05 03:10:25 +02:00
<img src="data:image/png;base64," data-src="holder.js/100%x100%/text:&#xf03e;/font:FontAwesome/icon" bs-holder class="img-responsive">
</div>
<div class="panel-heading picture" style="background-image:url({{machine.machine_image}})" ng-if="machine.machine_image" ng-click="showMachine(machine)">
2015-05-05 03:10:25 +02:00
</div>
<div class="panel-body">
<h1 class="text-center m-b">{{machine.name}}</h1>
2015-05-05 03:10:25 +02:00
</div>
<div class="panel-footer no-padder">
<div class="text-center clearfix">
2016-03-23 18:39:41 +01:00
<div class="col-sm-6 b-r no-padder">
<div class="btn btn-default btn-block no-b padder-v red" ng-click="reserveMachine(machine, $event)">
<i class="fa fa-bookmark"></i> {{ 'book' | translate }}
</div>
</div>
<div class="col-sm-6 no-padder">
2015-05-05 03:10:25 +02:00
<div class="btn btn-default btn-block padder-v no-b red" ng-click="showMachine(machine)">
2016-03-23 18:39:41 +01:00
<i class="fa fa-eye"></i> {{ 'consult' | translate }}
2015-05-05 03:10:25 +02:00
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>