-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bump version * try to add nokogiri 1.18.1 for rails 7.1 * revert try to add nokogiri 1.18.1 for rails 7.1 * table cells are always inputs * update test * bump version * version and changelog
- Loading branch information
Showing
6 changed files
with
33 additions
and
46 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
<%# locals: (attribute:, model:, record:) %> | ||
|
||
<%= turbo_frame_tag "#{dom_id record}-#{attribute}" do %> | ||
<div data-controller="editable-attribute" | ||
data-editable-attribute-broadcast-url-value="<%= broadcast_edit_intent_path %>" | ||
data-editable-attribute-resource-name-value="<%= model.table_name %>" | ||
data-editable-attribute-resource-id-value="<%= record.id %>"> | ||
<div class="readonly-attribute" | ||
data-editable-attribute-target="readonlyAttribute" | ||
data-action="click->editable-attribute#displayInputField" | ||
role="button"> | ||
<%= record.public_send attribute %> | ||
</div> | ||
|
||
<div data-editable-attribute-target="attributeForm" style="display:none"> | ||
<%= form_for record, url: "#{root_path}#{model.table_name}/#{record.id}" do |f| %> | ||
<%= f.text_field attribute, class: "editable-input", data: { | ||
editable_attribute_target: "attributeFormInput", | ||
action: "keydown.enter->editable-attribute#submitForm blur->editable-attribute#submitForm" | ||
} %> | ||
<% end %> | ||
</div> | ||
</div> | ||
<%= form_for record, url: "#{root_path}#{model.table_name}/#{record.id}", | ||
html: { 'data-controller': "editable-attribute", | ||
'data-editable-attribute-broadcast-url-value': broadcast_edit_intent_path, | ||
'data-editable-attribute-resource-name-value': model.table_name, | ||
'data-editable-attribute-resource-id-value': record.id, | ||
'data-editable-attribute-resource-initial-value-value': record.public_send(attribute) } do |f| %> | ||
<%= f.text_field attribute, class: "editable-input", data: { | ||
editable_attribute_target: "attributeFormInput", | ||
action: "keydown.enter->editable-attribute#submitForm blur->editable-attribute#submitForm" | ||
} %> | ||
<% end %> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Hotsheet | ||
VERSION = "0.1.0" | ||
VERSION = "0.1.1" | ||
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