Sha256: 6a394efdc17caf873bd00ee297d3e305ef3b7bf46616c27dced5b29c8e90ec0a
Contents?: true
Size: 937 Bytes
Versions: 1
Compression:
Stored size: 937 Bytes
Contents
<% if user_record_submitted? %> <%= button_to( lausanne_budget_order_line_item_path(model.budget, project_id: model), method: vote_button_method, remote: true, data: { disable: true, budget: model.budget_amount, allocation: resource_allocation, "redirect-url": lausanne_budget_project_path(model.budget, model) }, disabled: current_order_checked_out?, title: vote_button_label, class: "button tiny budget-list__action #{vote_button_class}", ) do %> <%= icon(resource_added? ? "x" : "check", class: "icon--small", aria_label: vote_button_label, role: "img") %> <% end %> <% else %> <button class="button tiny budget-list__action <%= vote_button_class %>" data-toggle="userRecord"> <%= icon(resource_added? ? "x" : "check", class: "icon--small", aria_label: vote_button_label, role: "img") %> </button> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-lausanne-budgets-0.1.0 | app/cells/decidim/lausanne/budgets/project_list_item/project_data_vote_button.erb |