aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/workbenches/index.html.slim
blob: d57f579ffb64b22e7cebdb81ad146b32ce5465c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/ PageHeader
= pageheader 'tableau-de-bord',
             t('.title', organisation: current_organisation.name)

/ PageContent
.page_content
  .container-fluid
    .row
      .col-lg-12
        h2.content_header = t('.offers.title')

    .row
      .col-lg-6.col-md-6.col-sm-6.col-xs-12
        .panel.panel-default
          .panel-heading
            h3.panel-title
              = t('.offers.organisation')

          .panel-body
            em.small.text-muted = t('.offers.no_content')

        .panel.panel-default
          .panel-heading
            h3.panel-title
              = t('.offers.idf')

          .panel-body
            em.small.text-muted = t('.offers.no_content')

      .col-lg-6.col-md-6.col-sm-6.col-xs-12
        .panel.panel-default
          .panel-heading
            h3.panel-title.with_actions
              div
                = t('.offers.referentials')
                span.badge.ml-xs = @referentials.count if @referentials.any?

              div
                = link_to '', workbench_path(@workbench), class: ' fa fa-chevron-right pull-right', title: t('.offers.see')

          - if @referentials.any?
            .list-group
              - @referentials.each_with_index do |referential, i|
                = link_to referential.name, referential_path(referential), class: 'list-group-item' if i < 6

          - else
            .panel-body
              em.small.text-muted = t('.offers.no_content')

        .panel.panel-default
          .panel-heading
            h3.panel-title.with_actions
              div
                = t('.offers.calendars')
                span.badge.ml-xs = @calendars.count if @calendars.any?

              div
                = link_to '', calendars_path, class: ' fa fa-chevron-right pull-right', title: t('.offers.see')

          - if @calendars.any?
            .list-group
              - @calendars.each_with_index do |calendar, i|
                = link_to calendar.name, calendar_path(calendar), class: 'list-group-item' if i < 6

          - else
            .panel-body
              em.small.text-muted = t('.offers.no_content')