Fix submit photo is no more hidden on smartphone.
This commit is contained in:
parent
4619040983
commit
08c379ad58
@ -972,8 +972,8 @@ else
|
||||
print '</td></tr>';
|
||||
|
||||
// Photo
|
||||
print '<tr class="hideonsmartphone">';
|
||||
print '<td>'.fieldLabel('Photo','photoinput').'</td>';
|
||||
print '<tr>';
|
||||
print '<td>'.$langs->trans("PhotoFile").'</td>';
|
||||
print '<td colspan="3">';
|
||||
if ($object->photo) {
|
||||
print $form->showphoto('contact',$object);
|
||||
|
||||
@ -5765,7 +5765,7 @@ class Form
|
||||
if ($caneditfield)
|
||||
{
|
||||
if ($object->photo) $ret.="<br>\n";
|
||||
$ret.='<table class="nobordernopadding hideonsmartphone">';
|
||||
$ret.='<table class="nobordernopadding">';
|
||||
if ($object->photo) $ret.='<tr><td align="center"><input type="checkbox" class="flat photodelete" name="deletephoto" id="photodelete"> '.$langs->trans("Delete").'<br><br></td></tr>';
|
||||
$ret.='<tr><td>'.$langs->trans("PhotoFile").'</td></tr>';
|
||||
$ret.='<tr><td><input type="file" class="flat" name="photo" id="photoinput"></td></tr>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user