1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Admin Notify - gui alignment fix for when selecting the 'email' option.

This commit is contained in:
Cameron 2014-07-02 21:38:47 -07:00
parent 4e4cc52215
commit 9ccc6dd78b
2 changed files with 3 additions and 8 deletions

View File

@ -297,7 +297,7 @@ class notify_config
$text = "
<tr>
<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."');\" ");
if($this -> notify_prefs['event'][$id]['class'] == 'email')
@ -311,7 +311,7 @@ class notify_config
$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."][legacy]", $legacy); // function or method

View File

@ -340,12 +340,7 @@ class e_form
function email($name, $value, $maxlength = 200, $options = array())
{
$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
return "<input type='email' name='{$name}' value='{$value}' maxlength='{$maxlength}' ".$this->get_attributes($options, $name)." />
";