x
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
<div class="Polaris-Page Polaris-Page--narrowWidth"> <div style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-4);--pc-box-padding-block-end-md: var(--p-space-5);--pc-box-padding-block-start-xs: var(--p-space-4);--pc-box-padding-block-start-md: var(--p-space-5);--pc-box-padding-inline-end-xs: var(--p-space-4);--pc-box-padding-inline-end-sm: var(--p-space-0);--pc-box-padding-inline-start-xs: var(--p-space-4);--pc-box-padding-inline-start-sm: var(--p-space-0);position: relative" class="Polaris-Box"> <div class="Polaris-Page-Header--mobileView Polaris-Page-Header--mediumTitle Polaris-Page-Header--hasNavigation"> <div class="Polaris-Page-Header__Row"> <div class="Polaris-Page-Header__BreadcrumbWrapper"> <div style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-max-width: 100%;--pc-box-padding-inline-end-xs: var(--p-space-2)" class="Polaris-Box Polaris-Box--printHidden"> <nav role="navigation"> <a class="Polaris-Breadcrumbs__Breadcrumb" href="/orders" data-polaris-unstyled="true"> <span class="Polaris-Breadcrumbs__ContentWrapper"> <span class="Polaris-Breadcrumbs__Icon"> <span class="Polaris-Icon"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 20 20" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M16.5 10a.75.75 0 0 1-.75.75h-9.69l2.72 2.72a.75.75 0 0 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 1 1 1.06 1.06l-2.72 2.72h9.69a.75.75 0 0 1 .75.75Z"></path></svg> </span> </span> </span> </a> </nav> </div> </div> <div class="Polaris-Page-Header__TitleWrapper"> <div class="Polaris-Header-Title__TitleAndSubtitleWrapper"> <h1 class="Polaris-Header-Title">Add payment method</h1> </div> </div> <div class="Polaris-Page-Header__RightAlign"> <div class="Polaris-Page-Header__Actions"> <div class="Polaris-Page-Header__PrimaryActionWrapper"> <button type="button" disabled="disabled" data-controller="polaris-button" class="Polaris-Button Polaris-Button--disabled Polaris-Button--primary"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Save </div> </span> </button> </div> </div> </div> </div> </div> </div> <div class=""> <div class="Polaris-LegacyCard"> <div class="Polaris-LegacyCard__Header"> <h2 class="Polaris-Text--root Polaris-Text--headingMd Polaris-Text--semibold"> Credit card </h2> </div> <div class="Polaris-LegacyCard__Section"> <p>Credit card information</p> </div> </div> <div class="Polaris-PageActions"> <div class="Polaris-LegacyStack Polaris-LegacyStack--distributionTrailing Polaris-LegacyStack--spacingTight"> <div class="Polaris-LegacyStack__Item"> <div class="Polaris-ButtonGroup"> <div class="Polaris-ButtonGroup__Item"> <button type="button" data-controller="polaris-button" class="Polaris-Button"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Delete </div> </span> </button> </div> </div> </div> <div class="Polaris-LegacyStack__Item"> <button type="button" disabled="disabled" data-controller="polaris-button" class="Polaris-Button Polaris-Button--disabled Polaris-Button--primary"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Save </div> </span> </button> </div> </div> </div> </div></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<%= polaris_page( narrow_width: true, title: "Add payment method", back_url: "/orders",) do |page| %> <% page.with_primary_action(disabled: true) { "Save" } %> <%= polaris_card(title: "Credit card") do %> <p>Credit card information</p> <% end %> <%= polaris_page_actions do |actions| %> <% actions.with_primary_action(disabled: true) { "Save" } %> <% actions.with_secondary_action { "Delete" } %> <% end %><% end %>
No notes provided.
No params configured.