annotate static/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm @ 45:966cde8635c0

For issue #3, created a separate news app. Created import management command. Using TinyMCE editor in the admin. News model now stores HTML. The news page is now paginated. Each story has a perma-link now.
author Brian Neal <bgneal@gmail.com>
date Thu, 15 Mar 2012 20:02:39 -0500
parents
children
rev   line source
bgneal@45 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
bgneal@45 2 <html xmlns="http://www.w3.org/1999/xhtml">
bgneal@45 3 <head>
bgneal@45 4 <title>{#searchreplace_dlg.replace_title}</title>
bgneal@45 5 <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
bgneal@45 6 <script type="text/javascript" src="../../utils/mctabs.js"></script>
bgneal@45 7 <script type="text/javascript" src="../../utils/form_utils.js"></script>
bgneal@45 8 <script type="text/javascript" src="js/searchreplace.js"></script>
bgneal@45 9 <link rel="stylesheet" type="text/css" href="css/searchreplace.css" />
bgneal@45 10 </head>
bgneal@45 11 <body style="display:none;" role="application" aria-labelledby="app_title">
bgneal@45 12 <span id="app_title" style="display:none">{#searchreplace_dlg.replace_title}</span>
bgneal@45 13 <form onsubmit="SearchReplaceDialog.searchNext('none');return false;" action="#">
bgneal@45 14 <div class="tabs">
bgneal@45 15 <ul>
bgneal@45 16 <li id="search_tab" aria-controls="search_panel"><span><a href="javascript:SearchReplaceDialog.switchMode('search');" onmousedown="return false;">{#searchreplace.search_desc}</a></span></li>
bgneal@45 17 <li id="replace_tab" aria-controls="replace_panel"><span><a href="javascript:SearchReplaceDialog.switchMode('replace');" onmousedown="return false;">{#searchreplace_dlg.replace}</a></span></li>
bgneal@45 18 </ul>
bgneal@45 19 </div>
bgneal@45 20
bgneal@45 21 <div class="panel_wrapper">
bgneal@45 22 <div id="search_panel" class="panel">
bgneal@45 23 <table role="presentation" border="0" cellspacing="0" cellpadding="2">
bgneal@45 24 <tr>
bgneal@45 25 <td><label for="search_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
bgneal@45 26 <td><input type="text" id="search_panel_searchstring" name="search_panel_searchstring" style="width: 200px" aria-required="true" /></td>
bgneal@45 27 </tr>
bgneal@45 28 <tr>
bgneal@45 29 <td colspan="2">
bgneal@45 30 <table role="presentation" border="0" cellspacing="0" cellpadding="0" class="direction">
bgneal@45 31 <tr role="group" aria-labelledby="search_panel_backwards_label">
bgneal@45 32 <td><label id="search_panel_backwards_label">{#searchreplace_dlg.direction}</label></td>
bgneal@45 33 <td><input id="search_panel_backwardsu" name="search_panel_backwards" class="radio" type="radio" /></td>
bgneal@45 34 <td><label for="search_panel_backwardsu">{#searchreplace_dlg.up}</label></td>
bgneal@45 35 <td><input id="search_panel_backwardsd" name="search_panel_backwards" class="radio" type="radio" checked="checked" /></td>
bgneal@45 36 <td><label for="search_panel_backwardsd">{#searchreplace_dlg.down}</label></td>
bgneal@45 37 </tr>
bgneal@45 38 </table>
bgneal@45 39 </td>
bgneal@45 40 </tr>
bgneal@45 41 <tr>
bgneal@45 42 <td colspan="2">
bgneal@45 43 <table role="presentation" border="0" cellspacing="0" cellpadding="0">
bgneal@45 44 <tr>
bgneal@45 45 <td><input id="search_panel_casesensitivebox" name="search_panel_casesensitivebox" class="checkbox" type="checkbox" /></td>
bgneal@45 46 <td><label for="search_panel_casesensitivebox">{#searchreplace_dlg.mcase}</label></td>
bgneal@45 47 </tr>
bgneal@45 48 </table>
bgneal@45 49 </td>
bgneal@45 50 </tr>
bgneal@45 51 </table>
bgneal@45 52 </div>
bgneal@45 53
bgneal@45 54 <div id="replace_panel" class="panel">
bgneal@45 55 <table role="presentation" border="0" cellspacing="0" cellpadding="2">
bgneal@45 56 <tr>
bgneal@45 57 <td><label for="replace_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
bgneal@45 58 <td><input type="text" id="replace_panel_searchstring" name="replace_panel_searchstring" style="width: 200px" aria-required="true" /></td>
bgneal@45 59 </tr>
bgneal@45 60 <tr>
bgneal@45 61 <td><label for="replace_panel_replacestring">{#searchreplace_dlg.replacewith}</label></td>
bgneal@45 62 <td><input type="text" id="replace_panel_replacestring" name="replace_panel_replacestring" style="width: 200px" aria-required="true" /></td>
bgneal@45 63 </tr>
bgneal@45 64 <tr>
bgneal@45 65 <td colspan="2">
bgneal@45 66 <table role="presentation" border="0" cellspacing="0" cellpadding="0" class="direction">
bgneal@45 67 <tr role="group" aria-labelledby="replace_panel_dir_label">
bgneal@45 68 <td><label id="replace_panel_dir_label">{#searchreplace_dlg.direction}</label></td>
bgneal@45 69 <td><input id="replace_panel_backwardsu" name="replace_panel_backwards" class="radio" type="radio" /></td>
bgneal@45 70 <td><label for="replace_panel_backwardsu">{#searchreplace_dlg.up}</label></td>
bgneal@45 71 <td><input id="replace_panel_backwardsd" name="replace_panel_backwards" class="radio" type="radio" checked="checked" /></td>
bgneal@45 72 <td><label for="replace_panel_backwardsd">{#searchreplace_dlg.down}</label></td>
bgneal@45 73 </tr>
bgneal@45 74 </table>
bgneal@45 75 </td>
bgneal@45 76 </tr>
bgneal@45 77 <tr>
bgneal@45 78 <td colspan="2">
bgneal@45 79 <table role="presentation" border="0" cellspacing="0" cellpadding="0">
bgneal@45 80 <tr>
bgneal@45 81 <td><input id="replace_panel_casesensitivebox" name="replace_panel_casesensitivebox" class="checkbox" type="checkbox" /></td>
bgneal@45 82 <td><label for="replace_panel_casesensitivebox">{#searchreplace_dlg.mcase}</label></td>
bgneal@45 83 </tr>
bgneal@45 84 </table>
bgneal@45 85 </td>
bgneal@45 86 </tr>
bgneal@45 87 </table>
bgneal@45 88 </div>
bgneal@45 89
bgneal@45 90 </div>
bgneal@45 91
bgneal@45 92 <div class="mceActionPanel">
bgneal@45 93 <input type="submit" id="insert" name="insert" value="{#searchreplace_dlg.findnext}" />
bgneal@45 94 <input type="button" class="button" id="replaceBtn" name="replaceBtn" value="{#searchreplace_dlg.replace}" onclick="SearchReplaceDialog.searchNext('current');" />
bgneal@45 95 <input type="button" class="button" id="replaceAllBtn" name="replaceAllBtn" value="{#searchreplace_dlg.replaceall}" onclick="SearchReplaceDialog.searchNext('all');" />
bgneal@45 96 <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
bgneal@45 97 </div>
bgneal@45 98 </form>
bgneal@45 99 </body>
bgneal@45 100 </html>