Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.The Encryption options take up quite some space on the node/add/site form.
It would be nice if most of the options were hidden until 'Enabled' is selected.

| Comment | File | Size | Author |
|---|---|---|---|
| #7 | refactor_ssl_forms-2407885-7.patch | 1.51 KB | helmo |
| create_site_ssl_form.png | 77.52 KB | helmo |











Comments
Comment #1
helmo CreditAttribution: helmo commentedTwo related errors...
On site node edit:
Illegal choice 0 in Encryption key element.On a verify task:
WD node: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'ssl_key' cannot be null: UPDATE {hosting_ssl_site} SET ssl_enabled=:db_update_placeholder_0, ssl_key=:db_update_placeholder_1 WHERE (vid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => 0 [:db_update_placeholder_1] => [:db_condition_placeholder_0] => 4234 ) in hosting_ssl_nodeapi_site_update() (line 288 of /data2/aegir/hostmaster-7.x-3.x-4/profiles/hostmaster/modules/contrib/hosting/web_server/ssl/hosting_ssl.nodeapi.inc).Comment #3
helmo CreditAttribution: helmo at Initfour websolutions commentedComment #4
ergonlogicI've moved SSL fields into a fieldset, so as not to have them always float to the top of the site form. Also, fields are dependant on the state of other fields, though this is possibly causing some issues with pre-populating the key name field with the site name.
Comment #5
helmo CreditAttribution: helmo at Initfour websolutions commentedThe wrapper fieldset works OK.
About 'pre-populating the key name field with the site name.' it seems that hosting_ssl_hosting_site_options_alter() is not run.
If I add ?platform=136 (by clicking through a platform page) no platform is pre-selected.
Comment #7
helmo CreditAttribution: helmo at Initfour websolutions commentedThis patch fixes the "Illegal choice 0 in Encryption key element."
Comment #8
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedI think we need the patch for 3.1.
Comment #9
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedWorks great!
Comment #10
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedNeeds rerolling after the "key disabled" fix.
Comment #12
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedRerolled and pushed to 7.x-3.x.