diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-12 23:43:02 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-12 23:43:02 +0200 |
| commit | 848ce18303f927bfadaf0965a769cae2c62492a0 (patch) | |
| tree | 3cb14888a0df92178cd20037e7fe94f407d5ad2e /app/views/nodes/chapters.html.erb | |
| parent | b271648f89cba7cafafa1b73b1658b1c1bc0e4b0 (diff) | |
Normalize action-button wording and add icons app-wide
"New X" becomes "Create X" throughout (users, events, assets, menu
items, nodes), matching the verb-first pattern the dashboard's own
signposts already established, with a shared plus icon rather than a
document-flavored one that only made sense next to "post". The
"Destroy"/"destroy"/"Delete" family is normalized to "Destroy"
everywhere, with a shared trash icon; occurrences#index and
pages#index also pick up the destructive button class they'd been
silently missing. Filter and Search convert from submit_tag to
button_tag, the only way either can hold an icon alongside its label.
Edit and the node editor's three dynamic labels (Continue Editing /
Edit Draft / Lock + Edit) share one icon without touching their
wording -- unlike Destroy's family, the state nuance in the text is
real information, not just inconsistent phrasing.
Diffstat (limited to 'app/views/nodes/chapters.html.erb')
| -rw-r--r-- | app/views/nodes/chapters.html.erb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/nodes/chapters.html.erb b/app/views/nodes/chapters.html.erb index 939f19cd..543bc53c 100644 --- a/app/views/nodes/chapters.html.erb +++ b/app/views/nodes/chapters.html.erb | |||
| @@ -1,9 +1,11 @@ | |||
| 1 | <h1>Chapters</h1> | 1 | <h1>Chapters</h1> |
| 2 | 2 | ||
| 3 | <%= form_tag chapters_nodes_path, method: :get do %> | 3 | <%= form_tag chapters_nodes_path, method: :get, class: "node_search_form" do %> |
| 4 | <label><%= check_box_tag 'kinds[]', 'erfa', @kind_keys.include?('erfa') %> Erfa</label> | 4 | <label><%= check_box_tag 'kinds[]', 'erfa', @kind_keys.include?('erfa') %> Erfa</label> |
| 5 | <label><%= check_box_tag 'kinds[]', 'chaostreff', @kind_keys.include?('chaostreff') %> Chaostreff</label> | 5 | <label><%= check_box_tag 'kinds[]', 'chaostreff', @kind_keys.include?('chaostreff') %> Chaostreff</label> |
| 6 | <%= submit_tag "Filter", class: "action_button" %> | 6 | <%= button_tag type: "submit", class: "action_button" do %> |
| 7 | <%= icon("filter", library: "tabler", "aria-hidden": true) %> Filter | ||
| 8 | <% end %> | ||
| 7 | <% end %> | 9 | <% end %> |
| 8 | 10 | ||
| 9 | <%= render 'node_list' %> | 11 | <%= render 'node_list' %> |
