Fixed the attributes list and edition form
This commit is contained in:
parent
f919b88f58
commit
977630f995
3 changed files with 15 additions and 14 deletions
|
@ -15,7 +15,7 @@ function theme_storm_form_group($form) {
|
|||
}
|
||||
$rows[] = array('data' => $row, 'class' => 'formgroup');
|
||||
$class = 'formgroup' . (!empty($form['#attributes']['class']) ? ' ' . $form['#attributes']['class'] : '');
|
||||
|
||||
|
||||
if (!empty($form['#title'])) {
|
||||
$output .= '<fieldset class="group-storm-fieldset collapsible collapsed">';
|
||||
$output .= '<legend>' . $form['#title'] . '</legend>';
|
||||
|
@ -97,7 +97,7 @@ function theme_storm_view_item($label, $value) {
|
|||
global $language;
|
||||
|
||||
if (!empty($label)) {
|
||||
$o = '<div class="label"><span class="label">' . $label . ':</span></div>';
|
||||
$o = '<div class="label"><span class="label">' . $label . ':</span></div>';
|
||||
}
|
||||
if (empty($value) || (preg_match('/^<a href="(.*)"><\/a>$/i', $value))) { /*
|
||||
|| ($value == '<a href="http://"></a>')
|
||||
|
@ -473,7 +473,7 @@ function theme_storm_attribute_list($form) {
|
|||
$ischecked = '';
|
||||
}
|
||||
$domain_name = 'attribute_default_'. str_replace(' ', '|', $domain);
|
||||
$default_ctl = '<input type="radio" name="'. $domain_name .'" value="'. $key .'" '. $ischecked .'"/>';
|
||||
$default_ctl = '<input type="radio" name="'. $domain_name .'" value="'. $key .'" '. $ischecked .'/>';
|
||||
$data = array(
|
||||
$domain,
|
||||
check_markup(drupal_render($form['attributes'][$key]['attribute_akey_'. $key])),
|
||||
|
|
Reference in a new issue