mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-18 02:20:37 -05:00
Customer page: Edit link in the contextual area instead of a button
Moves "Edit customer" from a button under the actions list to Redmine's standard top-right contextual area (pencil icon, "e" access key), shown only to users with Edit customers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
2 files changed
+7
-4
No files matched your search
@@ -14,10 +14,6 @@
|
|||||||
|
|
||||||
<%= call_hook :customer_actions_bottom, { customer: @customer } %>
|
<%= call_hook :customer_actions_bottom, { customer: @customer } %>
|
||||||
|
|
||||||
<% if User.current.allowed_to?(:edit_customers, nil, global: true) %>
|
|
||||||
<%= button_to t(:label_edit_customer), edit_customer_path(@customer), method: :get%>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function handleSingleSelect(event, className) {
|
function handleSingleSelect(event, className) {
|
||||||
if (event.target.checked) {
|
if (event.target.checked) {
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
<div class="contextual">
|
||||||
|
<% if User.current.allowed_to?(:edit_customers, nil, global: true) %>
|
||||||
|
<%= link_to sprite_icon('edit', l(:button_edit)), edit_customer_path(@customer),
|
||||||
|
class: 'icon icon-edit', accesskey: accesskey(:edit) %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h2><%=t(:field_customer)%> #<%= @customer.id %> - <%= link_to @customer.to_s, "https://#{RedmineQbo.sandbox_mode? ? "sandbox" : "app"}.qbo.intuit.com/app/customerdetail?nameId=#{@customer.id}", target: :_blank %> </h2>
|
<h2><%=t(:field_customer)%> #<%= @customer.id %> - <%= link_to @customer.to_s, "https://#{RedmineQbo.sandbox_mode? ? "sandbox" : "app"}.qbo.intuit.com/app/customerdetail?nameId=#{@customer.id}", target: :_blank %> </h2>
|
||||||
<div class="issue">
|
<div class="issue">
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user