express_ui 0.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +38 -0
  4. data/Rakefile +37 -0
  5. data/app/assets/config/express_ui_manifest.js +2 -0
  6. data/app/assets/javascripts/express_ui/application.js +1 -0
  7. data/app/assets/javascripts/express_ui/copy_code.js +63 -0
  8. data/app/assets/javascripts/express_ui/search.js +103 -0
  9. data/app/assets/javascripts/express_ui/styleguide.js +90 -0
  10. data/app/assets/stylesheets/express_ui/atoms/_animations.sass +35 -0
  11. data/app/assets/stylesheets/express_ui/atoms/_buttons.sass +119 -0
  12. data/app/assets/stylesheets/express_ui/atoms/_headings.sass +51 -0
  13. data/app/assets/stylesheets/express_ui/atoms/_icons.sass +3 -0
  14. data/app/assets/stylesheets/express_ui/atoms/_images.sass +37 -0
  15. data/app/assets/stylesheets/express_ui/atoms/_media_queries.sass +27 -0
  16. data/app/assets/stylesheets/express_ui/atoms/_mixins.sass +33 -0
  17. data/app/assets/stylesheets/express_ui/atoms/_reset.sass +11 -0
  18. data/app/assets/stylesheets/express_ui/atoms/_typography.sass +167 -0
  19. data/app/assets/stylesheets/express_ui/atoms/_variables.sass +52 -0
  20. data/app/assets/stylesheets/express_ui/molecules/_button_group.sass +54 -0
  21. data/app/assets/stylesheets/express_ui/molecules/_container.sass +29 -0
  22. data/app/assets/stylesheets/express_ui/molecules/_flash_messages.sass +56 -0
  23. data/app/assets/stylesheets/express_ui/molecules/_form_groups.sass +96 -0
  24. data/app/assets/stylesheets/express_ui/molecules/_forms.sass +159 -0
  25. data/app/assets/stylesheets/express_ui/molecules/_lists.sass +56 -0
  26. data/app/assets/stylesheets/express_ui/molecules/_nav.sass +85 -0
  27. data/app/assets/stylesheets/express_ui/molecules/_tables.sass +77 -0
  28. data/app/assets/stylesheets/express_ui/molecules/_tabs.sass +23 -0
  29. data/app/assets/stylesheets/express_ui/organisms/_header.sass +29 -0
  30. data/app/assets/stylesheets/express_ui/organisms/_sidebar.sass +113 -0
  31. data/app/assets/stylesheets/express_ui/style.sass +31 -0
  32. data/app/assets/stylesheets/express_ui/styleguide.sass +200 -0
  33. data/app/assets/stylesheets/express_ui/templates/_content_sidebar.sass +31 -0
  34. data/app/assets/stylesheets/express_ui/templates/_full_width.sass +5 -0
  35. data/app/assets/stylesheets/express_ui/templates/_half_width.sass +8 -0
  36. data/app/assets/stylesheets/express_ui/templates/_master_detail.sass +50 -0
  37. data/app/components/code_demo.rb +31 -0
  38. data/app/controllers/express_ui/about_controller.rb +10 -0
  39. data/app/controllers/express_ui/application_controller.rb +5 -0
  40. data/app/controllers/express_ui/styleguide_controller.rb +10 -0
  41. data/app/controllers/express_ui/templates_controller.rb +26 -0
  42. data/app/controllers/express_ui/uicomponents_controller.rb +26 -0
  43. data/app/helpers/express_ui/application_helper.rb +28 -0
  44. data/app/jobs/express_ui/application_job.rb +4 -0
  45. data/app/mailers/express_ui/application_mailer.rb +6 -0
  46. data/app/models/express_ui/application_record.rb +5 -0
  47. data/app/views/express_ui/atoms/_animations.html.erb +33 -0
  48. data/app/views/express_ui/atoms/_buttons.html.erb +129 -0
  49. data/app/views/express_ui/atoms/_headings.html.erb +3 -0
  50. data/app/views/express_ui/atoms/_icons.html.erb +13 -0
  51. data/app/views/express_ui/atoms/_mixins.html.erb +6 -0
  52. data/app/views/express_ui/atoms/_typography.html.erb +201 -0
  53. data/app/views/express_ui/atoms/_variables.html.erb +50 -0
  54. data/app/views/express_ui/molecules/_button_group.html.erb +90 -0
  55. data/app/views/express_ui/molecules/_container.html.erb +32 -0
  56. data/app/views/express_ui/molecules/_flash_messages.html.erb +49 -0
  57. data/app/views/express_ui/molecules/_form_group_horizontal.html.erb +14 -0
  58. data/app/views/express_ui/molecules/_form_group_inline.html.erb +1 -0
  59. data/app/views/express_ui/molecules/_form_group_single_line.html.erb +9 -0
  60. data/app/views/express_ui/molecules/_form_groups.html.erb +69 -0
  61. data/app/views/express_ui/molecules/_forms.html.erb +209 -0
  62. data/app/views/express_ui/molecules/_forms_checkbox.html.erb +20 -0
  63. data/app/views/express_ui/molecules/_forms_radio.html.erb +12 -0
  64. data/app/views/express_ui/molecules/_forms_select.html.erb +11 -0
  65. data/app/views/express_ui/molecules/_nav.html.erb +11 -0
  66. data/app/views/express_ui/molecules/_nav_mega_menu.html.erb +74 -0
  67. data/app/views/express_ui/molecules/_table.html.erb +93 -0
  68. data/app/views/express_ui/molecules/_table_with_filtering.html.erb +55 -0
  69. data/app/views/express_ui/organisms/_header.html.erb +24 -0
  70. data/app/views/express_ui/shared/_header.html.erb +10 -0
  71. data/app/views/express_ui/shared/_search_box.html.erb +6 -0
  72. data/app/views/express_ui/shared/_sidebar_left.html.erb +4 -0
  73. data/app/views/express_ui/shared/_sidebar_right.html.erb +5 -0
  74. data/app/views/express_ui/styleguide/about.html.erb +22 -0
  75. data/app/views/express_ui/styleguide/index.html.erb +79 -0
  76. data/app/views/express_ui/templates/_header.html.erb +15 -0
  77. data/app/views/express_ui/templates/_templates.html.erb +57 -0
  78. data/app/views/express_ui/templates/content_and_sidebar.html.erb +32 -0
  79. data/app/views/express_ui/templates/content_and_sidebar_fixed.html.erb +34 -0
  80. data/app/views/express_ui/templates/full_width.html.erb +25 -0
  81. data/app/views/express_ui/templates/half_width.html.erb +25 -0
  82. data/app/views/express_ui/templates/master_detail.html.erb +41 -0
  83. data/app/views/express_ui/templates/master_detail_fixed.html.erb +36 -0
  84. data/app/views/express_ui/uicomponents/_buttons.html.et +10 -0
  85. data/app/views/express_ui/uicomponents/_flash_message.html.et +19 -0
  86. data/app/views/express_ui/uicomponents/_forms.html.et +118 -0
  87. data/app/views/express_ui/uicomponents/_heading.html.et +24 -0
  88. data/app/views/express_ui/uicomponents/_icons.html.et +35 -0
  89. data/app/views/express_ui/uicomponents/_layout.html.et +47 -0
  90. data/app/views/express_ui/uicomponents/_lists.html.et +9 -0
  91. data/app/views/express_ui/uicomponents/_login.html.erb +15 -0
  92. data/app/views/express_ui/uicomponents/_nav.html.et +18 -0
  93. data/app/views/express_ui/uicomponents/_pages.html.et +22 -0
  94. data/app/views/express_ui/uicomponents/_panel.html.et +33 -0
  95. data/app/views/express_ui/uicomponents/_popup.html.et +19 -0
  96. data/app/views/express_ui/uicomponents/_register.html.erb +14 -0
  97. data/app/views/express_ui/uicomponents/_sidebar.html.et +8 -0
  98. data/app/views/express_ui/uicomponents/_table.html.et +29 -0
  99. data/app/views/express_ui/uicomponents/_widget_box.html.et +14 -0
  100. data/app/views/express_ui/uicomponents/index.html.erb +55 -0
  101. data/app/views/layouts/express_ui/styleguide.html.erb +20 -0
  102. data/config/routes.rb +12 -0
  103. data/lib/express_ui.rb +5 -0
  104. data/lib/express_ui/engine.rb +12 -0
  105. data/lib/express_ui/version.rb +3 -0
  106. data/lib/tasks/express_ui_tasks.rake +4 -0
  107. metadata +251 -0
@@ -0,0 +1 @@
1
+ _form_group_inline.html.erb
@@ -0,0 +1,9 @@
1
+ <form class="ae-form-single ae-search-form">
2
+ <div class="ae-form-field ae-has-icon">
3
+ <i class="fa fa-search"></i>
4
+ <input class="ae-text-field ae-input-md" type="text" name="search" placeholder="Enter a keyword" />
5
+ </div>
6
+ <div class="ae-actions">
7
+ <button class="ae-btn ae-btn-primary ae-btn-md" type="submit">Search</button>
8
+ </div>
9
+ </form>
@@ -0,0 +1,69 @@
1
+ <section>
2
+ <p>Add class to <code>&lt;form&gt;</code> to assign a form group style.</p>
3
+ <p>Use <code>&lt;p class=&quot;ae-hint&quot;&gt;&lt;/p&gt;</code> to add help text below an input.</p>
4
+
5
+
6
+ <table>
7
+ <thead>
8
+ <tr>
9
+ <th width="20%">Form Group Type</th>
10
+ <th>Demo</th>
11
+ <th width="30%">Usage</th>
12
+ </tr>
13
+ </thead>
14
+ <tbody>
15
+
16
+ <tr>
17
+ <td>Horizontal Form</td>
18
+ <td>
19
+ <%= render "express_ui/molecules/form_group_horizontal" %>
20
+ </td>
21
+ <td><p>Add <code>.ae-form-horizontal</code> to <code>&lt;form&gt;</code> to make labels and input fields stack in separate row. Forms are <code>.ae-form-horizontal</code> by default, unless noted.</p>
22
+ </td>
23
+ </tr>
24
+
25
+ <tr>
26
+ <td>Inline Form</td>
27
+ <td>
28
+ <form class="ae-form-inline">
29
+ <div class="ae-form-field">
30
+ <label for="email">Email</label>
31
+ <input class="ae-text-field ae-input-md" type="email" name="email" value="user@email.com" id="email" placeholder="user@email.com" />
32
+ </div>
33
+ <div class="ae-form-field">
34
+ <label for="password">Password</label>
35
+ <input class="ae-text-field ae-input-md" type="password" name="password" value="Enter password" id="password" placeholder="Enter password" />
36
+ </div>
37
+ <div class="ae-actions">
38
+ <button class="ae-btn ae-btn-primary ae-btn-md" type="submit">Log In</button>
39
+ </div>
40
+ </form>
41
+ </td>
42
+ <td><p>Add <code>.ae-form-inline</code> to <code>&lt;form&gt;</code> to have labels and input fields appear side by side.</p>
43
+ </td>
44
+ </tr>
45
+
46
+ <tr>
47
+ <td>Single Line Form / Search Form</td>
48
+ <td>
49
+ <%= render "express_ui/molecules/form_group_single_line" %>
50
+ </td>
51
+ <td><p>Add <code>.ae-form-single</code> to <code>&lt;form&gt;</code> to have labels, input fields, and buttons appear in a single line.</p>
52
+ <p>Search forms are single line forms by default, and should have an input, search button, and reset button.</p>
53
+ </td>
54
+ </tr>
55
+
56
+
57
+ <tr>
58
+ <td>Form with Icons</td>
59
+ <td>
60
+ <form>
61
+ <div class="ae-form-field ae-has-icon">
62
+ <i class="fa fa-map-marker"></i>
63
+ <input class="ae-text-field ae-input-md" type="text" name="address" placeholder="Enter your address" />
64
+ </div>
65
+ </form></td>
66
+ <td><p>Icons can be used alongside input texts</p></td>
67
+ </tr>
68
+
69
+ </tbody></table></section>
@@ -0,0 +1,209 @@
1
+ <section>
2
+ <h4>Basic Usage</h4>
3
+ <p><strong>Required</strong>. Form elements should be wrapped in a <code>&lt;form&gt;&lt;div class=&quot;ae-form-field&quot;&gt;&lt;/div&gt;&lt;/form&gt;</code> to ensure that proper semantics are followed. This also ensures proper styling is applied. See <a href="http://w3c.github.io/html/semantics.html#forms" title="Form semantics at w3c">http://w3c.github.io/html/semantics.html#forms</a>.</p>
4
+
5
+ <h4>Input Fields</h4>
6
+
7
+ <table>
8
+ <thead>
9
+ <tr>
10
+ <th>Input Type</th>
11
+ <th>Demo</th>
12
+ <th>Usage</th>
13
+ </tr>
14
+ </thead>
15
+ <tbody>
16
+ <tr>
17
+ <td><code>text</code></td>
18
+ <td>
19
+ <form>
20
+ <div class="ae-form-field">
21
+ <input class="ae-text-field ae-input-sm" type="text" name="text" value="Enter a word" placeholder="Enter some text" />
22
+ </div>
23
+ </form>
24
+ </td>
25
+ <td>Alphanumeric</td>
26
+ </tr>
27
+ <tr>
28
+ <td><code>number</code></td>
29
+ <td>
30
+ <form>
31
+ <div class="ae-form-field">
32
+ <input class="ae-text-field ae-input-sm" type="number" name="number" value="+63 000 0000000" placeholder="Enter a phone number" />
33
+ </div>
34
+ </form>
35
+ </td>
36
+ <td>Numeric</td>
37
+ </tr>
38
+ <tr>
39
+ <td><code>email</code></td>
40
+ <td>
41
+ <form>
42
+ <div class="ae-form-field">
43
+ <input class="ae-text-field ae-input-sm" type="email" name="email" value="user@email.com" placeholder="user@email.com" />
44
+ </div>
45
+ </form>
46
+ </td>
47
+ <td>user@email.com</td>
48
+ </tr>
49
+ <tr>
50
+ <td><code>url</code></td>
51
+ <td>
52
+ <form>
53
+ <div class="ae-form-field">
54
+ <input class="ae-text-field ae-input-sm" type="url" name="url" value="http://" placeholder="http://" />
55
+ </div>
56
+ </form>
57
+ </td>
58
+ <td>http://</td>
59
+ </tr>
60
+ <tr>
61
+ <td><code>search</code></td>
62
+ <td>
63
+ <form>
64
+ <div class="ae-form-field">
65
+ <input class="ae-text-field ae-input-sm" type="search" name="search" value="Enter a search word" placeholder="Enter a search word" />
66
+ </div>
67
+ </form>
68
+ </td>
69
+ <td>Alphanumeric</td>
70
+ </tr>
71
+ <tr>
72
+ <td><code>date</code></td>
73
+ <td>
74
+ <form>
75
+ <div class="ae-form-field">
76
+ <input class="ae-text-field ae-input-sm" type="date" name="date" value="Select date" placeholder="Select date" />
77
+ </div>
78
+ </form>
79
+ </td>
80
+ <td>MM/DD/YYY</td>
81
+ </tr>
82
+ <tr>
83
+ <td><code>time</code></td>
84
+ <td>
85
+ <form>
86
+ <div class="ae-form-field">
87
+ <input class="ae-text-field ae-input-sm" type="time" name="time" value="Select time" placeholder="Select time" />
88
+ </div>
89
+ </form>
90
+ </td>
91
+ <td>HH:MM AM/PM</td>
92
+ </tr>
93
+ <tr>
94
+ <td><code>month</code></td>
95
+ <td>
96
+ <form>
97
+ <div class="ae-form-field">
98
+ <input class="ae-text-field ae-input-sm" type="month" name="month" value="Select month and year" placeholder="Select month and year" />
99
+ </div>
100
+ </form>
101
+ </td>
102
+ <td>Month YYYY</td>
103
+ </tr>
104
+ <tr>
105
+ <td><code>color</code></td>
106
+ <td>
107
+ <form>
108
+ <div class="ae-form-field">
109
+ <input class="ae-text-field ae-input-sm" type="color" name="color" value="Select color" placeholder="Select color" />
110
+ </div>
111
+ </form>
112
+ </td>
113
+ <td>Color picker</td>
114
+ </tr>
115
+ <tr>
116
+ <td><code>range</code></td>
117
+ <td>
118
+ <form>
119
+ <div class="ae-form-field">
120
+ <input class="ae-text-field ae-input-sm" type="range" name="range" value="Select range" placeholder="Select range" />
121
+ </div>
122
+ </form>
123
+ </td>
124
+ <td>Range</td>
125
+ </tr>
126
+ <tr>
127
+ <td><code>&lt;textarea&gt;&lt;/textarea&gt;</code></td>
128
+ <td>
129
+ <form>
130
+ <div class="ae-form-field">
131
+ <textarea class="ae-textarea ae-input-sm" type="textarea" name="textarea" rows="5" cols="100"></textarea>
132
+ </div>
133
+ </form></td>
134
+ <td><p>Specify value for <code>rows</code> and <code>cols</code> attributes.</p>
135
+ </td>
136
+ </tr>
137
+ </tbody>
138
+ </table>
139
+
140
+
141
+ <h4>Input Sizes</h4>
142
+ <table>
143
+ <thead>
144
+ <th>Size</th>
145
+ <th>Demo</th>
146
+ <th>Usage</th>
147
+ </thead>
148
+ <tbody>
149
+ <tr>
150
+ <td>Small</td>
151
+ <td><form>
152
+ <div class="ae-form-field">
153
+ <input class="ae-text-field ae-input-sm" value="Small input" placeholder="Small input" type="text"></input> </div>
154
+ </form>
155
+ </td>
156
+ <td><code>.ae-input-sm</code></td>
157
+ </tr>
158
+ <tr>
159
+ <td>Medium</td>
160
+ <td><form>
161
+ <div class="ae-form-field">
162
+ <input class="ae-text-field ae-input-md" value="Medium input" placeholder="Medium input" type="text"></input> </div>
163
+ </form>
164
+ </td>
165
+ <td><code>.ae-input-md</code></td>
166
+ </tr>
167
+ <tr>
168
+ <td>Large</td>
169
+ <td><form>
170
+ <div class="ae-form-field">
171
+ <input class="ae-text-field ae-input-lg" value="Large input" placeholder="Large input" type="text"></input> </div>
172
+ </form>
173
+ </td>
174
+ <td><code>.ae-input-lg</code></td>
175
+ </tr>
176
+ </tbody>
177
+ </table>
178
+
179
+
180
+ <h4>Radio and Checkbox</h4>
181
+ <p>Add <code>checked</code> attribute to set default selected. Using <code>label</code> will activate the radio upon clicking the text beside it. See <a href="#">Forms in Molecules</a>.</p>
182
+ <p>Express UI uses Font Awesome icons and CSS to style checkboxes and radio buttons.</p>
183
+
184
+ <br />
185
+
186
+ <%= render "express_ui/molecules/forms_radio" %>
187
+
188
+ <br />
189
+
190
+ <%= render "express_ui/molecules/forms_checkbox" %>
191
+
192
+ <h4>Select</h4>
193
+ <p>Add <code>input-size</code> in <code>select</code> to change select form height and font size.</p>
194
+ <%= render "express_ui/molecules/forms_select" %>
195
+
196
+ <h4>Switch</h4>
197
+ <p>Source:https://proto.io/freebies/onoff/</p>
198
+ <form>
199
+ <div class="ae-form-field">
200
+ <div class="ae-switch">
201
+ <input type="checkbox" name="switch" class="ae-switch-checkbox" id="ae-switch" checked>
202
+ <label class="ae-switch-label" for="ae-switch">
203
+ <span class="ae-switch-inner"></span>
204
+ <span class="ae-switch-button"></span>
205
+ </label>
206
+ </div>
207
+ </div>
208
+ </form>
209
+ </section>
@@ -0,0 +1,20 @@
1
+ <form>
2
+ <div class="ae-form-field">
3
+ <div>
4
+ <input class="ae-checkbox-field" type="checkbox" name="cars" value="volvo" id="volvo" checked="checked" />
5
+ <label for="volvo">Volvo</label>
6
+ </div>
7
+ <div>
8
+ <input class="ae-checkbox-field" type="checkbox" name="cars" value="saab" id="saab" />
9
+ <label for="saab">Saab</label>
10
+ </div>
11
+ <div>
12
+ <input class="ae-checkbox-field" type="checkbox" name="cars" value="mercedes" id="mercedes" />
13
+ <label for="mercedes">Mercedes</label>
14
+ </div>
15
+ <div>
16
+ <input class="ae-checkbox-field" type="checkbox" name="cars" value="audi" id="audi" />
17
+ <label for="audi">Audi</label>
18
+ </div>
19
+ </div>
20
+ </form>
@@ -0,0 +1,12 @@
1
+ <form>
2
+ <div class="ae-form-field">
3
+ <div>
4
+ <input class="ae-radio-field" type="radio" name="gender" value="male" id="gender1" checked="checked" />
5
+ <label for="gender1">Male</label>
6
+ </div>
7
+ <div>
8
+ <input class="ae-radio-field" type="radio" name="gender" value="female" id="gender2" />
9
+ <label for="gender2">Female</label>
10
+ </div>
11
+ </div>
12
+ </form>
@@ -0,0 +1,11 @@
1
+ <form>
2
+ <div class="ae-form-field">
3
+ <label for="select">Filter</label>
4
+ <select class="ae-input-md" name="select" id="select">
5
+ <option value="volvo">Volvo</option>
6
+ <option value="saab">Saab</option>
7
+ <option value="mercedes">Mercedes</option>
8
+ <option value="audi">Audi</option>
9
+ </select>
10
+ </div>
11
+ </form>
@@ -0,0 +1,11 @@
1
+ <section>
2
+ <h4>Basic Menu</h4>
3
+ <p>Uses basic list</p>
4
+ <h4>Mega Menu</h4>
5
+
6
+ <p>Choose between <code>ae-nav-mega-menu-list</code> or <code>ae-nav-mega-menu-list-icon</code></p>
7
+
8
+ <div class="ae-demo-container">
9
+ <%= render "express_ui/molecules/nav_mega_menu" %>
10
+ </div>
11
+ </section>
@@ -0,0 +1,74 @@
1
+ <div class="ae-mega-menu">
2
+ <a href="#" class="ae-btn ae-btn-primary">Open Mega Menu List</a>
3
+ <div class="ae-nav-mega-menu-content">
4
+ <h3 class="ae-mega-menu-title">
5
+ Modules
6
+ <a href="#" class="ae-mega-menu-close ae-u-float-right">×</a>
7
+ </h3>
8
+ <ul class="ae-list-block ae-nav-mega-menu-list">
9
+ <li class="active ae-nav-mega-menu-item">
10
+ <a href="#">Express Admin
11
+ </a>
12
+ </li>
13
+ <li class="ae-nav-mega-menu-item">
14
+ <a href="#">Express Auth
15
+ </a>
16
+ </li>
17
+ <li class="ae-nav-mega-menu-item">
18
+ <a href="#">Express Billing
19
+ </a>
20
+ </li>
21
+
22
+ </ul>
23
+ </div>
24
+ </div>
25
+
26
+
27
+ <div class="ae-mega-menu">
28
+ <a href="#" class="ae-btn ae-btn-primary">Open Mega Menu with Big Icons</a>
29
+ <div class="ae-nav-mega-menu-content">
30
+ <h3 class="ae-mega-menu-title">
31
+ Modules
32
+ <a href="#" class="ae-mega-menu-close ae-u-float-right">×</a>
33
+ </h3>
34
+ <ul class="ae-list-inline ae-nav-mega-menu-list-icons">
35
+ <li class="active ae-nav-mega-menu-item">
36
+ <a href="#"><%= image_tag("appexpress/express_admin.svg", :alt => "Express Admin", :width => "60") %>Express Admin
37
+ </a>
38
+ </li>
39
+ <li class="ae-nav-mega-menu-item">
40
+ <a href="#"><%= image_tag("appexpress/express_auth.svg", :alt => "Express Auth", :width => "60") %>Express Auth
41
+ </a>
42
+ </li>
43
+ <li class="ae-nav-mega-menu-item">
44
+ <a href="#"><%= image_tag("appexpress/express_billing.svg", :alt => "Express Billing", :width => "60") %>Express Billing
45
+ </a>
46
+ </li>
47
+ </ul>
48
+ </div>
49
+ </div>
50
+
51
+ <div class="ae-mega-menu">
52
+ <a href="#" class="ae-btn ae-btn-primary">Open Mega Menu List with Small Icons</a>
53
+ <div class="ae-nav-mega-menu-content">
54
+ <h3 class="ae-mega-menu-title">
55
+ Modules
56
+ <a href="#" class="ae-mega-menu-close ae-u-float-right">×</a>
57
+ </h3>
58
+ <ul class="ae-list-block ae-nav-mega-menu-list">
59
+ <li class="active ae-nav-mega-menu-item">
60
+ <a href="#"><%= image_tag("appexpress/express_admin.svg", :alt => "Express Admin", :width => "60") %>Express Admin
61
+ </a>
62
+ </li>
63
+ <li class="ae-nav-mega-menu-item">
64
+ <a href="#"><%= image_tag("appexpress/express_auth.svg", :alt => "Express Auth", :width => "60") %>Express Auth
65
+ </a>
66
+ </li>
67
+ <li class="ae-nav-mega-menu-item">
68
+ <a href="#"><%= image_tag("appexpress/express_billing.svg", :alt => "Express Billing", :width => "60") %>Express Billing
69
+ </a>
70
+ </li>
71
+
72
+ </ul>
73
+ </div>
74
+ </div>
@@ -0,0 +1,93 @@
1
+ <section>
2
+ <p>To make tables responsive, wrap the <code>&lt;table&gt;&lt;/table&gt;</code> inside a <code>&lt;div&gt;&lt;/div&gt;</code> with class <code>.ae-table-responsive</code></p>
3
+ <p>'Data tables require a <code>&lt;thead&gt;</code> at all times. When possible, clicking the <code>&lt;thead&gt;</code> should sort the table. Tables should optionally be given a title.</p>
4
+
5
+
6
+ <table>
7
+ <thead>
8
+ <th><a href="#" title="Username"><i class="fa fa-user"></i> User</a></th>
9
+ <th><a href="#" title="User's birthday"><i class="fa fa-birthday-cake"></i> Birthday</a></th>
10
+ <th><a href="#" title="User's mobile number"><i class="fa fa-mobile"></i> Mobile</a></th>
11
+ </thead>
12
+ <tbody>
13
+ <tr>
14
+ <td>Anna</td>
15
+ <td>01-01-1990</td>
16
+ <td>+63 917 0000000</td>
17
+ </tr>
18
+ <tr>
19
+ <td>Bryan</td>
20
+ <td>02-01-1990</td>
21
+ <td>+63 918 0000000</td>
22
+ </tr>
23
+ <tr>
24
+ <td>Carol</td>
25
+ <td>03-01-1990</td>
26
+ <td>+63 919 0000000</td>
27
+ </tr>
28
+ </tbody>
29
+ </table>
30
+
31
+ <p>Use <code>.ae-table-unstyled</code> class for unstyled tables. This class disables row background colors.</p>
32
+
33
+ <p>Use <code>.ae-table-fixed-width</code> to set equal widths to cells</p>
34
+
35
+
36
+ <h4>Table with Actions</h4>
37
+
38
+ <div class="demo-container">
39
+ <div class="ae-table-responsive">
40
+ <table>
41
+ <thead>
42
+ <th><a href="#" title="created_at">Created At </a></th>
43
+ <th width="30%"><a href="#" title="address">Address</a></th>
44
+ <th><a href="#" title="contract_effective_date">Contract Effective Date </a></th>
45
+ <th><a href="#" title="closing_date">Closing Date</a></th>
46
+ <th><a href="#" title="owner">Owner</a></th>
47
+ <th><a href="#" title="creation_step">Creation Step</a></th>
48
+ <th><a href="#" title="paid">Paid</a></th>
49
+ <th width="15%"><a href="#" title="action">Actions</a></th>
50
+ </thead>
51
+ <tbody>
52
+ <tr>
53
+ <td>January 07, 2016 </td>
54
+ <td><a href="#">658 NW 9th Ct, Boca Raton, FL 33486, USA</a></td>
55
+ <td>January 07, 2016 </td>
56
+ <td>January 29, 2016 </td>
57
+ <td></td>
58
+ <td>step_2</td>
59
+ <td>false</td>
60
+ <td><button type="button" value="Delete" class="ae-btn ae-btn-danger">Delete</button></td>
61
+ </tr>
62
+ <tr>
63
+ <td>January 07, 2016 </td>
64
+ <td><a href="#">2714 Southern Parkway West</a></td>
65
+ <td>January 07, 2016 </td>
66
+ <td>January 29, 2016 </td>
67
+ <td></td>
68
+ <td>step_2</td>
69
+ <td>false</td>
70
+ <td><a href="#">View</a></td>
71
+ </tr>
72
+ <tr>
73
+ <td>Small Office</td>
74
+ <td>Top Producer</td>
75
+ <td>$1,299.00</td>
76
+ </tr>
77
+ </tbody>
78
+ </table>
79
+ </div>
80
+ </div>
81
+
82
+ <h4>Table with Filtering</h4>
83
+ <p>There is an option to filter through a table.</p>
84
+
85
+ <div class="demo-container">
86
+ <%= render "express_ui/molecules/table_with_filtering" %>
87
+ </div>
88
+
89
+ <h4>Empty Table</h4>
90
+
91
+ <p>Recommended reading on designing tables: <a href="https://medium.com/mission-log/design-better-data-tables-430a30a00d8c#.28lwzzybi" title="Design better data tables">Design better data tables</a></p></section>
92
+
93
+