I read the Drupal 6 review Dries linked to on the list and found one UI issue that sounds really trivial to implement (among a lot of others that would entail one horrible mess). If the string freeze hasn't come and gone yet, would the following be up for consideration (if strings are frozen, sorry for living under a rock)? I find myself at least partly in agreement with the principle that a "yes/no" option is best turned into a checkbox, not two radio buttons:

Preview Post... This is where one-line options would really improve Drupal's interface. All you need is the line: "Must users preview posts before submitting? Yes No "

This is more of a concept question, so instead of rolling a hard to read patch (which anyone could), here's a clear view of the form element that would be replaced.

  $form['node_preview'] = array(
    '#type' => 'radios', '#title' => t('Preview post'), '#default_value' => variable_get('node_preview', 0),
    '#options' => array(t('Optional'), t('Required')), '#description' => t('Must users preview posts before submitting?')
  );
  $form['node_preview'] = array(
    '#type' => 'checkbox', 
    '#title' => t('Require users to preview posts before submitting'), 
    '#return_value' => 1, 
    '#default_value' => variable_get('node_preview', 0),
  );

(Disregard code-style differences)

Comments

Gábor Hojtsy’s picture

Actually, the code style difference makes it better. Actually I think these kind of form elements (before patch) are done because they look better in their surroundings. So a visual look of how the new option looks might be good also.

cburschka’s picture

Here is a comparison: radio buttons (current), and checkbox (proposed).

Now that I see it, I'm not so sure. It's certainly less cluttered, but singular checkboxes look a bit lost sometimes...

Gábor Hojtsy’s picture

The difference here would probably be that the checkbox does not tell, that the preview would be there (optionally) even if not required. So a help text to that effect might help. But then again, people don't read help text, and that's why UI patches try to get as much into the option itself as possible. I think this could be a motivation behind the radio buttons.

eMPee584’s picture

To spam in my opinion, imho the way it is now is more elegant as it conveys more information (as Gabor stated, optional is telling more than just 'not required' which could also imply 'not avaiable'). It also looks more visually balanced and is easier to digest than a small checkbox with a long description one has to read and mind-process..

dpearcefl’s picture

Is this issue something we want to pursue in D8? If it is applicable that is...

Doud’s picture

It would also be very nice to have this feature implemented at the content type level, manageable per content type.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.