Summary: | Allow folding sections in patron edition form | ||
---|---|---|---|
Product: | Koha | Reporter: | Fridolin Somers <fridolin.somers> |
Component: | Patrons | Assignee: | Bugs List <koha-bugs> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | gmcharlt, kyle.m.hall |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: | ||
Attachments: | Screenshot |
Description
Fridolin Somers
2020-02-28 11:59:42 UTC
Created attachment 99755 [details]
Screenshot
I've managed to add this behavior with JS customisation.
===
$(document).ready(function() {
if ($('#pat_memberentrygen').size()) {
// Prepare
$("fieldset").children("legend")
.addClass("bl-autorepli")
.append(' <i class="fa fa-caret-down"><i class="fa fa-caret-right" style="display:none">');
// Onclick
$("fieldset legend.bl-autorepli").on("click", function() {
$(this).siblings("ol,table").toggle();
$(this).children("i.fa").toggle();
});
// Hide by default
$("fieldset#memberentry_address, fieldset#memberentry_altaddress").children("legend.bl-autorepli").click();
}
});
===
Needs rework.
Feel free to propose a patch.
I wonder if this should be considered a duplicate of Bug 3137? |