2 /*********************************************************************************
3 * SugarCRM is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Affero General Public License version 3 as published by the
8 * Free Software Foundation with the addition of the following permission added
9 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
18 * You should have received a copy of the GNU Affero General Public License along with
19 * this program; if not, see http://www.gnu.org/licenses or write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26 * The interactive user interfaces in modified source and object code versions
27 * of this program must display Appropriate Legal Notices, as required under
28 * Section 5 of the GNU Affero General Public License version 3.
30 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31 * these Appropriate Legal Notices must retain the display of the "Powered by
32 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33 * technical reasons, the Appropriate Legal Notices must display the words
34 * "Powered by SugarCRM".
35 ********************************************************************************/
37 /*********************************************************************************
39 ********************************************************************************/
42 <script language="JavaScript">
43 function delete_version(currentversion) {
45 if (currentversion == '{DOCUMENT_REVISION}') {
46 window.alert('{MOD.ERR_DELETE_LATEST_VERSION}');
50 return confirm('{MOD.ERR_DELETE_CONFIRM}');
56 <table width="100%" cellpadding="0" cellspacing="0" border="0">
59 <form name="EditView" method="POST" action="index.php">
60 <input type="hidden" name="module" value="Documents">
61 <input type="hidden" name="record">
62 <input type="hidden" name="action">
63 <input type="hidden" name="form">
64 <input type="hidden" name="return_module" value="{RETURN_MODULE}">
65 <input type="hidden" name="return_id" value="{RETURN_ID}">
66 <input type="hidden" name="return_action" value="{RETURN_ACTION}">
67 <input type="hidden" name="document_name" value="{DOCUMENT_NAME}">
68 <input type="hidden" name="document_revision" value="{DOCUMENT_REVISION}">
69 <input type="hidden" name="document_filename" value="{DOCUMENT_FILENAME}">
70 <input type="hidden" name="document_revision_id" value="{DOCUMENT_REVISION_ID}">
72 <input title="{APP.LBL_NEW_BUTTON_TITLE}" accessKey="{APP.LBL_NEW_BUTTON_KEY}" class="button" onclick="this.form.return_module.value='Documents'; this.form.return_action.value='DetailView'; this.form.return_id.value='{ID}'; this.form.action.value='DocumentRevisionEditView'" type="submit" name="button" value=" {APP.LBL_NEW_BUTTON_LABEL} ">
75 <td align="right">{ADMIN_EDIT}</td>
79 <table cellpadding="0" cellspacing="0" width="100%" border="0" class="list view">
80 <!-- BEGIN: list_nav_row -->
82 <!-- END: list_nav_row -->
84 <td scope="col" width="2%" NOWRAP><slot> </slot></td>
85 <td scope="col" width="10%" NOWRAP><slot>{MOD.LBL_REV_LIST_REVISION}</slot></td>
86 <td scope="col" width="15%" NOWRAP><slot>{MOD.LBL_REV_LIST_ENTERED}</slot></td>
87 <td scope="col" width="10%" NOWRAP><slot>{MOD.LBL_REV_LIST_CREATED}</slot></td>
88 <td scope="col" width="55%" NOWRAP><slot>{MOD.LBL_REV_LIST_LOG}</slot></td>
89 <td width="8%" ><img src="include/images/blank.gif" width="1" height="1" alt=""></td>
93 <tr height="20" class="{ROW_COLOR}S1">
94 <td valign=TOP ><slot>{DOCREVISION.FILE_URL}</slot></td>
95 <td scope="row" valign=TOP ><slot>{DOCREVISION.REVISION}</slot></td>
96 <td valign=TOP ><slot>{DOCREVISION.DATE_ENTERED}</slot></td>
97 <td valign=TOP ><slot>{DOCREVISION.FIRST_NAME} {DOCREVISION.LAST_NAME}</slot></td>
98 <td valign=TOP ><slot>{DOCREVISION.CHANGE_LOG}</slot></td>
99 <td nowrap align="center" valign=TOP bgcolor="{BG_COLOR}" class="{ROW_COLOR}S1"><a class="listViewTdToolsS1" onclick="return delete_version('{DOCREVISION.REVISION}')" href="{URL_PREFIX}index.php?action=Delete&module=Documents&record={DOCREVISION.ID}&revision_id={DOCREVISION.ID}&filename={DOCREVISION.FILENAME}&object=documentrevision&{RETURN_URL}">{DELETE_INLINE_PNG}</a> <a class="listViewTdToolsS1" onclick="return delete_version('{DOCREVISION.REVISION}')" href="{URL_PREFIX}index.php?action=Delete&module=Documents&record={DOCREVISION.ID}&revision_id={DOCREVISION.ID}&filename={DOCREVISION.FILENAME}&{RETURN_URL}">{APP.LNK_DELETE}</a></td>
102 <td colspan="20" class="listViewHRS1"></td>