-
-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/proposals-private-notes-replies' into staging-lot2
- Loading branch information
Showing
7 changed files
with
69 additions
and
75 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
6 changes: 3 additions & 3 deletions
6
decidim-proposals/app/views/decidim/proposals/admin/proposal_notes/_form.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,7 +1,7 @@ | ||
<%= decidim_form_for(@notes_form, url: form_path, html: { class: "form form-defaults new_proposal_note" }) do |f| %> | ||
<%= decidim_form_for(@notes_form, url: form_path, html: { class: "form form-defaults new_proposal_note flex flex-col mt-4" }) do |f| %> | ||
<div class="form__wrapper"> | ||
<%= f.text_area :body, rows: 4, label: t(".note"), class: "rounded border border-text-gray-2 mt-2 js-mentions" %> | ||
<%= f.text_area :body, rows: 4, label: t(".note"), class: "js-mentions" %> | ||
</div> | ||
|
||
<%= f.submit t(".submit"), class: "button button__sm button__secondary" %> | ||
<%= f.submit t(".submit"), class: "button button__sm button__secondary ml-auto" %> | ||
<% end %> |
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
12 changes: 3 additions & 9 deletions
12
...-proposals/app/views/decidim/proposals/admin/proposal_notes/_proposal_note_reply.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
16 changes: 4 additions & 12 deletions
16
decidim-proposals/app/views/decidim/proposals/admin/proposal_notes/_proposal_notes.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,21 +1,13 @@ | ||
<div class="component__show_notes" data-component="accordion" id="accordion-notes"> | ||
<button class="card-divider-button" data-controls="panel-notes" type="button"> | ||
<button type="button" class="card-divider-button" data-controls="panel-notes" data-open="true"> | ||
<%= icon "arrow-right-s-line" %> | ||
<h2 class="card-title"> | ||
<%= t("title", scope: "decidim.proposals.admin.proposal_notes") %> | ||
</h2> | ||
</button> | ||
|
||
<div id="panel-notes"> | ||
<div class="component__show_notes-grid"> | ||
<%= render partial: "decidim/proposals/admin/proposal_notes/proposal_note", collection: proposal.notes.not_reply %> | ||
</div> | ||
<div class="card add-comment"> | ||
<div class="card-divider"> | ||
<h2 class="card-title"><%= t("leave_your_note", scope: "decidim.proposals.admin.proposal_notes") %></h2> | ||
</div> | ||
<div class="card-section"> | ||
<%= render partial: "decidim/proposals/admin/proposal_notes/form", locals: { form_path: proposal_proposal_notes_path(proposal, @notes_form) } %> | ||
</div> | ||
</div> | ||
<%= render partial: "decidim/proposals/admin/proposal_notes/proposal_note", collection: proposal.notes.not_reply %> | ||
<%= render partial: "decidim/proposals/admin/proposal_notes/form", locals: { form_path: proposal_proposal_notes_path(proposal, @notes_form) } %> | ||
</div> | ||
</div> |
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 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