-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c6ad58
commit e00dcbf
Showing
11 changed files
with
46 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/views/decidim/budgets/line_items/update_budget_error.js.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
app/views/decidim/budgets/linked_resources/_resource_modal.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<div class="reveal" data-reveal id="linked-resource-details" role="dialog" aria-modal="true" aria-labelledby="linked-resource-details-label" aria-live="polite"> | ||
<div class="reveal__header"> | ||
<h2 id="linked-resource-details-label" class="reveal__title"><%= present(resource).title %></h2> | ||
<%= decidim_modal id:"linked-resource-details-modal" do %> | ||
<div data-dialog-container> | ||
<h2 id="linked-resource-details-label"><%= present(resource).title %></h2> | ||
<button class="close-button" data-close aria-label="<%= t(".close_modal") %>" type="button"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
|
||
<div class="reveal__content"> | ||
<%= render(partial: @template, locals: { resource: resource }) %> | ||
<div> | ||
<%= render(partial: @template, locals: { resource: resource }) %> | ||
</div> | ||
</div> | ||
|
||
<div class="buttons buttons-row"> | ||
<div data-dialog-actions> | ||
<button class="button" data-close type="button"><%= t(".close") %></button> | ||
</div> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
var $modal = $("#linked-resource-details"); | ||
var $modal = $("#linked-resource-details-modal"); | ||
if ($modal.length > 0) { | ||
$modal.remove(); | ||
} | ||
|
||
$modal = $('<%= j(render partial: "resource_modal").strip.html_safe %>'); | ||
$("body").append($modal); | ||
|
||
$modal.foundation(); | ||
$modal.foundation("open"); | ||
let dialog = new window.Decidim.Dialogs("#linked-resource-details-modal"); | ||
$modal.data("linkedResourceDialog", dialog); | ||
let dialogInstance = dialog; | ||
|
||
dialogInstance.open(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<% show_only_added ||= params.dig(:filter, :addition_type) == "added" %> | ||
<%= card_for project, link_whole_card: false, wrapper_class: "project-item", show_only_added: %> | ||
<%= card_for project, render_extra_data: true, link_whole_card: false, wrapper_class: "project-item", show_only_added: %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
let modalId = "project-modal-<%= project.id %>"; | ||
let $modal = $("#" + modalId); | ||
let $modal = $("#project-modal-<%= project.id %>"); | ||
|
||
if ($modal.length < 1) { | ||
let modalHTML = '<%= j(render partial: "project_modal").strip.html_safe %>'; | ||
$("body").append(modalHTML); | ||
$modal = $('<%= j(render partial: "project_modal").strip.html_safe %>'); | ||
$("body").append($modal); | ||
|
||
let dialog = new A11yDialog($modal); | ||
let dialog = new window.Decidim.Dialogs("#project-modal-<%= project.id %>"); | ||
$modal.data("projectDialog", dialog); | ||
} | ||
|
||
let dialogInstance = $modal.data("projectDialog"); | ||
var dialogInstance = dialog; | ||
} | ||
|
||
dialogInstance.show(); | ||
dialogInstance.open(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<div class="reveal" data-reveal id="exit-notification" role="dialog" aria-modal="true" aria-labelledby="exit-notification-label" aria-live="polite"> | ||
<div class="reveal__header"> | ||
<h3 id="exit-notification-label" class="reveal__title"><%= t(".title") %></h3> | ||
<%= decidim_modal id:"exit-notification-modal" do %> | ||
<div data-dialog-container> | ||
<h3 id="exit-notification-label"><%= t(".title") %></h3> | ||
<button class="close-button" data-close aria-label="<%= t("decidim.budgets.budget_information_modal.close_modal") %>" type="button"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="static__content text-center"> | ||
<p><strong><%= t(".message") %></strong></p> | ||
<div class="static__content text-center"> | ||
<p><strong><%= t(".message") %></strong></p> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div data-dialog-actions> | ||
<div class="columns medium-8 medium-offset-2"> | ||
<button class="button primary expanded" data-close type="button"> | ||
<%= t(".cancel") %> | ||
</button> | ||
<%= link_to t(".exit"), projects_path, id: "exit-notification-link", class: "button primary hollow expanded" %> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters