Show extrafield separator in propale
This commit is contained in:
parent
b36b776f10
commit
7a16e1b658
@ -1360,11 +1360,20 @@ if ($action == 'create')
|
|||||||
foreach($extrafields->attribute_label as $key=>$label)
|
foreach($extrafields->attribute_label as $key=>$label)
|
||||||
{
|
{
|
||||||
$value=(isset($_POST["options_".$key])?$_POST["options_".$key]:$object->array_options["options_".$key]);
|
$value=(isset($_POST["options_".$key])?$_POST["options_".$key]:$object->array_options["options_".$key]);
|
||||||
print '<tr><td';
|
|
||||||
if (! empty($extrafields->attribute_required[$key])) print ' class="fieldrequired"';
|
// Show separator only
|
||||||
print '>'.$label.'</td><td colspan="3">';
|
if ($extrafields->attribute_type[$key] == 'separate')
|
||||||
print $extrafields->showInputField($key,$value);
|
{
|
||||||
print '</td></tr>'."\n";
|
print $extrafields->showSeparator($key);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<tr><td';
|
||||||
|
if (! empty($extrafields->attribute_required[$key])) print ' class="fieldrequired"';
|
||||||
|
print '>'.$label.'</td><td colspan="3">';
|
||||||
|
print $extrafields->showInputField($key,$value);
|
||||||
|
print '</td></tr>'."\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1854,19 +1863,25 @@ else
|
|||||||
foreach($extrafields->attribute_label as $key=>$label)
|
foreach($extrafields->attribute_label as $key=>$label)
|
||||||
{
|
{
|
||||||
$value=(isset($_POST["options_".$key])?$_POST["options_".$key]:$object->array_options["options_".$key]);
|
$value=(isset($_POST["options_".$key])?$_POST["options_".$key]:$object->array_options["options_".$key]);
|
||||||
print '<tr><td';
|
if ($extrafields->attribute_type[$key] == 'separate')
|
||||||
if (! empty($extrafields->attribute_required[$key])) print ' class="fieldrequired"';
|
{
|
||||||
print '>'.$label.'</td><td colspan="3">';
|
print $extrafields->showSeparator($key);
|
||||||
if ($action == 'edit_extras' && $user->rights->propal->creer)
|
}
|
||||||
{
|
else
|
||||||
print $extrafields->showInputField($key,$value);
|
{
|
||||||
}
|
print '<tr><td';
|
||||||
else
|
if (! empty($extrafields->attribute_required[$key])) print ' class="fieldrequired"';
|
||||||
{
|
print '>'.$label.'</td><td colspan="3">';
|
||||||
print $extrafields->showOutputField($key,$value);
|
if ($action == 'edit_extras' && $user->rights->propal->creer)
|
||||||
}
|
{
|
||||||
|
print $extrafields->showInputField($key,$value);
|
||||||
print '</td></tr>'."\n";
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $extrafields->showOutputField($key,$value);
|
||||||
|
}
|
||||||
|
print '</td></tr>'."\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(count($extrafields->attribute_label) > 0) {
|
if(count($extrafields->attribute_label) > 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user