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" >
2022-01-11 11:03:27 +01:00
< a ng-click = "backPrevLocation($event)" > < i class = "fas fa-long-arrow-alt-left " > < / i > < / a >
2015-05-05 03:10:25 +02:00
< / section >
< / div >
< div class = "col-xs-10 col-sm-10 col-md-8 b-l b-r-md" >
< section class = "heading-title" >
2019-12-16 16:54:40 +01:00
< h1 translate > {{ 'app.public.projects_list.the_fablab_projects' }}< / h1 >
2015-05-05 03:10:25 +02:00
< / section >
< / div >
2020-04-29 18:21:06 +02:00
< div class = "col-xs-12 col-sm-12 col-md-3 b-t hide-b-md" ng-if = "isAuthorized(['admin','member', 'manager'])" >
2015-05-05 03:10:25 +02:00
< section class = "heading-actions wrapper" >
2019-12-16 16:54:40 +01:00
< a class = "btn btn-lg btn-warning bg-white b-2x rounded m-t-sm upper text-sm" ui-sref = "app.logged.projects_new" role = "button" translate > {{ 'app.public.projects_list.add_a_project' }}< / a >
2015-05-05 03:10:25 +02:00
< / section >
< / div >
< / div >
< / section >
< section class = "m-lg" >
2016-03-23 18:39:41 +01:00
< div class = "row m-b-md" >
< div class = "col-md-12 m-b" >
2020-10-28 12:10:25 +01:00
< a href = "javascript:void(0);" class = "text-sm pull-right reinit-filters" name = "button" ng-click = "resetFiltersAndTriggerSearch()" ng-show = "!openlab.searchOverWholeNetwork" > < i class = "fa fa-refresh" > < / i > {{ 'app.public.projects_list.reset_all_filters' | translate }}< / a >
2016-05-02 16:10:48 +02:00
2019-12-16 16:54:40 +01:00
< span ng-if = "openlab.projectsActive" uib-tooltip = "{{ 'app.public.projects_list.tooltip_openlab_projects_switch' | translate }}" tooltip-trigger = "mouseenter" >
< label for = "searchOverWholeNetwork" class = "control-label m-r text-sm" translate > {{ 'app.public.projects_list.search_over_the_whole_network' }}< / label >
2016-04-22 18:17:55 +02:00
< input bs-switch
ng-model="openlab.searchOverWholeNetwork"
type="checkbox"
class="form-control"
2019-12-16 16:54:40 +01:00
switch-on-text="{{ 'app.shared.buttons.yes' | translate }}"
switch-off-text="{{ 'app.shared.buttons.no' | translate }}"
2016-04-22 18:17:55 +02:00
switch-animate="true"
ng-change="searchOverWholeNetworkChanged()"
/>
{{ searchOverWholeNetwork }}
< / span >
2016-05-02 16:21:23 +02:00
< form class = "form-inline m-t text-center" role = "form" ng-submit = "setUrlQueryParams(search) && triggerSearch()" >
2016-03-23 18:39:41 +01:00
< div class = "form-group" >
< div class = "input-group" >
< div class = "input-group-addon" > < i class = "fa fa-search" > < / i > < / div >
< input type = "search" class = "form-control" placeholder = "Mots-clés" ng-model = "search.q" / >
< div class = "input-group-btn" >
2019-12-16 16:54:40 +01:00
< button type = "submit" class = "btn btn-warning" translate > {{ 'app.public.projects_list.search' }}< / button >
2016-03-23 18:39:41 +01:00
< / div >
< / div >
< / div >
< / form >
< / div >
2019-12-18 11:08:14 +01:00
< div class = "inline" ng-if = "!openlab.searchOverWholeNetwork" >
2016-04-22 18:17:55 +02:00
< div class = "col-md-3 m-b" ng-show = "isAuthenticated()" >
2016-04-25 12:46:30 +02:00
< select ng-model = "search.from" ng-change = "setUrlQueryParams(search) && triggerSearch()" class = "form-control" >
2019-12-16 16:54:40 +01:00
< option value = "" translate > {{ 'app.public.projects_list.all_projects' }}< / option >
< option value = "mine" translate > {{ 'app.public.projects_list.my_projects' }}< / option >
< option value = "collaboration" translate > {{ 'app.public.projects_list.projects_to_whom_i_take_part_in' }}< / option >
2016-04-22 18:17:55 +02:00
< / select >
< / div >
2015-05-05 03:10:25 +02:00
2016-04-22 18:17:55 +02:00
< div class = "col-md-3 m-b" >
2016-04-25 12:46:30 +02:00
< select ng-model = "search.machine_id" ng-change = "setUrlQueryParams(search) && triggerSearch()" class = "form-control" ng-options = "m.id as m.name for m in machines" >
2019-12-16 16:54:40 +01:00
< option value = "" translate > {{ 'app.public.projects_list.all_machines' }}< / option >
2016-04-22 18:17:55 +02:00
< / select >
< / div >
2015-05-05 03:10:25 +02:00
2016-04-22 18:17:55 +02:00
< div class = "col-md-3 m-b" >
2016-04-25 12:46:30 +02:00
< select ng-model = "search.theme_id" ng-change = "setUrlQueryParams(search) && triggerSearch()" class = "form-control" ng-options = "t.id as t.name for t in themes" >
2019-12-16 16:54:40 +01:00
< option value = "" translate > {{ 'app.public.projects_list.all_themes' }}< / option >
2016-04-22 18:17:55 +02:00
< / select >
< / div >
2015-05-05 03:10:25 +02:00
2016-04-22 18:17:55 +02:00
< div class = "col-md-3 m-b" >
2016-04-25 12:46:30 +02:00
< select ng-model = "search.component_id" ng-change = "setUrlQueryParams(search) && triggerSearch()" class = "form-control" ng-options = "t.id as t.name for t in components" >
2019-12-16 16:54:40 +01:00
< option value = "" translate > {{ 'app.public.projects_list.all_materials' }}< / option >
2016-04-22 18:17:55 +02:00
< / select >
< / div >
2019-12-18 11:08:14 +01:00
< / div >
2015-05-05 03:10:25 +02:00
< / div >
2016-03-23 18:39:41 +01:00
< div class = "row" >
2019-12-16 16:54:40 +01:00
< span class = "col-md-12" ng-show = "projects && (projects.length == 0)" > {{ 'app.public.projects_list.project_search_result_is_empty' | translate }} < / span >
2016-05-02 16:21:23 +02:00
< div class = "col-xs-12 col-sm-6 col-md-3" ng-repeat = "project in projects" ng-click = "showProject(project)" >
2015-05-05 03:10:25 +02:00
2016-05-02 16:10:48 +02:00
< div class = "card card-project" >
< div class = "card-header" >
< div class = "card-header-bg" style = "background-image: url({{project.project_image}});" >
2020-09-29 14:27:49 +02:00
< img src = "data:image/png;base64," data-src = "holder.js/100%x100%/text:/font:'Font Awesome 5 Free'/icon" bs-holder ng-if = "!project.project_image" >
2016-05-02 16:10:48 +02:00
< / div >
2016-09-29 11:54:08 +02:00
2016-05-02 16:10:48 +02:00
< / div >
2015-05-05 03:10:25 +02:00
2016-05-02 16:10:48 +02:00
< div class = "card-block" >
2016-06-01 11:29:23 +02:00
< h3 class = "card-meta" ng-if = "openlab.searchOverWholeNetwork" > < i class = "fa fa-tag" > < / i > {{ project.app_name }}< / h3 >
2016-05-02 16:10:48 +02:00
< h1 class = "card-title" > {{project.name}}< / h1 >
2016-03-23 18:39:41 +01:00
< / div >
2016-05-02 16:10:48 +02:00
2016-06-01 10:47:00 +02:00
< div class = "text-center" >
2019-12-16 16:54:40 +01:00
< span class = "badge" ng-if = "project.state == 'draft'" translate > {{ 'app.public.projects_list.rough_draft' }}< / span >
2016-06-01 10:47:00 +02:00
< / div >
2016-05-02 16:10:48 +02:00
< div class = "card-overlay" >
2016-03-23 18:39:41 +01:00
< div class = "btn-group" >
< div class = "btn btn-default" ng-click = "showProject(project)" >
2019-12-18 11:08:14 +01:00
< i ng-class = "{'fa fa-external-link' : (openlab.searchOverWholeNetwork && project.app_id != openlabAppId) }" > < / i > {{ 'app.shared.buttons.consult' | translate }}
2016-05-02 16:10:48 +02:00
< / div >
< div class = "btn btn-default" ui-sref = "app.logged.projects_edit({id:project.id})" ng-if = "isAuthorized('admin') && !openlab.searchOverWholeNetwork" >
< i class = "fa fa-edit" > < / i >
2016-03-23 18:39:41 +01:00
< / div >
2015-05-05 03:10:25 +02:00
< / div >
< / div >
2016-05-02 16:10:48 +02:00
2015-05-05 03:10:25 +02:00
< / div >
< / div >
< / div >
2016-03-23 18:39:41 +01:00
< div class = "row" >
< div class = "col-lg-12 text-center" >
2019-12-16 16:54:40 +01:00
< a class = "btn btn-warning" ng-click = "loadMore()" ng-if = "projectsPagination.hasNextPage()" translate > {{ 'app.public.projects_list.load_next_projects' }}< / a >
2016-03-23 18:39:41 +01:00
< / div >
2015-05-05 03:10:25 +02:00
< / div >
< / section >