Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user can rearrange the elements of a form from the form screen #50

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

imilas
Copy link
Collaborator

@imilas imilas commented Feb 17, 2014

and the page automatically saves the order of the elements

@@ -79,12 +83,69 @@ public function render() {
. "' method='" . $this->getMethod()
. "' onsubmit='return xoopsFormValidate_" . $ele_name . "();'" . $this->getExtra() . ">
<div class='xo-theme-form'>
<table width='100%' class='outer' cellspacing='1'>
<head>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The form is rendered inside a page controlled by something else higher up. So we can't recreate a section here. Though you can just include .js files at any point in the page, you don't have to include in them in the , that's just good form to do so. But it will work from anywhere.

In our case, the best place to put these inclusions is probably the drawJavascript function in modules/formulize/include/formdisplay.php.

@jegelstaff jegelstaff closed this Nov 11, 2023
@jegelstaff jegelstaff deleted the dev.Amir.reorderElements branch November 11, 2023 20:55
@jegelstaff jegelstaff restored the dev.Amir.reorderElements branch November 12, 2023 21:59
@jegelstaff jegelstaff reopened this Nov 12, 2023
@jegelstaff
Copy link
Owner

Actually, this one should go forward. Front side editing of the order would be very good, in conjunction with independent ordering of elements in the multipage screen. Whether this exact code is used, the concepts and some architecture are relevant.

@jegelstaff
Copy link
Owner

jegelstaff commented Nov 12, 2023

See also: #81 and #384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants