- Added project file migration script with sanitization (underscores) - Fixed Nextcloud editor integration (urldecode, basename fix) - Added 'Open Project Folder in Nextcloud' button - 223 projects migrated (completed + archived) - URL decoding fix for Cyrillic filenames
66 lines
3.3 KiB
Smarty
66 lines
3.3 KiB
Smarty
{*<!--
|
|
/*********************************************************************************
|
|
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
|
* ("License"); You may not use this file except in compliance with the License
|
|
* The Original Code is: vtiger CRM Open Source
|
|
* The Initial Developer of the Original Code is vtiger.
|
|
* Portions created by vtiger are Copyright (C) vtiger.
|
|
* All Rights Reserved.
|
|
*
|
|
********************************************************************************/
|
|
-->*}
|
|
{strip}
|
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
<div class="record-header clearfix">
|
|
<div class="hidden-sm hidden-xs recordImage bgproject app-{$SELECTED_MENU_CATEGORY}">
|
|
<div class="name"><span><strong> <i class="vicon-project"></i> </strong></span></div>
|
|
</div>
|
|
<div class="recordBasicInfo">
|
|
<div class="info-row">
|
|
<h4>
|
|
<div class="recordLabel pushDown" title="{$RECORD->getName()}">
|
|
{foreach item=NAME_FIELD from=$MODULE_MODEL->getNameFields()}
|
|
{assign var=FIELD_MODEL value=$MODULE_MODEL->getField($NAME_FIELD)}
|
|
{if $FIELD_MODEL->getPermissions()}
|
|
<span class="{$NAME_FIELD}">{$RECORD->get($NAME_FIELD)}</span>
|
|
{/if}
|
|
{/foreach}
|
|
</div>
|
|
</h4>
|
|
</div>
|
|
{include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE}
|
|
|
|
{* Кнопка открытия папки проекта в Nextcloud *}
|
|
<div class="info-row" style="margin-top: 10px;">
|
|
<button type="button" class="btn btn-info btn-sm" onclick="openProjectFolder('{$RECORD->getId()}', '{$RECORD->get("projectname")|escape:javascript}')" title="Открыть папку проекта в Nextcloud">
|
|
<i class="fa fa-folder-open"></i> Папка в Nextcloud
|
|
</button>
|
|
</div>
|
|
|
|
{* Подключаем Nextcloud Editor JS *}
|
|
<script type="text/javascript" src="layouts/v7/lib/nextcloud-editor.js"></script>
|
|
|
|
{*
|
|
{assign var=RELATED_TO value=$RECORD->get('linktoaccountscontacts')}
|
|
{assign var=CONTACT value=$RECORD->get('contactid')}
|
|
<div class="info-row row ">
|
|
{if !empty($RELATED_TO)}
|
|
<div class="col-lg-7 fieldLabel">
|
|
<span class="muted">
|
|
{$RECORD->getDisplayValue('linktoaccountscontacts')}
|
|
</span>
|
|
</div>
|
|
{elseif !empty($CONTACT)}
|
|
<div class="info-row row ">
|
|
<div class="col-lg-7 fieldLabel">
|
|
<span class="muted">
|
|
{$RECORD->getDisplayValue('contactid')}</span>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
*}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/strip} |