aboutsummaryrefslogtreecommitdiff
path: root/src/views/panes/admin/home.ecr
blob: df0c7ececc5ff4536fc19e8f05826bd13e8353dc (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<div
  id='admin-pane-home'
  class='tab-pane active'
  role='tabpanel'
>
  <div class='panel panel-default'>
    <div class='panel-heading'>
      <div class='btn-toolbar'>
        <div class='btn-group btn-group-sm home-not-editing'><%=
          new_post_button
        %></div><!-- btn-group -->

        <div class='btn-group btn-group-sm home-editing hidden'>
          <a
            href='#'
            class='btn btn-primary'
            title='Add new panel.'
            data-toggle='dropdown'
          >
            <i class='fa fa-plus-circle'></i>
            Add Panel
            <i class='fa fa-caret-down'></i>
          </a>

          <ul id='home-add' class='dropdown-menu'><%=
            add_menu
          %></ul><!-- dropdown-menu -->
        </div><!-- btn-group -->

        <div class='btn-group btn-group-sm home-editing hidden'>
          <a
            href='#'
            class='btn btn-default'
            title='Set column count.'
            data-toggle='dropdown'
          >
            <i class='fa fa-columns'></i>
            Width: <span>3 Columns</span>
            <i class='fa fa-caret-down'></i>
          </a>

          <ul id='home-cols' class='dropdown-menu'><%=
            cols_menu
          %></ul><!-- dropdown-menu -->
        </div><!-- btn-group -->

        <div class='btn-group btn-group-sm pull-right'>
          <a
            href='#'
            id='home-edit-toggle'
            class='btn btn-default'
            title='Toggle panel home-editing mode.'
          >
            <i class='fa fa-cog'></i>
          </a>
        </div><!-- btn-group -->
      </div><!-- btn-toolbar -->
    </div><!-- panel-heading -->

    <div id='home' class='panel-body'>
      <div class='row'>
        <div class='col-md-4 drop'>
          <div id='p-1' class='panel panel-default'>
            <div class='panel-heading'>
              <%= panel_edit %>

              <b>
                Some Panel
              </b>
            </div><!-- panel-heading -->

            <div class='panel-body'>
              <p>Some panel.</p>
            </div><!-- panel-body -->
          </div><!-- panel -->
        </div><!-- col-md-4 -->

        <div class='col-md-4 drop'>
          <div id='p-2' class='panel panel-default'>
            <div class='panel-heading'>
              <%= panel_edit %>

              <b>
                Another Panel
              </b>
            </div><!-- panel-heading -->

            <div class='panel-body'>
              <p>Another panel.</p>
            </div><!-- panel-body -->
          </div><!-- panel -->
        </div><!-- col-md-4 -->

        <div class='col-md-4 drop'>
          <div id='p-3' class='panel panel-default'>

            <div class='panel-heading'>
              <%= panel_edit %>

              <b>
                Third Panel
              </b>
            </div><!-- panel-heading -->

            <div class='panel-body'>
              <p>Third panel.</p>
            </div><!-- panel-body -->
          </div><!-- panel -->
        </div><!-- col-md-4 -->
      </div><!-- row -->
    </div><!-- panel-body -->
  </div><!-- panel -->
</div><!-- tab-pane -->