-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from lnu-norge/inline-editing-facilities
Inline editing for facilities
- Loading branch information
Showing
23 changed files
with
325 additions
and
303 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
a, | ||
.link { | ||
@apply cursor-pointer; | ||
@apply text-pink-700; | ||
@apply rounded; | ||
&:hover { | ||
|
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
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
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
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
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
28 changes: 28 additions & 0 deletions
28
app/views/facility_reviews/_facility_with_edit_button.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<%# locals: (title:, tooltip:, space_id:, facility_review:, experience:, facility_category_id:, facility_id:, description: %> | ||
<%= turbo_frame_tag dom_id(facility_review, "category_#{facility_category_id}__facility_#{facility_id}__") do %> | ||
<%= link_to new_facility_review_path( | ||
space_id:, | ||
facility_id:, | ||
facility_category_id:, | ||
), | ||
title: tooltip, | ||
class: 'unstyled-link inline-flex gap-2 items-center collapsable-wrapper' do %> | ||
|
||
<h4 class="text-base <%= "line-through text-gray-600" if experience == "impossible" %>"><%= title %></h4> | ||
|
||
<%= inline_svg_tag "facility_status/#{experience}", class: "#{" text-black " if experience == "impossible" }" %> | ||
|
||
<span class="edit-button edit-button--small collapsable"> | ||
<span class="text"> | ||
<%= t('space_edit.edit') %> | ||
</span> | ||
<%= inline_svg_tag 'edit', alt: t('space_edit.edit'), title: t('space_edit.edit') %> | ||
</span> | ||
<% end %> | ||
<% unless description.nil? %> | ||
<div class="text-gray-400 mb-1.5"> | ||
<%= description %> | ||
</div> | ||
<% end %> | ||
<% end %> |
Oops, something went wrong.