Skip to content

Commit 7a3f82e

Browse files
committed
Make addressable content selectable
* UI works for edit/configure/delete content blocks. * Still need to make delete block work with JSON.
1 parent 7d9c80f commit 7a3f82e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
<li><a href="#"><%= icon "th-list" %> <%= object.name %>
1+
<li><%= tag "a", {href: "#",
2+
class: 'selectable',
3+
data: {edit_path: url_for(block_path(object)),
4+
configure_path: url_for(block_path(object, :edit)),
5+
delete_path: url_for(block_path(object)),
6+
type: object.class.name
7+
}},
8+
true %>
9+
<%= icon "th-list" %> <%= object.name %>
210
<span class="span1">
311
<%= content_tag "i", "", class: access_icon %>
412
<%= status_tag(object) %>
513
</span>
6-
</a>
14+
</a>
715
</li>

todo_ui_Revamp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Tasks:
22

33
## UI Merge
44

5-
* Make addressable content selectable.
5+
* [BUG] Deleting addressable content from the sitemap throws error and breaks the UI.
66
* Select something else after deleting.
77
* Handle non-editable sections (from security)
88
* Audit sitemap.js.erb for remaining features.
@@ -13,7 +13,7 @@ Tasks:
1313
* Move/drag/drop sections
1414
* Enable buttons correctly based on selected item
1515
* Selecting the root section should not change its icon or expand/collapse it.
16-
* Handle non-editable pages/nodes
16+
* Paths are not autogenerating when creating products/catalogs.
1717

1818
##
1919

0 commit comments

Comments
 (0)