mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Admin Notify - gui alignment fix for when selecting the 'email' option.
This commit is contained in:
@@ -297,7 +297,7 @@ class notify_config
|
|||||||
$text = "
|
$text = "
|
||||||
<tr>
|
<tr>
|
||||||
<td >".$description.": </td>
|
<td >".$description.": </td>
|
||||||
<td class='nowrap'>
|
<td class='form-inline nowrap'>
|
||||||
".$uc->uc_dropdown('event['.$id.'][class]', varset($this->notify_prefs['event'][$id]['class'],255), "nobody,main,admin,member,classes,email","onchange=\"mail_field(this.value,'event_".$id."');\" ");
|
".$uc->uc_dropdown('event['.$id.'][class]', varset($this->notify_prefs['event'][$id]['class'],255), "nobody,main,admin,member,classes,email","onchange=\"mail_field(this.value,'event_".$id."');\" ");
|
||||||
|
|
||||||
if($this -> notify_prefs['event'][$id]['class'] == 'email')
|
if($this -> notify_prefs['event'][$id]['class'] == 'email')
|
||||||
@@ -311,7 +311,7 @@ class notify_config
|
|||||||
$value= "";
|
$value= "";
|
||||||
}
|
}
|
||||||
|
|
||||||
$text .= "<input type='text' style='width:180px;$disp' class='tbox' id='event_".$id."' name='event[".$id."][email]' value=\"".$value."\" />\n";
|
$text .= "<input type='text' style='width:200px;$disp' class='tbox' id='event_".$id."' name='event[".$id."][email]' value=\"".$value."\" />\n";
|
||||||
|
|
||||||
$text .= $frm->hidden("event[".$id."][include]", $include);
|
$text .= $frm->hidden("event[".$id."][include]", $include);
|
||||||
$text .= $frm->hidden("event[".$id."][legacy]", $legacy); // function or method
|
$text .= $frm->hidden("event[".$id."][legacy]", $legacy); // function or method
|
||||||
|
@@ -340,12 +340,7 @@ class e_form
|
|||||||
function email($name, $value, $maxlength = 200, $options = array())
|
function email($name, $value, $maxlength = 200, $options = array())
|
||||||
{
|
{
|
||||||
$options = $this->format_options('text', $name, $options);
|
$options = $this->format_options('text', $name, $options);
|
||||||
|
|
||||||
if(deftrue('BOOTSTRAP') === 3)
|
|
||||||
{
|
|
||||||
$options['class'] .= ' form-control';
|
|
||||||
}
|
|
||||||
|
|
||||||
//never allow id in format name-value for text fields
|
//never allow id in format name-value for text fields
|
||||||
return "<input type='email' name='{$name}' value='{$value}' maxlength='{$maxlength}' ".$this->get_attributes($options, $name)." />
|
return "<input type='email' name='{$name}' value='{$value}' maxlength='{$maxlength}' ".$this->get_attributes($options, $name)." />
|
||||||
";
|
";
|
||||||
|
Reference in New Issue
Block a user