-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check is_985, is_211, is_good when search.
- Loading branch information
Showing
3 changed files
with
40 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
class Universities::CheckBox < BaseComponent | ||
needs attribute : Avram::PermittedAttribute(Bool) | ||
needs id : String | ||
needs name : String | ||
needs description : String | ||
needs full_path : String | ||
|
||
def render | ||
label for: id, class: "s12 m8 input-field" do | ||
checkbox(attribute, "false", "true", id: id) | ||
label for: name, class: "m4 input-field" do | ||
input( | ||
type: "checkbox", | ||
name: name, | ||
value: "true", | ||
id: name, | ||
"hx-get": Index.path, | ||
"hx-target": "#main", | ||
"hx-select": "#main", | ||
"hx-push-url": "true", | ||
"hx-include": "[name='q']" | ||
) | ||
span description | ||
end | ||
mount Shared::FieldErrors, attribute | ||
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