Sha256: 5fb863914be214e4cae6fa767d2eb64a8fe7088a3b5276f64a1196820d529a21
Contents?: true
Size: 770 Bytes
Versions: 2
Compression:
Stored size: 770 Bytes
Contents
<% if current_user.present? %> <% if current_order && current_order.projects.include?(project) %> <%= button_to t('.added'), order_line_item_path(project_id: project), method: :delete, remote: true, data: { disable: true, budget: project.budget }, disabled: current_order_checked_out?, class: "button expanded button--sc success budget--list__action" %> <% else %> <%= button_to t('.add'), order_line_item_path(project_id: project), method: :post, remote: true, data: { disable: true, budget: project.budget, add: true }, disabled: current_order_checked_out?, class: "button expanded button--sc budget--list__action" %> <% end %> <% else %> <button class="button expanded button--sc disabled" data-toggle="loginModal"><%= t('.add') %></button> <% end %>
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
decidim-budgets-0.0.3 | app/views/decidim/budgets/projects/_project_budget_button.html.erb |
decidim-0.0.3 | decidim-budgets/app/views/decidim/budgets/projects/_project_budget_button.html.erb |