CSS
This commit is contained in:
parent
68234c4097
commit
432468950b
@ -165,9 +165,10 @@ class FormWebsite
|
||||
* @param int $useempty 1=Add an empty value in list
|
||||
* @param string $moreattrib More attributes on HTML select tag
|
||||
* @param int $addjscombo Add js combo
|
||||
* @param string $morecss More css
|
||||
* @return string HTML select component with list of type of containers
|
||||
*/
|
||||
public function selectSampleOfContainer($htmlname, $selected = '', $useempty = 0, $moreattrib = '', $addjscombo = 0)
|
||||
public function selectSampleOfContainer($htmlname, $selected = '', $useempty = 0, $moreattrib = '', $addjscombo = 0, $morecss = 'minwidth200')
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
|
||||
@ -190,7 +191,7 @@ class FormWebsite
|
||||
}
|
||||
|
||||
$out = '';
|
||||
$out .= '<select id="select'.$htmlname.'" class="flat selectTypeOfContainer minwidth200" name="'.$htmlname.'"'.($moreattrib ? ' '.$moreattrib : '').'>';
|
||||
$out .= '<select id="select'.$htmlname.'" class="selectSampleOfContainer'.($morecss? ' '.$morecss : '').'" name="'.$htmlname.'"'.($moreattrib ? ' '.$moreattrib : '').'>';
|
||||
|
||||
if ($useempty == 1 || $useempty == 2) {
|
||||
$out .= '<option value="-1"> </option>';
|
||||
|
||||
@ -3798,7 +3798,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties
|
||||
print '<tr><td class="titlefield fieldrequired">';
|
||||
print $langs->trans('WEBSITE_PAGE_EXAMPLE');
|
||||
print '</td><td>';
|
||||
print $formwebsite->selectSampleOfContainer('sample', (GETPOSTISSET('sample') ? GETPOST('sample', 'alpha') : 'empty'), 0, '', 1);
|
||||
print $formwebsite->selectSampleOfContainer('sample', (GETPOSTISSET('sample') ? GETPOST('sample', 'alpha') : 'empty'), 0, '', 1, 'minwidth300');
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
@ -3989,7 +3989,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties
|
||||
print '<tr><td>';
|
||||
print $langs->trans('PublicAuthorAlias');
|
||||
print '</td><td>';
|
||||
print '<input type="text" class="flat minwidth300" name="WEBSITE_AUTHORALIAS" value="'.dol_escape_htmltag($pageauthoralias).'">';
|
||||
print '<input type="text" class="flat minwidth300" name="WEBSITE_AUTHORALIAS" value="'.dol_escape_htmltag($pageauthoralias).'" placeholder="Anonymous">';
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user