-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: master
Are you sure you want to change the base?
Conversation
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> |
There was a problem hiding this comment.
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.
Conflicts: modules/formulize/include/formdisplay.php
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. |
and the page automatically saves the order of the elements