Files
CRM/customerportal/layouts/default/templates/Documents/partials/IndexContentAfter.tpl
BACHIR SOULDI 2794e62571 first commit
2025-09-28 08:49:37 +01:00

42 lines
2.3 KiB
Smarty

{*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.2
* ("License.txt"); 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.
************************************************************************************}
{literal}
<script type="text/ng-template" id="editRecordModalDocuments.template">
<form class="form form-vertical" name="docForm" enctype='multipart/form-data' novalidate="novalidate">
<div class="modal-header">
<button type="button" class="close" ng-click="cancel()" title="Close">&times;</button>
<h4 class="modal-title" >{{'Add New Document'|translate}}</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="input-group col-sm-8 col-sm-offset-2">
<input type="text" id="upload-file-info" class="form-control" ng-disabled="true">
<span class="input-group-btn">
<span class="btn btn-primary btn-file">
{{'Browse'|translate}}&hellip;<input type="file" name="file" file-input="editRecord.filename" ng-required="true" onchange='$("#upload-file-info").val($(this).val().replace("C:\\fakepath\\",""));'/></span>
</span>
</span>
</div>
<div class="col-sm-12 col-sm-offset-2" style="padding-left:0px;">
<span ng-show="message" class="text-danger">{{'File size uploaded is greater than 25 MB'|translate}}</span>
</div>
<div ng-show="!editRecord.filename && !message" class="col-sm-8 col-sm-offset-2" style="padding-left:0px;"><span class="text-danger">{{'Maximum size for file upload is 25 MB'|translate}}</span></div>
</div>
</div>
<div class="modal-footer">
<a type="button" class="btn btn-default" ng-click="cancel()" translate="Cancel">Cancel</a>
<button type="submit" class="btn btn-success" ng-disabled="message || !editRecord.filename ||saving" ng-click="save()" type="submit" translate="Save">Save</button>
</div>
</form>
</script>
{/literal}