-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c55daba
commit 65ba8b4
Showing
6 changed files
with
64 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
app/views/decidim/initiatives/initiatives/_author.html.erb
This file was deleted.
Oops, something went wrong.
111 changes: 47 additions & 64 deletions
111
app/views/decidim/initiatives/initiatives/_committee_members.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,56 @@ | ||
<fieldset> | ||
<legend><%= t ".title" %></legend> | ||
<div class="block"> | ||
<span class="font-semibold text-xl"><%= t ".link" %></span> | ||
<span class="help-text mb-2"> | ||
<%= t ".invite_to_committee_help" %> | ||
</span> | ||
|
||
<div class="card-section"> | ||
<div class="row column"> | ||
<%= t ".invite_to_committee_help" %> | ||
</div> | ||
|
||
<div class="row column"> | ||
<div class="card card--list"> | ||
<div class="card--list__item"> | ||
<div class="card--list__text"> | ||
<div> | ||
<h6 class="card--list__heading heading6 lowercase" id="committee_link"> | ||
<%= decidim_initiatives.new_initiative_committee_request_url(current_initiative) %> | ||
</h6> | ||
</div> | ||
</div> | ||
<div class="card--list__data"> | ||
<%= icon_link_to "clipboard", "#", t(".invite_to_committee_help"), class: "card--list__data__icon invite-users-link" %> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="initiative__form__committee"> | ||
<span> | ||
<%= decidim_initiatives.new_initiative_committee_request_url(current_initiative) %> | ||
</span> | ||
<div class="ml-auto fill-secondary inline-block"> | ||
<button type="button" class="button button__sm button__text-secondary" data-clipboard-copy="#urlShareLink-committee"> | ||
<%= render_committee_tooltip %> | ||
<span class="sr-only"><%= t("decidim.shared.share_modal.copy_share_link") %></span> | ||
</button> | ||
<input id="urlShareLink-committee" type="text" class="!hidden" value="<%= decidim_initiatives.new_initiative_committee_request_url(current_initiative) %>" readonly> | ||
</div> | ||
</div> | ||
<div class="card-section"> | ||
<div class="table-scroll"> | ||
<table class="table-list"> | ||
<thead> | ||
<tr> | ||
<th><%= t ".title" %></th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% if current_initiative.committee_members.empty? %> | ||
<tr> | ||
<td><%= t ".no_members_yet" %></td> | ||
<td></td> | ||
</tr> | ||
<% end %> | ||
</div> | ||
|
||
<% current_initiative.committee_members.each do |request| %> | ||
<tr data-id="<%= request.id %>"> | ||
<td> | ||
<%= link_to request.user&.name, "mailto:#{request.user&.email}" %> | ||
</td> | ||
<td class="table-list__actions"> | ||
<% if allowed_to? :approve, :initiative_committee_member, initiative: current_initiative, request: request %> | ||
<%= icon_link_to "check", | ||
approve_initiative_committee_request_path(current_initiative, request), | ||
t(".approve"), | ||
class: "action-icon--check" %> | ||
<div class="block"> | ||
<span class="font-semibold text-xl mb-4 block"><%= t ".title" %></span> | ||
<% if current_initiative.committee_members.empty? %> | ||
<%= t ".no_members_yet" %> | ||
<% end %> | ||
<% current_initiative.committee_members.each do |request| %> | ||
<div class="author mb-6" data-id="<%= request.id %>"> | ||
<div class="profile__group__list"> | ||
<%= card_for request.user %> | ||
<% if allowed_to? :approve, :initiative_committee_member, initiative: current_initiative, request: request %> | ||
<%= link_to( | ||
approve_initiative_committee_request_path(current_initiative, request), | ||
data: { confirm: t(".confirm_approve") }, | ||
class: "button button__sm button__transparent-secondary" | ||
) do %> | ||
<span><%= t(".approve") %></span> | ||
<%= icon "check-line" %> | ||
<% end %> | ||
|
||
<% if allowed_to? :revoke, :initiative_committee_member, initiative: current_initiative, request: request %> | ||
<%= icon_link_to "circle-x", | ||
revoke_initiative_committee_request_path(current_initiative, request), | ||
t(".revoke"), | ||
class: "action-icon--remove", | ||
method: :delete, | ||
data: { confirm: t(".confirm_revoke") } %> | ||
<% end %> | ||
<% if allowed_to? :revoke, :initiative_committee_member, initiative: current_initiative, request: request %> | ||
<%= link_to( | ||
revoke_initiative_committee_request_path(current_initiative, request), | ||
method: :delete, | ||
data: { confirm: t(".confirm_revoke") }, | ||
class: "button button__sm button__transparent-secondary" | ||
) do %> | ||
<span><%= t(".revoke") %></span> | ||
<%= icon "forbid-line" %> | ||
<% end %> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</fieldset> | ||
<% end %> | ||
</div> | ||
|
||
<%= append_javascript_pack_tag "decidim_initiatives_admin" %> |
37 changes: 0 additions & 37 deletions
37
app/views/decidim/proposals/proposals/_linked_proposals.html.erb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.