Issue #1818082 by damiankloip, dawehner, Bojhan, yoroy: People miss view name field.
parent
238ffe4f74
commit
49d6255e3a
|
|
@ -217,7 +217,7 @@ abstract class WizardPluginBase extends PluginBase implements WizardInterface {
|
||||||
'#title' => t('Create a page'),
|
'#title' => t('Create a page'),
|
||||||
'#type' => 'checkbox',
|
'#type' => 'checkbox',
|
||||||
'#attributes' => array('class' => array('strong')),
|
'#attributes' => array('class' => array('strong')),
|
||||||
'#default_value' => TRUE,
|
'#default_value' => FALSE,
|
||||||
'#id' => 'edit-page-create',
|
'#id' => 'edit-page-create',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ class WizardTest extends WizardTestBase {
|
||||||
$view['human_name'] = $this->randomName(16);
|
$view['human_name'] = $this->randomName(16);
|
||||||
$view['name'] = strtolower($this->randomName(16));
|
$view['name'] = strtolower($this->randomName(16));
|
||||||
$view['show[wizard_key]'] = 'comment';
|
$view['show[wizard_key]'] = 'comment';
|
||||||
|
$view['page[create]'] = TRUE;
|
||||||
$view['page[path]'] = $this->randomName(16);
|
$view['page[path]'] = $this->randomName(16);
|
||||||
|
|
||||||
// Just triggering the saving should automatically choose a proper row
|
// Just triggering the saving should automatically choose a proper row
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,12 @@ class ViewAddFormController extends ViewFormControllerBase {
|
||||||
$form['#attached']['js'][] = drupal_get_path('module', 'views_ui') . '/js/views-admin.js';
|
$form['#attached']['js'][] = drupal_get_path('module', 'views_ui') . '/js/views-admin.js';
|
||||||
$form['#attributes']['class'] = array('views-admin');
|
$form['#attributes']['class'] = array('views-admin');
|
||||||
|
|
||||||
$form['human_name'] = array(
|
$form['name'] = array(
|
||||||
|
'#type' => 'fieldset',
|
||||||
|
'#attributes' => array('class' => array('fieldset-no-legend')),
|
||||||
|
);
|
||||||
|
|
||||||
|
$form['name']['human_name'] = array(
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => t('View name'),
|
'#title' => t('View name'),
|
||||||
'#required' => TRUE,
|
'#required' => TRUE,
|
||||||
|
|
@ -38,21 +43,21 @@ class ViewAddFormController extends ViewFormControllerBase {
|
||||||
'#default_value' => '',
|
'#default_value' => '',
|
||||||
'#maxlength' => 255,
|
'#maxlength' => 255,
|
||||||
);
|
);
|
||||||
$form['name'] = array(
|
$form['name']['name'] = array(
|
||||||
'#type' => 'machine_name',
|
'#type' => 'machine_name',
|
||||||
'#maxlength' => 128,
|
'#maxlength' => 128,
|
||||||
'#machine_name' => array(
|
'#machine_name' => array(
|
||||||
'exists' => 'views_get_view',
|
'exists' => 'views_get_view',
|
||||||
'source' => array('human_name'),
|
'source' => array('name', 'human_name'),
|
||||||
),
|
),
|
||||||
'#description' => t('A unique machine-readable name for this View. It must only contain lowercase letters, numbers, and underscores.'),
|
'#description' => t('A unique machine-readable name for this View. It must only contain lowercase letters, numbers, and underscores.'),
|
||||||
);
|
);
|
||||||
|
|
||||||
$form['description_enable'] = array(
|
$form['name']['description_enable'] = array(
|
||||||
'#type' => 'checkbox',
|
'#type' => 'checkbox',
|
||||||
'#title' => t('Description'),
|
'#title' => t('Description'),
|
||||||
);
|
);
|
||||||
$form['description'] = array(
|
$form['name']['description'] = array(
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => t('Provide description'),
|
'#title' => t('Provide description'),
|
||||||
'#title_display' => 'invisible',
|
'#title_display' => 'invisible',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue