Changeset 920

Show
Ignore:
Timestamp:
12/15/06 00:56:40 (2 years ago)
Author:
bchoate
Message:

Added padlock links to archive url/path fields. BugId: 45733

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/tmpl/cms/cfg_archives.tmpl

    r875 r920  
    4646} 
    4747function validate (f) { 
    48     f.site_url.disabled = false; 
    49     f.site_path.disabled = false; 
    5048    if (!f.site_path.value) { 
    5149        alert('<MT_TRANS phrase="You must set your Local Site Path." escape="singlequotes">'); 
     
    5856        return false; 
    5957    } 
     58    f.site_url.disabled = false; 
     59    f.site_path.disabled = false; 
     60    f.archive_path.disabled = false; 
     61    f.archive_url.disabled = false; 
    6062    return true; 
    6163} 
     
    262264<div class="label"><label for="archive_url"><MT_TRANS phrase="Archive URL:"></label></div> 
    263265<div class="field"> 
    264 <input name="archive_url" id="archive_url" value="<TMPL_VAR NAME=ARCHIVE_URL ESCAPE=HTML>" size="50" /> 
     266<input name="archive_url" id="archive_url" <TMPL_IF NAME=ARCHIVE_URL>disabled="disabled"</TMPL_IF> value="<TMPL_VAR NAME=ARCHIVE_URL ESCAPE=HTML>" size="50" /><TMPL_IF NAME=ARCHIVE_URL> <a href="#" title="<MT_TRANS phrase="Unlock this weblog's archive url for editing">" onclick="return toggleFile('archive_url')"><img src="<TMPL_VAR NAME=STATIC_URI>images/locked.gif" alt="Archive URL Lock" id="archive_url-lock" height="14" width="14" /></a> 
     267 
     268<p class="alert-warning-inline" id="archive_url-warning" style="display: none"> <img src="<TMPL_VAR NAME=STATIC_URI>images/status_icons/warning.gif" alt="<MT_TRANS phrase="Warning">" width="9" height="9" /> <MT_TRANS phrase="Warning: Changing the archive URL can result in breaking all the links in your weblog."></TMPL_IF> 
     269 
    265270<p><MT_TRANS phrase="Enter the URL of the archives section of your website."><br /><MT_TRANS phrase="Example:"> <strong>http://archives.example.com/</strong> 
    266271<a href="#" onclick="return openManual('blog_settings_publishing', 'archive_url')" class="help">?</a></p> 
     
    271276<div class="label"><label for="archive_path"><MT_TRANS phrase="Archive Root">:</label></div> 
    272277<div class="field"> 
    273 <input name="archive_path" id="archive_path" value="<TMPL_VAR NAME=ARCHIVE_PATH ESCAPE=HTML>" size="50" /> 
     278<input name="archive_path" id="archive_path" <TMPL_IF NAME=ARCHIVE_PATH>disabled="disabled"</TMPL_IF> value="<TMPL_VAR NAME=ARCHIVE_PATH ESCAPE=HTML>" size="50" /><TMPL_IF NAME=ARCHIVE_PATH> <a href="#" title="<MT_TRANS phrase="Unlock this weblog's site path for editing">" onclick="return toggleFile('archive_path')"><img src="<TMPL_VAR NAME=STATIC_URI>images/locked.gif" alt="Archive Path Lock" id="archive_path-lock" height="14" width="14" /></a> 
     279 
     280<p class="alert-warning-inline" id="archive_path-warning" style="display: none"> <img src="<TMPL_VAR NAME=STATIC_URI>images/status_icons/warning.gif" alt="<MT_TRANS phrase="Warning">" width="9" height="9" /> <MT_TRANS phrase="Warning: Changing the archive path can result in breaking all the links in your weblog."></TMPL_IF> 
     281 
    274282<p><MT_TRANS phrase="Enter the path where your archive files will be published."><br /><MT_TRANS phrase="Example:"> <strong>/home/melody/public_html/archives</strong> 
    275283<a href="#" onclick="return openManual('blog_settings_publishing', 'archive_path')" class="help">?</a></p>