-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Espace producteur : supprimer ressource d'un JDD (#3504)
* Espace producteur : supprimer ressource d'un JDD * Unused variable * Improve UI and add tracking events * Fix test * Improve UI
- Loading branch information
1 parent
d3b6669
commit c296972
Showing
16 changed files
with
274 additions
and
50 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
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
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
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
39 changes: 39 additions & 0 deletions
39
apps/transport/lib/transport_web/templates/resource/delete_resource_confirmation.html.heex
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<% dataset_id = Map.fetch!(@conn.params, "dataset_id") | ||
resource_id = Map.fetch!(@conn.params, "resource_id") %> | ||
<section class="pt-48 pb-24"> | ||
<div class="container"> | ||
<%= breadcrumbs([@conn, :delete_resource, dataset_id]) %> | ||
</div> | ||
</section> | ||
<section class="resource-update-section"> | ||
<div class="container pt-24"> | ||
<strong><%= @dataset["title"] %> > <%= @resource["title"] %></strong> | ||
<%= form_for @conn, resource_path(@conn, :delete, dataset_id, resource_id), [method: "delete", class: "pt-48"], fn _ -> %> | ||
<p class="notification warning"> | ||
<%= dgettext("resource", "Do you want to update the resource or delete it definitely?") %> | ||
</p> | ||
<div class="form-group"> | ||
<button | ||
class="button warning" | ||
type="submit" | ||
data-tracking-category="espace_producteur" | ||
data-tracking-action="confirm_delete_resource" | ||
> | ||
<%= dgettext("resource", "Delete the resource") %> | ||
</button> | ||
<a href={resource_path(@conn, :form, dataset_id, resource_id)}> | ||
<button | ||
class="button-outline primary" | ||
type="button" | ||
data-tracking-category="espace_producteur" | ||
data-tracking-action="abort_delete_update_resource" | ||
> | ||
<%= dgettext("resource", "Update the resource") %> | ||
</button> | ||
</a> | ||
</div> | ||
<% end %> | ||
</div> | ||
</section> | ||
|
||
<script defer type="text/javascript" src={static_path(@conn, "/js/app.js")} /> |
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
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
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
Oops, something went wrong.