express_ui 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/express_ui/application.js +36 -38
- data/app/assets/stylesheets/express_ui/application.sass +6 -0
- data/app/assets/stylesheets/express_ui/atoms/_animations.sass +4 -0
- data/app/assets/stylesheets/express_ui/atoms/_buttons.sass +63 -9
- data/app/assets/stylesheets/express_ui/atoms/_icons.sass +20 -1
- data/app/assets/stylesheets/express_ui/atoms/_reset.sass +5 -2
- data/app/assets/stylesheets/express_ui/atoms/_typography.sass +11 -6
- data/app/assets/stylesheets/express_ui/atoms/_utilities.sass +5 -0
- data/app/assets/stylesheets/express_ui/mixins/_express_ui.sass +75 -13
- data/app/assets/stylesheets/express_ui/molecules/_button_group.sass +17 -0
- data/app/assets/stylesheets/express_ui/molecules/_container.sass +57 -6
- data/app/assets/stylesheets/express_ui/molecules/_flash_messages.sass +42 -12
- data/app/assets/stylesheets/express_ui/molecules/_form_groups.sass +75 -6
- data/app/assets/stylesheets/express_ui/molecules/_forms.sass +38 -4
- data/app/assets/stylesheets/express_ui/molecules/_lists.sass +44 -8
- data/app/assets/stylesheets/express_ui/molecules/_nav.sass +7 -2
- data/app/assets/stylesheets/express_ui/molecules/_progress_bar.sass +33 -0
- data/app/assets/stylesheets/express_ui/molecules/_progress_indicator.sass +5 -1
- data/app/assets/stylesheets/express_ui/molecules/_tables.sass +5 -0
- data/app/assets/stylesheets/express_ui/organisms/_detail.sass +28 -0
- data/app/assets/stylesheets/express_ui/organisms/_dropdown.sass +14 -0
- data/app/assets/stylesheets/express_ui/organisms/_header.sass +1 -1
- data/app/assets/stylesheets/express_ui/organisms/_panels.sass +41 -0
- data/app/assets/stylesheets/express_ui/organisms/_popovers.sass +9 -0
- data/app/assets/stylesheets/express_ui/organisms/_sidebar.sass +35 -27
- data/app/assets/stylesheets/express_ui/scripts/_accordion.sass +12 -8
- data/app/assets/stylesheets/express_ui/scripts/_popup.sass +39 -3
- data/app/assets/stylesheets/express_ui/templates/_content_sidebar.sass +0 -1
- data/app/assets/stylesheets/express_ui/templates/_full_width.sass +9 -0
- data/app/assets/stylesheets/express_ui/templates/_master_detail.sass +53 -1
- data/app/controllers/express_ui/uicomponents_controller.rb +3 -0
- data/app/helpers/express_ui/application_helper.rb +1 -0
- data/app/helpers/express_ui/checks_for_testing.rb +13 -0
- data/app/views/express_ui/molecules/_lists.html.erb +0 -0
- data/app/views/express_ui/shared/_header.html.erb +0 -1
- data/app/views/express_ui/styleguide/index.html.erb +0 -6
- data/app/views/express_ui/templates/master_detail_fixed.html.erb +24 -24
- data/app/views/layouts/express_ui/_doctype_html.html.erb +9 -0
- data/app/views/layouts/express_ui/_head.html.erb +1 -7
- data/app/views/layouts/express_ui/content_and_sidebar.html.erb +24 -10
- data/app/views/layouts/express_ui/content_and_sidebar_fixed.html.erb +25 -10
- data/app/views/layouts/express_ui/full_width.html.erb +10 -6
- data/app/views/layouts/express_ui/half_width.html.erb +2 -2
- data/app/views/layouts/express_ui/master_detail.html.html.erb +9 -5
- data/app/views/layouts/express_ui/master_detail_fixed.html.erb +17 -11
- data/app/views/layouts/express_ui/master_detail_sidebar.html.erb +30 -0
- data/app/views/layouts/express_ui/styleguide.html.erb +2 -6
- data/lib/express_ui/engine.rb +0 -2
- data/lib/express_ui/version.rb +1 -1
- metadata +15 -56
- data/app/components/code_demo.rb +0 -29
- data/app/components/component_docitem.rb +0 -140
- data/app/components/component_example.rb +0 -100
- data/app/components/express_ui/panel.rb +0 -37
- data/app/components/express_ui/unordered_list.rb +0 -29
- data/app/views/express_ui/molecules/_lists.html.et +0 -65
- data/app/views/express_ui/molecules/_nav_mega_menu.html.et +0 -94
- data/app/views/express_ui/molecules/_nav_menu.html.et +0 -17
- data/app/views/express_ui/molecules/_progress_indicator.html.et +0 -56
- data/app/views/express_ui/scripts/_accordion.html.et +0 -69
- data/app/views/express_ui/scripts/_calendar.html.et +0 -35
- data/app/views/express_ui/scripts/_carousel.html.et +0 -21
- data/app/views/express_ui/scripts/_datepicker.html.et +0 -37
- data/app/views/express_ui/scripts/_popup.html.et +0 -58
- data/app/views/express_ui/scripts/_select.html.et +0 -27
- data/app/views/express_ui/scripts/_slider.html.et +0 -58
- data/app/views/express_ui/scripts/_tabs.html.et +0 -17
- data/app/views/express_ui/scripts/index.html.erb +0 -46
- data/app/views/express_ui/uicomponents/_buttons.html.et +0 -10
- data/app/views/express_ui/uicomponents/_flash_message.html.et +0 -19
- data/app/views/express_ui/uicomponents/_forms.html.et +0 -118
- data/app/views/express_ui/uicomponents/_heading.html.et +0 -24
- data/app/views/express_ui/uicomponents/_icons.html.et +0 -35
- data/app/views/express_ui/uicomponents/_layout.html.et +0 -47
- data/app/views/express_ui/uicomponents/_lists.html.et +0 -49
- data/app/views/express_ui/uicomponents/_nav.html.et +0 -18
- data/app/views/express_ui/uicomponents/_pages.html.erb +0 -30
- data/app/views/express_ui/uicomponents/_panels.html.et +0 -14
- data/app/views/express_ui/uicomponents/_popup.html.et +0 -19
- data/app/views/express_ui/uicomponents/_register.html.erb +0 -14
- data/app/views/express_ui/uicomponents/_sidebar.html.et +0 -8
- data/app/views/express_ui/uicomponents/_table.html.et +0 -11
- data/app/views/express_ui/uicomponents/_widget_box.html.et +0 -14
- data/app/views/express_ui/uicomponents/examples/_panel.html.et +0 -9
- data/app/views/express_ui/uicomponents/examples/_unordered_list.html.et +0 -5
- data/app/views/express_ui/uicomponents/examples/_unordered_list_with_ids.html.et +0 -5
- data/app/views/express_ui/uicomponents/index.html.et +0 -52
@@ -1,37 +0,0 @@
|
|
1
|
-
module ExpressUi
|
2
|
-
class Panel < ExpressTemplates::Container
|
3
|
-
|
4
|
-
has_option :heading, "The panel heading text. Set to false to supress", default: true
|
5
|
-
has_option :footer, "The panel footing text."
|
6
|
-
|
7
|
-
before_build -> {
|
8
|
-
add_class 'panel'
|
9
|
-
}
|
10
|
-
|
11
|
-
contains -> (&block) {
|
12
|
-
div(class: "panel-heading", only_when: !!config[:heading]) {
|
13
|
-
panel_header
|
14
|
-
}
|
15
|
-
div(class: "panel-body") {
|
16
|
-
block.call
|
17
|
-
}
|
18
|
-
div(class: "panel-footer", only_when: !!config[:footer]) {
|
19
|
-
panel_footer
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
def panel_footer
|
24
|
-
config[:footer]
|
25
|
-
end
|
26
|
-
|
27
|
-
def panel_header
|
28
|
-
case config[:header]
|
29
|
-
when String
|
30
|
-
config[:header]
|
31
|
-
else
|
32
|
-
config[:id].to_s.titleize
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
37
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
module ExpressUi
|
2
|
-
class UnorderedList < ExpressTemplates::Container
|
3
|
-
|
4
|
-
include ExpressTemplates::Components::Capabilities::Iteration
|
5
|
-
|
6
|
-
tag :ul
|
7
|
-
|
8
|
-
has_option :collection_name, "Optional name for the collection if different from the :id"
|
9
|
-
|
10
|
-
contains -> (&block) {
|
11
|
-
for_all(collection_name) {
|
12
|
-
li(id: item_id, class: singular_item_name) {
|
13
|
-
block.call()
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
def collection_name
|
19
|
-
config[:collection_name] || config[:id]
|
20
|
-
end
|
21
|
-
|
22
|
-
def item_id
|
23
|
-
if item.respond_to?(:id)
|
24
|
-
"#{singular_item_name}:#{item.id}"
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|
29
|
-
end
|
@@ -1,65 +0,0 @@
|
|
1
|
-
h4 { 'Definition List' }
|
2
|
-
|
3
|
-
h5 { 'Inline List' }
|
4
|
-
|
5
|
-
code_demo {
|
6
|
-
%Q{
|
7
|
-
dl(class: 'ae-dl-inline' ) {
|
8
|
-
dt { 'Term' }
|
9
|
-
dd { 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi enim magna, fringilla a purus at, sagittis pellentesque dui. Duis placerat leo massa, non dignissim nisl dignissim vitae.' }
|
10
|
-
}
|
11
|
-
}
|
12
|
-
}
|
13
|
-
|
14
|
-
h5 { 'Horizontal List' }
|
15
|
-
|
16
|
-
code_demo {
|
17
|
-
%Q{
|
18
|
-
dl {
|
19
|
-
dt { 'Term' }
|
20
|
-
dd { 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi enim magna, fringilla a purus at, sagittis pellentesque dui. Duis placerat leo massa, non dignissim nisl dignissim vitae.' }
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
|
26
|
-
h4 { 'Ordered List' }
|
27
|
-
|
28
|
-
code_demo {
|
29
|
-
%Q{
|
30
|
-
ol {
|
31
|
-
li { 'Duis placerat leo massa, non dignissim nisl dignissim vitae.' }
|
32
|
-
li { 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi enim magna, fringilla a purus at, sagittis pellentesque dui. ' }
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
h4 { 'Undordered List' }
|
38
|
-
|
39
|
-
code_demo {
|
40
|
-
%Q{
|
41
|
-
ul(class: 'ae-list-bullet') {
|
42
|
-
li { 'Duis placerat leo massa, non dignissim nisl dignissim vitae.' }
|
43
|
-
li { 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi enim magna, fringilla a purus at, sagittis pellentesque dui. ' }
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
|
-
|
49
|
-
h4 { 'Inline Ordered/Undordered List' }
|
50
|
-
|
51
|
-
code_demo {
|
52
|
-
%Q{
|
53
|
-
ul(class: 'ae-list-inline') {
|
54
|
-
li { 'Duis placerat leo massa' }
|
55
|
-
li { 'Lorem ipsum dolor sit amet' }
|
56
|
-
}
|
57
|
-
|
58
|
-
ol(class: 'ae-list-inline') {
|
59
|
-
li { 'Duis placerat leo massa' }
|
60
|
-
li { 'Lorem ipsum dolor sit amet' }
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
|
@@ -1,94 +0,0 @@
|
|
1
|
-
code_demo {
|
2
|
-
%Q{
|
3
|
-
div(class: 'ae-mega-menu') {
|
4
|
-
a(href: '#', class:'ae-btn ae-btn-primary ae-open-mega-menu') { 'Open Mega Menu List' }
|
5
|
-
div(class: 'ae-nav-mega-menu-content ae-hidden') {
|
6
|
-
|
7
|
-
h3(class: 'ae-mega-menu-title') {
|
8
|
-
text_node 'Modules'
|
9
|
-
a(href: '#', class:'ae-mega-menu-close ae-u-float-right') { '×' }
|
10
|
-
}
|
11
|
-
|
12
|
-
ul(class: 'ae-list-block ae-nav-mega-menu-list') {
|
13
|
-
li(class: 'active ae-nav-mega-menu-item') {
|
14
|
-
a(href: '#') { 'Express Admin' }
|
15
|
-
}
|
16
|
-
li(class: 'ae-nav-mega-menu-item') {
|
17
|
-
a(href: '#') { 'Express Auth' }
|
18
|
-
}
|
19
|
-
li(class: 'ae-nav-mega-menu-item') {
|
20
|
-
a(href: '#') { 'Express Billing' }
|
21
|
-
}
|
22
|
-
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
div(class: 'ae-mega-menu') {
|
28
|
-
a(href: '#', class:'ae-btn ae-btn-primary ae-open-mega-menu') { 'Open Mega Menu List with Big Icons' }
|
29
|
-
div(class: 'ae-nav-mega-menu-content ae-hidden') {
|
30
|
-
|
31
|
-
h3(class: 'ae-mega-menu-title') {
|
32
|
-
text_node 'Modules'
|
33
|
-
a(href: '#', class:'ae-mega-menu-close ae-u-float-right') { '×' }
|
34
|
-
}
|
35
|
-
|
36
|
-
ul(class: 'ae-list-inline ae-nav-mega-menu-list-icons') {
|
37
|
-
li(class: 'active ae-nav-mega-menu-item') {
|
38
|
-
a(href: '#') {
|
39
|
-
image_tag 'appexpress/express_admin.svg', class: 'nav-logo', width: '60', alt: 'Express Admin'
|
40
|
-
text_node 'Express Admin'
|
41
|
-
}
|
42
|
-
}
|
43
|
-
li(class: ' ae-nav-mega-menu-item') {
|
44
|
-
a(href: '#') {
|
45
|
-
image_tag 'appexpress/express_auth.svg', class: 'nav-logo', width: '60', alt: 'Express Auth'
|
46
|
-
text_node 'Express Auth'
|
47
|
-
}
|
48
|
-
}
|
49
|
-
li(class: ' ae-nav-mega-menu-item') {
|
50
|
-
a(href: '#') {
|
51
|
-
image_tag 'appexpress/express_billing.svg', class: 'nav-logo', width: '60', alt: 'Express Billing'
|
52
|
-
text_node 'Express Billing '
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
|
-
}
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
div(class: 'ae-mega-menu') {
|
61
|
-
a(href: '#', class:'ae-btn ae-btn-primary ae-open-mega-menu') { 'Open Mega Menu List with Small Icons' }
|
62
|
-
div(class: 'ae-nav-mega-menu-content ae-hidden') {
|
63
|
-
|
64
|
-
h3(class: 'ae-mega-menu-title') {
|
65
|
-
text_node 'Modules'
|
66
|
-
a(href: '#', class:'ae-mega-menu-close ae-u-float-right') { '×' }
|
67
|
-
}
|
68
|
-
|
69
|
-
ul(class: 'ae-list-block ae-nav-mega-menu-list') {
|
70
|
-
li(class: 'active ae-nav-mega-menu-item') {
|
71
|
-
a(href: '#') {
|
72
|
-
image_tag 'appexpress/express_admin.svg', class: 'nav-logo', width: '60', alt: 'Express Admin'
|
73
|
-
text_node 'Express Admin'
|
74
|
-
}
|
75
|
-
}
|
76
|
-
li(class: ' ae-nav-mega-menu-item') {
|
77
|
-
a(href: '#') {
|
78
|
-
image_tag 'appexpress/express_auth.svg', class: 'nav-logo', width: '60', alt: 'Express Auth'
|
79
|
-
text_node 'Express Auth'
|
80
|
-
}
|
81
|
-
}
|
82
|
-
li(class: ' ae-nav-mega-menu-item') {
|
83
|
-
a(href: '#') {
|
84
|
-
image_tag 'appexpress/express_billing.svg', class: 'nav-logo', width: '60', alt: 'Express Billing'
|
85
|
-
text_node 'Express Billing '
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
}
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
}
|
94
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
code_demo {
|
2
|
-
%Q{
|
3
|
-
nav(class: 'ae-nav-main') {
|
4
|
-
ul(class: 'ae-list-inline') {
|
5
|
-
li(class: 'active ae-nav-item') {
|
6
|
-
a(href: '#') { 'Express Admin' }
|
7
|
-
}
|
8
|
-
li(class: 'ae-nav-item') {
|
9
|
-
a(href: '#') { 'Express Auth' }
|
10
|
-
}
|
11
|
-
li(class: 'ae-nav-item') {
|
12
|
-
a(href: '#') { 'Express Billing' }
|
13
|
-
}
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
@@ -1,56 +0,0 @@
|
|
1
|
-
table {
|
2
|
-
thead {
|
3
|
-
th { "Code" }
|
4
|
-
th { "Notes" }
|
5
|
-
}
|
6
|
-
tbody {
|
7
|
-
tr {
|
8
|
-
td {
|
9
|
-
code { ".ae-progress-indicator" }
|
10
|
-
}
|
11
|
-
td { "Required Class. This class adds progress indicator. Progress indicator shows numbers by default. " }
|
12
|
-
}
|
13
|
-
tr {
|
14
|
-
td {
|
15
|
-
code { ".ae-progress-indicator .ae-progress-check" }
|
16
|
-
}
|
17
|
-
td { "Optional Class. This class replaces numbers with checks for done points and a dot for the current point." }
|
18
|
-
}
|
19
|
-
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
code_demo {
|
24
|
-
%Q{
|
25
|
-
div(class: 'ae-progress-indicator ae-progress-check') {
|
26
|
-
div(class: 'ae-progress-points') {
|
27
|
-
ol {
|
28
|
-
li(class: 'ae-progress-point ae-progress-point-done') {
|
29
|
-
para(class: 'ae-progress-heading') { 'Club Name' }
|
30
|
-
}
|
31
|
-
li(class: 'ae-progress-point ae-progress-point-current') {
|
32
|
-
para(class: 'ae-progress-heading') { 'Club Info' }
|
33
|
-
}
|
34
|
-
li(class: 'ae-progress-point') {
|
35
|
-
para(class: 'ae-progress-heading') { 'Select Plan' }
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
div(class: 'ae-progress-indicator') {
|
41
|
-
div(class: 'ae-progress-points') {
|
42
|
-
ol {
|
43
|
-
li(class: 'ae-progress-point ae-progress-point-done') {
|
44
|
-
para(class: 'ae-progress-heading') { 'Club Name' }
|
45
|
-
}
|
46
|
-
li(class: 'ae-progress-point ae-progress-point-current') {
|
47
|
-
para(class: 'ae-progress-heading') { 'Club Info' }
|
48
|
-
}
|
49
|
-
li(class: 'ae-progress-point') {
|
50
|
-
para(class: 'ae-progress-heading') { 'Select Plan' }
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
@@ -1,69 +0,0 @@
|
|
1
|
-
para {
|
2
|
-
text_node 'ExpressUI uses QuickAccord to display collapsible accordions.'
|
3
|
-
a(href: 'http://www.jqueryscript.net/accordion/Accessible-Cross-browser-Accordion-Plugin-For-jQuery-QuickAccord.html', title: 'QuickAccord documentation') { 'See documentation' }
|
4
|
-
text_node 'and usage guidelines.'
|
5
|
-
}
|
6
|
-
|
7
|
-
table {
|
8
|
-
thead {
|
9
|
-
th { "Code" }
|
10
|
-
th { "Notes" }
|
11
|
-
}
|
12
|
-
tbody {
|
13
|
-
tr {
|
14
|
-
td {
|
15
|
-
code { "$('.ae-accordion-trigger').QuickAccord();" }
|
16
|
-
}
|
17
|
-
td { "Required Javascript. This script initializes the accordion." }
|
18
|
-
}
|
19
|
-
tr {
|
20
|
-
td {
|
21
|
-
code { '
|
22
|
-
<a href="#ae-accordion1" class="ae-accordion-trigger ae-btn ae-btn-primary expanded" data-accord-group="ae-accordion-group">Accordion 1</a>'
|
23
|
-
}
|
24
|
-
}
|
25
|
-
td { "Required mark-up. The link that opens the accordion content." }
|
26
|
-
}
|
27
|
-
tr {
|
28
|
-
td {
|
29
|
-
code { '
|
30
|
-
<div id="ae-accordion1" class="ae-accordion-content"></div>'
|
31
|
-
}
|
32
|
-
}
|
33
|
-
td { "Required mark-up. The div that has the accordion content" }
|
34
|
-
}
|
35
|
-
tr {
|
36
|
-
td {
|
37
|
-
code { 'data-accord-group="ae-accordion-group"' }
|
38
|
-
}
|
39
|
-
td { "Optional mark-up. Added to the accordion trigger link. Responsible for grouping accordion items together, so that only 1 accordion expands at a time. " }
|
40
|
-
}
|
41
|
-
|
42
|
-
}
|
43
|
-
}
|
44
|
-
|
45
|
-
code_demo {
|
46
|
-
%Q{
|
47
|
-
ul {
|
48
|
-
li {
|
49
|
-
a(href:"#ae-accordion1", class:"ae-accordion-trigger ae-btn ae-btn-primary", 'data-accord-group' => "ae-accordion-group") { 'Accordion 1' }
|
50
|
-
div(id: "ae-accordion1", class: "ae-accordion-content collapsed") {
|
51
|
-
para { 'Content 1'}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
li {
|
55
|
-
a(href:"#ae-accordion2", class:"ae-accordion-trigger ae-btn ae-btn-primary", 'data-accord-group' => "ae-accordion-group") { 'Accordion 2' }
|
56
|
-
div(id: "ae-accordion2", class: "ae-accordion-content collapsed") {
|
57
|
-
para { 'Content 2'}
|
58
|
-
}
|
59
|
-
}
|
60
|
-
li {
|
61
|
-
a(href:"#ae-accordion3", class:"ae-accordion-trigger ae-btn ae-btn-primary collapsed", 'data-accord-group' => "ae-accordion-group") { 'Accordion 3' }
|
62
|
-
div(id: "ae-accordion3", class: "ae-accordion-content collapsed") {
|
63
|
-
para { 'Content 3'}
|
64
|
-
}
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
@@ -1,35 +0,0 @@
|
|
1
|
-
para {
|
2
|
-
text_node 'ExpressUI uses FullCalendar to display dates.'
|
3
|
-
a(href: 'https://fullcalendar.io/docs/', title: 'FullCalendar documentation') { 'See documentation' }
|
4
|
-
text_node 'and usage guidelines.'
|
5
|
-
}
|
6
|
-
|
7
|
-
table {
|
8
|
-
thead {
|
9
|
-
th { "Code" }
|
10
|
-
th { "Notes" }
|
11
|
-
}
|
12
|
-
tbody {
|
13
|
-
tr {
|
14
|
-
td {
|
15
|
-
code { "$('.ae-calendar').fullCalendar()" }
|
16
|
-
}
|
17
|
-
td { "Required Javascript. This script initializes the calendar." }
|
18
|
-
}
|
19
|
-
tr {
|
20
|
-
td {
|
21
|
-
code { '<div class="ae-calendar"></div>' }
|
22
|
-
}
|
23
|
-
td { "Required mark-up. The Javascript inserts the calendar through this class." }
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
|
29
|
-
code_demo {
|
30
|
-
%Q{
|
31
|
-
div(class: 'ae-calendar')
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
para { 'https://github.com/Naggi-Goishi/siema-rails' }
|
2
|
-
|
3
|
-
|
4
|
-
code_demo {
|
5
|
-
%Q{
|
6
|
-
div(class: 'ae-carousel') {
|
7
|
-
div(class: 'ae-carousel-item', style: "background-image: url('http://lorempixel.com/1000/300/food')") {
|
8
|
-
div(class: 'ae-carousel-controls') {
|
9
|
-
div(class: 'ae-btn-group ae-btn-group-right') {
|
10
|
-
button(class: 'ae-btn ae-btn-primary', type: 'button') { 'Back' }
|
11
|
-
button(class: 'ae-btn ae-btn-primary', type: 'button') { 'Next' }
|
12
|
-
}
|
13
|
-
}
|
14
|
-
div(class: 'ae-carousel-caption') {
|
15
|
-
h3(class: 'carousel-heading') { 'Slide 1 Title' }
|
16
|
-
para { 'Slide 1 caption' }
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
para {
|
2
|
-
text_node 'ExpressUI uses Pickadate.js to select dates.'
|
3
|
-
a(href: 'http://amsul.ca/pickadate.js/date/', title: 'Pickadate.js documentation') { 'See documentation' }
|
4
|
-
text_node 'and usage guidelines.'
|
5
|
-
}
|
6
|
-
|
7
|
-
table {
|
8
|
-
thead {
|
9
|
-
th { "Code" }
|
10
|
-
th { "Notes" }
|
11
|
-
}
|
12
|
-
tbody {
|
13
|
-
tr {
|
14
|
-
td {
|
15
|
-
code { "$('.ae-datepicker').pickadate()" }
|
16
|
-
}
|
17
|
-
td { "Required Javascript. This script initializes the datepicker." }
|
18
|
-
}
|
19
|
-
tr {
|
20
|
-
td {
|
21
|
-
code { '<input class="ae-datepicker" type="text""></input>' }
|
22
|
-
}
|
23
|
-
td { "Required mark-up. The Javascript inserts the datepicker through this class." }
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
code_demo {
|
29
|
-
%Q{
|
30
|
-
form {
|
31
|
-
div(class: 'ae-form-field ae-has-icon') {
|
32
|
-
i(class: 'fa fa-calendar')
|
33
|
-
input(type: 'text', class: 'ae-datepicker ae-text-field ae-input-lg', name: 'ae-datepicker', placeholder: 'Select a date')
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|