Webform Theming

From Colettapedia
Jump to navigation Jump to search

Read This First

Thread on how you change the theme's style.css file, adding in the hooks for the webform fields

Directions from THEMING.txt

  1. Copy the "webform-form.tpl.php" file from the webform directory to your theme directory. You may rename this file "webform-form-[node id here].tpl.php" if you want to theme one particular webform on your site. Replace [node id here] with the node ID of the webform.
  2. Open up your new file and customize the webform however you like.
  3. Visit admin/settings/performance and click the "Clear cached data" button.
  4. All Webform forms have 2 main fieldsets: "submitted", and "details". Although you may move things around as you wish, keep all your components within the "submitted" fieldset. Only the "submitted" fieldset is displayed and Webform depends on the other two to operate properly, so don't mess with them unless you have good reason to do so (like you're forwarding your webform to a custom PHP or PERL script).

Givens

  • Piers Park Theme being used: A3 Atlantis

Webform To-Do

  1. Eliminate the review your past submission option.
  2. As we discussed yesterday we should have 1 form for Membership registration - which would be the detailed form and 1 form for the Course Registration.
  3. Membership form should have drop down menus for: Membership types. Course Dates and Course Categories should be drop down menus on Course page.
  4. On Membership registration form:
    1. First Name MI Last Name - on one line (DONE CEC Feb 10)
    2. Combine State Zip Country - on one line (DONE CEC Feb 10)
    3. Combine Phone - Home / Cell and Work - on one line (DONE CEC Feb 10)
    4. At top of the Registration page have the Membership options with drop down with options and pricing.
    5. Change passholder term to Member.
    6. On Contact info have E-mail be a mandatory entry.
    7. On Reg page delete first line "Please complete this form if you are over the age of 18, and you're interested in any of our adult daysailing, cruising and racing programs, or you want to sign up for any of our world-class learn-to-sail programs. (DONE CEC Feb 10)
    8. End the Reg page after check bix info about sailing experience. If they are new to sailing have them get directed to the course reg form.
    9. Change Instruction and Certification to Experience
    10. Have note to returning members about providing additional info for our new database.
    11. Move the Returning Member info to the bottom of the page, below the Experience info.