Previews

No matching results.

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
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
<button id="dialog-show-danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57" data-show-dialog-id="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Click me</span>
</span>
</button>
<dialog-helper>
<dialog role="alertdialog" id="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57" aria-modal="true" aria-labelledby="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57-title" aria-describedby="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57-description" data-view-component="true" class="Overlay Overlay-whenNarrow Overlay--size-medium Overlay--motion-scaleFade DangerDialog Overlay--disableScroll">
<div data-view-component="true" class="Overlay-header">
<div class="Overlay-headerContentWrap">
<div class="Overlay-titleWrap">
<h1 class="Overlay-title sr-only" id="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57-title">
Delete work packages
</h1>
</div>
<div class="Overlay-actionWrap">
<button data-close-dialog-id="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57" aria-label="Close" type="button" data-view-component="true" class="close-button Overlay-closeButton"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg></button>
</div>
</div>
</div>
<danger-dialog-form-helper>
<scrollable-region data-labelled-by="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57-title">
<div data-view-component="true" class="Overlay-body">
<div class="blankslate-container">
<div id="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57-description" data-view-component="true" class="FeedbackMessage blankslate">
<svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-alert blankslate-icon color-fg-danger">
<path d="M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z"></path><path d="M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z"></path>
</svg>
<h2 data-view-component="true" class="blankslate-heading">Delete 5 work packages?</h2>
</div>
</div>
<div data-view-component="true" class="DangerDialog-additionalDetails d-flex flex-items-center flex-justify-center mb-3">
<div spacious="false" data-view-component="true" class="Box">
<ul data-view-component="true">
<li data-view-component="true" class="Box-row">
<div data-view-component="true" class="d-flex flex-row">
<div data-view-component="true" class="mr-2"><span data-view-component="true">FEATURE</span></div>
<div data-view-component="true" class="mr-2"><a href="/work_packages/823678" data-view-component="true" class="Link">#823678</a></div>
<div data-view-component="true"><span data-view-component="true" class="Label Label--accent Label--inline">Confirmed</span></div>
</div>
<span data-view-component="true">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed volutpat.
</span></li>
<li data-view-component="true" class="Box-row">
<div data-view-component="true" class="d-flex flex-row">
<div data-view-component="true" class="mr-2"><span data-view-component="true">EPIC</span></div>
<div data-view-component="true" class="mr-2"><a href="/work_packages/766926" data-view-component="true" class="Link">#766926</a></div>
<div data-view-component="true"><span data-view-component="true" class="Label Label--accent Label--inline">In specification</span></div>
</div>
<span data-view-component="true">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed volutpat.
</span></li>
<li data-view-component="true" class="Box-row">
<div data-view-component="true" class="d-flex flex-row">
<div data-view-component="true" class="mr-2"><span data-view-component="true">IDEA</span></div>
<div data-view-component="true" class="mr-2"><a href="/work_packages/377766" data-view-component="true" class="Link">#377766</a></div>
<div data-view-component="true"><span data-view-component="true" class="Label Label--accent Label--inline">New</span></div>
</div>
<span data-view-component="true">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed volutpat.
</span></li>
<li data-view-component="true" class="Box-row">
<div data-view-component="true" class="d-flex flex-row">
<div data-view-component="true" class="mr-2"><span data-view-component="true">IDEA</span></div>
<div data-view-component="true" class="mr-2"><a href="/work_packages/4711" data-view-component="true" class="Link">#4711</a></div>
<div data-view-component="true"><span data-view-component="true" class="Label Label--accent Label--inline">New</span></div>
</div>
<span data-view-component="true">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed volutpat.
</span></li>
<li data-view-component="true" class="Box-row">
<div data-view-component="true" class="d-flex flex-row">
<div data-view-component="true" class="mr-2"><span data-view-component="true">IDEA</span></div>
<div data-view-component="true" class="mr-2"><a href="/work_packages/9560" data-view-component="true" class="Link">#9560</a></div>
<div data-view-component="true"><span data-view-component="true" class="Label Label--accent Label--inline">New</span></div>
</div>
<span data-view-component="true">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed volutpat.
</span></li>
</ul>
</div>
</div>
<div data-view-component="true" class="DangerDialog-confirmationCheckBox d-flex flex-items-center flex-justify-center">
<div class="FormControl-checkbox-wrap">
<input name="confirm_dangerous_action" type="hidden" value="0" autocomplete="off" /><input id="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57-check_box" data-target="danger-dialog-form-helper.checkbox" data-action="change:danger-dialog-form-helper#toggle" class="FormControl-checkbox" type="checkbox" value="1" name="confirm_dangerous_action" />
<span class="FormControl-checkbox-labelWrap">
<label for="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57-check_box" class="FormControl-label">
I understand that this deletion cannot be reversed
</label>
</span>
</div>
</div>
</div>
</scrollable-region>
<div data-view-component="true" class="Overlay-footer Overlay-footer--alignEnd">
<button data-close-dialog-id="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Cancel</span>
</span>
</button>
<button data-submit-dialog-id="danger-dialog-2652ec34-23f5-461a-8586-469fd47d9d57" type="button" data-view-component="true" class="Button--danger Button--medium Button"> <span class="Button-content">
<span class="Button-label">Delete permanently</span>
</span>
</button>
</div>
</danger-dialog-form-helper>
</dialog></dialog-helper>
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
<%= render(Primer::OpenProject::DangerDialog.new(title: "Delete work packages")) do |dialog| %>
<% dialog.with_show_button { "Click me" } %>
<% dialog.with_confirmation_message do |message| %>
<% message.with_heading(tag: :h2).with_content("Delete 5 work packages?") %>
<% end %>
<% dialog.with_additional_details do %>
<%= render(Primer::Beta::BorderBox.new(spacious: false)) do |grid| %>
<% 5.times do %>
<% grid.with_row do %>
<%= render(Primer::OpenProject::FlexLayout.new) do |flex|
flex.with_column(mr: 2) do
render(Primer::Beta::Text.new) do
%w(EPIC FEATURE IDEA).sample
end
end
flex.with_column(mr: 2) do
work_package_id = rand(999_999)
render(Primer::Beta::Link.new(
href: "/work_packages/#{work_package_id}"),
title: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed volutpat.",
target: :_blank,
font_size: :small,
color: :muted
) { "##{work_package_id}" }
end
flex.with_column do
render(Primer::Beta::Label.new(scheme: :accent, size: :medium, inline: true)) do
["New", "Confirmed", "In specification"].sample
end
end
end %>
<%= render(Primer::Beta::Text.new) do %>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed volutpat.
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<% dialog.with_confirmation_check_box_content("I understand that this deletion cannot be reversed") %>
<% end %>