Initial Redmine tooling and local plugin forks

This commit is contained in:
Jason Thistlethwaite
2026-04-24 22:01:18 +00:00
commit 9f682af0eb
683 changed files with 56878 additions and 0 deletions
@@ -0,0 +1,6 @@
<h2><%= l(:label_query) %></h2>
<%= form_tag(crm_query_path(@query, :object_type => @object_type), :onsubmit => 'selectAllOptions("selected_columns");', :method => :put) do %>
<%= render :partial => 'queries/form', :locals => {:query => @query} %>
<%= submit_tag l(:button_save) %>
<% end %>
@@ -0,0 +1,10 @@
api.array :queries, api_meta(:total_count => @query_count, :offset => @offset, :limit => @limit) do
@queries.each do |query|
api.query do
api.id query.id
api.name query.name
api.is_public query.is_public?
api.project_id query.project_id
end
end
end
@@ -0,0 +1,25 @@
<div class="contextual">
<%= link_to_if_authorized l(:label_query_new), new_project_crm_query_path(:project_id => @project, :object_type => @object_type), :class => 'icon icon-add' %>
</div>
<h2><%= l(:label_query_plural) %></h2>
<% if @queries.empty? %>
<p><i><%=l(:label_no_data)%></i></p>
<% else %>
<table class="list">
<% @queries.each do |query| %>
<tr class="<%= cycle('odd', 'even') %>">
<td class="name">
<%= link_to h(query.name), :controller => "#{@object_type}s", :action => 'index', :project_id => @project, :query_id => query %>
</td>
<td class="buttons">
<% if query.editable_by?(User.current) %>
<%= link_to l(:button_edit), edit_crm_query_path(query), :class => 'icon icon-edit' %>
<%= delete_link crm_query_path(query) %>
<% end %>
</td>
</tr>
<% end %>
</table>
<% end %>
@@ -0,0 +1,6 @@
<h2><%= l(:label_query_new) %></h2>
<%= form_tag(@project ? project_crm_queries_path(@project, :object_type => @object_type) : crm_queries_path(:object_type => @object_type), :onsubmit => 'selectAllOptions("selected_columns");') do %>
<%= render :partial => 'queries/form', :locals => {:query => @query} %>
<%= submit_tag l(:button_save) %>
<% end %>