root/branches/release-29/tmpl/cms/dialog/asset_replace.tmpl @ 1309

Revision 1309, 2.4 kB (checked in by ddavis, 23 months ago)

standarize js comment tag escape. BugzID:58265

  • Property svn:keywords set to Author Date Id Revision
Line 
1<mt:setvar name="page_title" value="<__trans phrase="Upload File">">
2<mt:setvarblock name="html_head" append="1">
3<script type="text/javascript">
4/* <![CDATA[ */
5function submit_form(f, command) {
6    f['overwrite_' + command].value = 1;
7    return true;
8}
9/* ]]> */
10</script>
11</mt:setvarblock>
12<mt:include name="dialog/header.tmpl">
13<form method="get" action="<mt:var name="script_url">">
14    <input type="hidden" name="__mode" value="upload_file" />
15    <input type="hidden" name="blog_id" value="<mt:var name="blog_id">" />
16    <input type="hidden" name="temp" value="<mt:var name="temp" escape="html">" />
17    <input type="hidden" name="extra_path" value="<mt:var name="extra_path" escape="html">" />
18    <input type="hidden" name="fname" value="<mt:var name="fname" escape="html">" />
19    <input type="hidden" name="site_path" value="<mt:var name="site_path" escape="html">" />
20    <input type="hidden" name="middle_path" value="<mt:var name="middle_path" escape="html">" />
21    <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
22    <input type="hidden" name="asset_select" value="<mt:var name="asset_select">" />
23    <input type="hidden" name="entry_insert" value="<mt:var name="entry_insert">" />
24    <input type="hidden" name="edit_field" value="<mt:var name="edit_field">" />
25    <input type="hidden" name="overwrite_yes" value="0" />
26    <input type="hidden" name="overwrite_no" value="0" />
27    <div class="error-message">
28    <mtapp:statusmsg
29        id="error-message"
30        class="alert"
31        can_close="0">
32        <__trans phrase="A file named '[_1]' already exists. Do you want to overwrite this file?" params="<mt:var name="fname" escape="html">">
33    </mtapp:statusmsg>
34    </div>
35    <div class="actions-bar">
36        <div class="actions-bar-inner pkg actions">
37            <button
38                onclick="submit_form(this.form, 'yes');"
39                name="overwrite_yes_button"
40                value="1"
41                type="submit"
42                accesskey="s"
43                title="<__trans phrase="Yes (s)">"
44                class="primary-button"
45                ><__trans phrase="Yes"></button>
46            <button
47                onclick="submit_form(this.form, 'no');"
48                name="overwrite_no_button"
49                value="1"
50                type="submit"
51                title="<__trans phrase="No">"
52                ><__trans phrase="No"></button>
53        </div>
54    </div>
55</form>
56<mt:include name="dialog/footer.tmpl">
Note: See TracBrowser for help on using the browser.