Skip to content

Commit 18e007b

Browse files
committed
Revert last commit
1 parent 191f07d commit 18e007b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/packs/stylesheets/decidim/stratified_sortitions/admin/stratified_sortitions.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
}
1111
}
1212

13+
.import-sample-btn {
14+
white-space: nowrap;
15+
}
16+
1317
.example-file-census-container {
1418
padding:1em;
1519
background:#e2e5ee;

app/views/decidim/stratified_sortitions/admin/stratified_sortitions/edit.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
<%= t(".title") %>
55
</h1>
66
<div class="flex items-center gap-x-4">
7-
<%= link_to t("actions.upload_sample", scope: "decidim.stratified_sortitions.admin"),
7+
<%= button_to t("actions.upload_sample", scope: "decidim.stratified_sortitions.admin"),
88
upload_sample_stratified_sortition_path(stratified_sortition),
9-
class: "button button__sm button__secondary" %>
9+
class: "button button__sm button__secondary import-sample-btn",
10+
disabled: stratified_sortition.strata.empty? %>
1011
</div>
1112
</div>
1213
<div class="item__edit item__edit-1col">

0 commit comments

Comments
 (0)