Have 1 help link for the entire compose page
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 30 Oct 2009 21:17:16 +0000 (15:17 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 30 Oct 2009 21:17:22 +0000 (15:17 -0600)
imp/compose.php
imp/templates/compose/compose.html

index a54a9bd..61d8fdc 100644 (file)
@@ -916,10 +916,9 @@ if ($redirect) {
     if ($conf['user']['allow_folders'] && !$readonly_drafts) {
         $t->set('save_draft_ak', Horde::getAccessKeyAndTitle(_("Save _Draft")));
     }
-    $t->set('help_buttons', Horde_Help::link('imp', 'compose-buttons'));
+    $t->set('help', Horde_Help::link('imp', 'compose-buttons'));
     $t->set('di_locked', $prefs->isLocked('default_identity'));
     if ($t->get('di_locked')) {
-        $t->set('help_compose-from', Horde_Help::link('imp', 'compose-from'));
         $t->set('fromaddr_locked', $prefs->isLocked('from_addr'));
         try {
             $t->set('from', htmlspecialchars($identity->getFromLine(null, Horde_Util::getFormData('from'))));
@@ -932,7 +931,6 @@ if ($redirect) {
     } else {
         $select_list = $identity->getSelectList();
         $t->set('identity_label', Horde::label('identity', _("_Identity")));
-        $t->set('help_compose-from', Horde_Help::link('imp', 'compose-identity'));
         $t->set('last_identity', $identity->getDefault());
         $t->set('count_select_list', count($select_list) > 1);
         if (count($select_list) > 1) {
@@ -999,7 +997,6 @@ if ($redirect) {
             $addr['multiple'] = false;
             $addr['input_tabindex'] = ++$tabindex;
             $addr['input_value'] = htmlspecialchars($header[$val]);
-            $addr['help_compose'] = Horde_Help::link('imp', 'compose-' . $val);
         }
         $address_array[] = $addr;
     }
@@ -1020,7 +1017,6 @@ if ($redirect) {
             $charset_array[] = array('value' => $charset, 'selected' => (strtolower($charset) == strtolower($encoding)), 'label' => $label);
         }
         $t->set('charset_array', $charset_array);
-        $t->set('help_compose_charset', Horde_Help::link('imp', 'compose-charset'));
     }
     if ($t->get('set_priority')) {
         $t->set('priority_label', Horde::label('priority', _("_Priority")));
@@ -1039,7 +1035,6 @@ if ($redirect) {
             $priority_option[] = array('val' => $key, 'label' => $val, 'selected' => ($priority == $key));
         }
         $t->set('pri_opt', $priority_option);
-        $t->set('help_priority', Horde_Help::link('imp', 'compose-priority'));
     }
 
     $t->set('stationery', !empty($stationery_list));
@@ -1084,7 +1079,6 @@ if ($redirect) {
         );
     }
     $t->set('compose_options', $compose_options);
-    $t->set('help_options', Horde_Help::link('imp', 'compose-options'));
 
     $t->set('ssm', ($conf['user']['allow_folders'] && !$prefs->isLocked('save_sent_mail')));
     if ($t->get('ssm')) {
index 7717e55..5252f7d 100644 (file)
@@ -4,7 +4,10 @@
 <input type="hidden" name="<tag:hidden.n />" value="<tag:hidden.v />" id="<tag:hidden.n />" />
 </loop:hidden>
 
-<h1 class="header"><tag:title /></h1>
+<h1 class="header">
+ <div class="rightFloat"><tag:help /></div>
+ <tag:title />
+</h1>
 
 <br />
 
@@ -22,7 +25,6 @@
 </if:save_draft_ak>
    <input name="btn_cancel_compose" type="submit" title="<gettext>Cancel Message</gettext>" class="button" value="<gettext>Cancel Message</gettext>" />
   </td>
-  <td class="rightAlign"><tag:help_buttons />&nbsp;</td>
  </tr>
 
  <tr>
@@ -48,7 +50,6 @@
 </else:count_select_list></if:count_select_list>
 </else:di_locked></if:di_locked>
   </td>
-  <td class="item rightAlign"><tag:help_compose-from />&nbsp;</td>
  </tr>
 
 <loop:addr>
   <td class="light rightAlign"><strong><tag:addr.label />&nbsp;</strong></td>
 <if:addr.multiple>
 <loop:addr.hdrs>
-<if:addr.hdrs.help><else:addr.hdrs.help>
  </tr>
  <tr>
   <td class="light">&nbsp;</td>
-</else:addr.hdrs.help></if:addr.hdrs.help>
 <if:addr.hdrs.multiple>
   <td class="item">
    <select id="<tag:addr.id />" tabindex="<tag:addr.hdrs.select_tabindex />" name="<tag:addr.id />_list[<tag:addr.hdrs.select_name />]" style="width:350px;direction:ltr">
@@ -75,7 +74,6 @@
    <input type="text" id="<tag:addr.id />" autocomplete="off" tabindex="<tag:addr.hdrs.input_tabindex />" name="<tag:addr.id />_field[]" value="<tag:addr.hdrs.input_value />" style="direction:ltr" />
 </else:addr.hdrs.multiple></if:addr.hdrs.multiple>
   </td>
-  <td class="rightAlign"><if:addr.hdrs.help><tag:addr.hdrs.help /></if:addr.hdrs.help>&nbsp;</td>
 </loop:addr.hdrs>
 <else:addr.multiple>
   <td class="item addressTr">
@@ -83,7 +81,6 @@
    <span id="<tag:addr.id />_loading_img" style="display:none;" class="loadingImg"></span>
    <div id="<tag:addr.id />_results" class="autocomplete"></div>
   </td>
-  <td class="item rightAlign"><tag:addr.help_compose />&nbsp;</td>
 </else:addr.multiple></if:addr.multiple>
  </tr>
 </loop:addr>
@@ -93,7 +90,6 @@
   <td class="item">
    <input type="text" id="subject" tabindex="<tag:subject_tabindex />" name="subject" value="<tag:subject />" />
   </td>
-  <td class="item rightAlign"><tag:help-subject />&nbsp;</td>
  </tr>
 
 <if:unlocked_charset>
 </loop:charset_array>
    </select>
   </td>
-  <td class="item rightAlign"><tag:help_compose_charset />&nbsp;</td>
  </tr>
 </if:unlocked_charset>
 
 </loop:pri_opt>
    </select>
   </td>
-  <td class="item rightAlign"><tag:help_priority />&nbsp;</td>
  </tr>
 </if:set_priority>
 
     </tr>
    </table>
   </td>
-  <td class="item rightAlign"><tag:help_options />&nbsp;</td>
  </tr>
 
 <if:ssm>
 </if:save_draft_ak>
    <input name="btn_cancel_compose" type="submit" title="<gettext>Cancel Message</gettext>" class="button" value="<gettext>Cancel Message</gettext>" />
   </td>
-  <td class="rightAlign"><tag:help_buttons />&nbsp;</td>
  </tr>
 
 <if:use_encrypt>
     <tag:encrypt_options />
    </select>
   </td>
-  <td class="item rightAlign"><tag:help-encrypt />&nbsp;</td>
  </tr>
 </if:use_encrypt>
 
    <input id="pap" type="checkbox" class="checkbox" name="pgp_attach_pubkey" <if:pgp_attach_pubkey>checked="checked" </if:pgp_attach_pubkey>/>
    <tag:pap />
   </td>
-  <td class="item rightAlign"><tag:help-pubkey />&nbsp;</td>
  </tr>
 </if:pgp_options>
 
 </else:maxattachsize></if:maxattachsize>
   <td class="rightAlign">
    <input type="submit" name="btn_add_attachment" class="button" value="<gettext>Update</gettext>" />
-   &nbsp;<tag:help-attachments />
   </td>
  </tr>
 
     <option value="1"<if:attach_options.select_yes> selected="selected"</if:attach_options.select_yes>><gettext>Yes</gettext></option>
     <option value="0"<if:attach_options.select_no> selected="selected"</if:attach_options.select_no>><gettext>No</gettext></option>
    </select>
-   &nbsp;<tag:attach_options.help />
   </td>
  </tr>
 </loop:attach_options>
 
 <div align="center">
  <div class="smallheader leftAlign">
-  <gettext>Current Attachments</gettext> (<gettext>Total Size:</gettext> <tag:total_attach_size /> <gettext>KB</gettext><if:perc_attach> / <tag:perc_attach /></if:perc_attach>) <tag:help-current-attachments />
+  <gettext>Current Attachments</gettext> (<gettext>Total Size:</gettext> <tag:total_attach_size /> <gettext>KB</gettext><if:perc_attach> / <tag:perc_attach /></if:perc_attach>)
  </div>
 
  <table class="leftAlign" cellspacing="0">