Changeset 4758

Show
Ignore:
Timestamp:
08/07/07 22:12:38 (6 years ago)
Author:
gregmac
Message:

Add images to reload-related buttons, add "retry" button to reload response screen, center buttons

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.3/amp_conf/htdocs/admin/common/mainstyle.css

    r4742 r4758  
    6666  color:white; 
    6767  font-weight:bold; 
     68} 
     69.attention img {  
     70  vertical-align:top; 
    6871} 
    6972div.attention { 
     
    705708  text-align:center; 
    706709} 
     710#reloadBox a:hover { 
     711  color:white; 
     712} 
    707713#reload_confirm { 
    708714  padding: 0em 1em 0em 1em; 
     
    713719#reload_confirm ul li { 
    714720  margin-top:0.4em; 
    715 } 
    716 #reload_confirm ul li a:hover { 
    717   color:white; 
    718721} 
    719722#reload_reloading { 
     
    739742#reload_response div.moreinfo pre { 
    740743  font-size:70%; 
     744} 
     745#reload_response div.buttons { 
     746  text-align:center; 
     747  padding-top:10px; 
    741748} 
    742749 
  • freepbx/branches/2.3/amp_conf/htdocs/admin/views/freepbx_reload.php

    r4743 r4758  
    4242   
    4343  function run_reload() { 
    44      
    45     $("#reload_confirm").slideUp(150, function() { 
     44    // figure out which div to slideup (hide):  
     45    // reload_confirm (normally), or reload_response (on a Retry) 
     46    closeobj = $('#reload_confirm'); 
     47    if (closeobj.css('display') == 'none') { 
     48      closeobj = $('#reload_response'); 
     49    } 
     50 
     51    closeobj.slideUp(150, function() { 
    4652      $("#reload_reloading").slideDown(150, function() { 
    4753       
     
    6571              } 
    6672             
    67               responsetext += '</div> <div><a id="reload_response_close_btn" href="#" onclick="freepbx_stop_reload();">Close</a></div>'; 
     73              responsetext += '</div>' + 
     74                              '<div class="buttons"><a id="reload_response_close_btn" href="#" onclick="freepbx_stop_reload();"><img src="images/cancel.png" height="16" width="16" border="0" alt="Close" />&nbsp;Close</a>'+ 
     75                              '&nbsp;&nbsp;&nbsp;<a id="reload_retry_btn" href="#" onclick="run_reload();"><img src="images/arrow_rotate_clockwise.png" height="16" width="16" border="0" alt="Retry" />&nbsp;Retry</a> </div>'; 
    6876 
    6977              $('#reload_response').html(responsetext); 
  • freepbx/branches/2.3/amp_conf/htdocs/admin/views/freepbx_reloadbar.php

    r4448 r4758  
    11<?php 
    2    echo "\n\t\t<div class=\"attention\" id=\"need_reload_block\"><a href=\"#\" onclick=\"freepbx_show_reload();\" class=\"info\">"; 
    3    //echo "\n\t\t<div class=\"attention\" id=\"need_reload_block\"><a href=\"#TB_inline?height=155&amp;width=300&amp;inlineId=reloadBox&amp;modal=true\" class=\"info thickbox\">"
    4    echo _("Apply Configuration Changes"); 
    5    echo "<span>".sprintf(_("You have made changes to the configuration that have not yet been applied. When you are ". 
     2echo "\n\t\t<div class=\"attention\" id=\"need_reload_block\"><a href=\"#\" onclick=\"freepbx_show_reload();\" class=\"info\">"; 
     3echo '<img src="images/database_gear.png" height="16" width="16" border="0" alt="'._('Reload Required').'" title="'._('Reload Required').'" />&nbsp;'
     4echo _("Apply Configuration Changes"); 
     5echo "<span>".sprintf(_("You have made changes to the configuration that have not yet been applied. When you are ". 
    66             "finished making all changes, click on %s to put them into effect."), "<strong>"._("Apply Configuration Changes")."</strong>"); 
    7    echo "</span></a></div>\n\n"; 
     7echo "</span></a></div>\n\n"; 
    88?>