Merge branch 'stable'

This commit is contained in:
yuri
2018-08-03 14:15:01 +03:00
37 changed files with 243 additions and 94 deletions
@@ -631,7 +631,13 @@ abstract class Base
protected function systemRebuild()
{
return $this->getContainer()->get('dataManager')->rebuild();
try {
return $this->getContainer()->get('dataManager')->rebuild();
} catch (\Exception $e) {
$GLOBALS['log']->error('Database rebuild failure, details: '.$e->getMessage().'.');
}
return false;
}
/**
@@ -452,5 +452,17 @@ class MySqlPlatform extends \Doctrine\DBAL\Platforms\MySqlPlatform
return 'MEDIUMTEXT';
}
public function getColumnDeclarationListSQL(array $fields)
{
$queryFields = array();
foreach ($fields as $fieldName => $field) {
$quotedFieldName = $this->espoQuote($fieldName);
$queryFields[] = $this->getColumnDeclarationSQL($quotedFieldName, $field);
}
return implode(', ', $queryFields);
}
//end: ESPO
}
+4 -3
View File
@@ -129,7 +129,7 @@ class Image extends \Espo\Core\EntryPoints\Base
}
if (!empty($size)) {
$fileName = $sourceId . '_' . $size . '.jpg';
$fileName = $size . '-' . $attachment->get('name');
} else {
$fileName = $attachment->get('name');
}
@@ -197,9 +197,10 @@ class Image extends \Espo\Core\EntryPoints\Base
break;
}
$targetImage = imagerotate($targetImage, array_values([0, 0, 0, 180, 0, 0, -90, 0, 90])[@exif_read_data($filePath)['Orientation'] ?: 0], 0);
if (function_exists('exif_read_data')) {
$targetImage = imagerotate($targetImage, array_values([0, 0, 0, 180, 0, 0, -90, 0, 90])[@exif_read_data($filePath)['Orientation'] ?: 0], 0);
}
return $targetImage;
}
}
@@ -139,12 +139,14 @@ class Campaign extends \Espo\Services\Record
$sth = $pdo->prepare($sql);
$sth->execute();
$revenue = null;
if ($row = $sth->fetch(\PDO::FETCH_ASSOC)) {
$revenue = floatval($row['SUM:amountConverted']);
if ($revenue > 0) {
$entity->set('revenue', $revenue);
if (!$revenue) {
$revenue = null;
}
}
$entity->set('revenue', $revenue);
}
public function logSent($campaignId, $queueItemId = null, Entity $target, Entity $emailOrEmailTemplate = null, $emailAddress, $actionDate = null, $isTest = false)
@@ -15,6 +15,12 @@
"type": "float",
"tooltip": true,
"min": 0
},
{
"name": "previewSize",
"type": "enum",
"default": "medium",
"options": ["", "x-small", "small", "medium", "large"]
}
],
"actualFields":[
+3 -1
View File
@@ -109,9 +109,11 @@ class EmailFolder extends Record
public function listAll()
{
$limit = $this->getConfig()->get('emailFolderMaxCount', 100);
$folderList = $this->getRepository()->where(array(
'assignedUserId' => $this->getUser()->id
))->order('order')->limit(0, 20)->find();
))->order('order')->limit(0, $limit)->find();
$list = new \Espo\ORM\EntityCollection();
@@ -218,6 +218,7 @@ class Notification extends \Espo\Services\Record
$note->set('relatedName', $related->get('name'));
}
}
$note->loadLinkMultipleField('attachments');
$entity->set('noteData', $note->toArray());
} else {
unset($collection[$k]);
@@ -64,7 +64,7 @@ Espo.define('crm:views/case/record/panels/activities', 'crm:views/record/panels/
}, function () {resolve([])});
}, this);
} else if (parentModel.get('leadId')) {
this.getModelFactory().create('Lead', function (account) {
this.getModelFactory().create('Lead', function (lead) {
lead.id = parentModel.get('leadId');
lead.fetch().then(function () {
resolve([lead]);
@@ -1 +1 @@
<span class="glyphicon glyphicon-envelope action text-muted" data-action="quickView" data-id="{{model.id}}" style="cursor: pointer; margin-left: -7px; top: 2px;" title="{{translate 'View'}}"></span>
<span class="fas fa-envelope action text-muted" data-action="quickView" data-id="{{model.id}}" style="cursor: pointer; margin-left: -7px; top: 2px;" title="{{translate 'View'}}"></span>
@@ -4,7 +4,7 @@
{{{avatar}}}
</div>
<div class="stream-head-text-container">
<span class="text-muted"><span class="glyphicon glyphicon-envelope action" style="cursor: pointer;" title="{{translate 'View'}}" data-action="quickView" data-id="{{emailId}}" data-scope="Email"></span>
<span class="text-muted"><span class="fas fa-envelope action" style="cursor: pointer;" title="{{translate 'View'}}" data-action="quickView" data-id="{{emailId}}" data-scope="Email"></span>
{{{message}}}
</span>
</div>
+1 -1
View File
@@ -267,7 +267,7 @@ Espo.define('views/email/detail', ['views/detail', 'email-helper'], function (De
}
attributes.emailId = this.model.id;
var viewName = this.getMetadata().get('clientDefs.Contact.modalViews.detail') || 'Modals.Edit';
var viewName = this.getMetadata().get('clientDefs.Contact.modalViews.detail') || 'views/modals/edit';
this.notify('Loading...');
this.createView('quickCreate', viewName, {
+33 -3
View File
@@ -40,6 +40,8 @@ Espo.define('views/fields/attachment-multiple', 'views/fields/base', function (D
searchTemplate: 'fields/link-multiple/search',
previewSize: 'medium',
nameHashName: null,
idsName: null,
@@ -155,6 +157,8 @@ Espo.define('views/fields/attachment-multiple', 'views/fields/base', function (D
this.idsName = this.name + 'Ids';
this.foreignScope = 'Attachment';
this.previewSize = this.options.previewSize || this.params.previewSize || this.previewSize;
var self = this;
this.nameHash = _.clone(this.model.get(this.nameHashName)) || {};
@@ -182,6 +186,12 @@ Espo.define('views/fields/attachment-multiple', 'views/fields/base', function (D
this.listenTo(this.model, 'change:' + this.nameHashName, function () {
this.nameHash = _.clone(this.model.get(this.nameHashName)) || {};
}.bind(this));
this.once('remove', function () {
if (this.resizeIsBeingListened) {
$(window).off('resize.' + this.cid);
}
}.bind(this));
},
setupSearch: function () {
@@ -198,6 +208,11 @@ Espo.define('views/fields/attachment-multiple', 'views/fields/base', function (D
this.$attachments.empty();
},
handleResize: function () {
var width = this.$el.width();
this.$el.find('img.image-preview').css('maxWidth', width + 'px');
},
deleteAttachment: function (id) {
this.removeId(id);
if (this.model.isNew()) {
@@ -462,6 +477,16 @@ Espo.define('views/fields/attachment-multiple', 'views/fields/base', function (D
var type = this.$el.find('select.search-type').val();
this.handleSearchType(type);
}
if (this.mode === 'detail') {
if (this.previewSize === 'large') {
this.handleResize();
this.resizeIsBeingListened = true;
$(window).on('resize.' + this.cid, function () {
this.handleResize();
}.bind(this));
}
}
},
isTypeIsImage: function (type) {
@@ -478,9 +503,8 @@ Espo.define('views/fields/attachment-multiple', 'views/fields/base', function (D
name = Handlebars.Utils.escapeExpression(name);
var preview = name;
if (this.isTypeIsImage(type)) {
preview = '<a data-action="showImagePreview" data-id="' + id + '" href="' + this.getImageUrl(id) + '"><img src="'+this.getImageUrl(id, 'medium')+'"></a>';
preview = '<a data-action="showImagePreview" data-id="' + id + '" href="' + this.getImageUrl(id) + '"><img src="'+this.getImageUrl(id, this.previewSize)+'" class="image-preview"></a>';
}
return preview;
},
@@ -495,7 +519,13 @@ Espo.define('views/fields/attachment-multiple', 'views/fields/base', function (D
for (var id in nameHash) {
var type = typeHash[id] || false;
var name = nameHash[id];
if (this.showPreviews && ~this.previewTypeList.indexOf(type) && this.mode !== 'list') {
if (
this.showPreviews
&&
~this.previewTypeList.indexOf(type)
&&
(this.mode === 'detail' || this.mode === 'list' && this.showPreviewsInListMode)
) {
previews.push('<div class="attachment-preview">' + this.getDetailPreview(name, type, id) + '</div>');
continue;
}
+23 -1
View File
@@ -153,6 +153,8 @@ Espo.define('views/fields/file', 'views/fields/link', function (Dep) {
this.typeName = this.name + 'Type';
this.foreignScope = 'Attachment';
this.previewSize = this.options.previewSize || this.params.previewSize || this.previewSize;
var sourceDefs = this.getMetadata().get(['clientDefs', 'Attachment', 'sourceDefs']) || {};
this.sourceList = Espo.Utils.clone(this.params.sourceList || []).filter(function (item) {
@@ -181,6 +183,11 @@ Espo.define('views/fields/file', 'views/fields/link', function (Dep) {
this.acceptAttribue = this.accept.join('|');
}
this.once('remove', function () {
if (this.resizeIsBeingListened) {
$(window).off('resize.' + this.cid);
}
}.bind(this));
},
afterRender: function () {
@@ -219,6 +226,21 @@ Espo.define('views/fields/file', 'views/fields/link', function (Dep) {
var type = this.$el.find('select.search-type').val();
this.handleSearchType(type);
}
if (this.mode === 'detail') {
if (this.previewSize === 'large') {
this.handleResize();
this.resizeIsBeingListened = true;
$(window).on('resize.' + this.cid, function () {
this.handleResize();
}.bind(this));
}
}
},
handleResize: function () {
var width = this.$el.width();
this.$el.find('img.image-preview').css('maxWidth', width + 'px');
},
getDetailPreview: function (name, type, id) {
@@ -229,7 +251,7 @@ Espo.define('views/fields/file', 'views/fields/link', function (Dep) {
case 'image/png':
case 'image/jpeg':
case 'image/gif':
preview = '<a data-action="showImagePreview" data-id="' + id + '" href="' + this.getImageUrl(id) + '"><img src="'+this.getBasePath()+'?entryPoint=image&size='+this.previewSize+'&id=' + id + '"></a>';
preview = '<a data-action="showImagePreview" data-id="' + id + '" href="' + this.getImageUrl(id) + '"><img src="'+this.getBasePath()+'?entryPoint=image&size='+this.previewSize+'&id=' + id + '" class="image-preview"></a>';
}
return preview;
},
+1 -10
View File
@@ -38,16 +38,7 @@ Espo.define('views/fields/image', 'views/fields/file', function (Dep) {
defaultType: 'image/jpeg',
previewSize: 'small',
setup: function () {
Dep.prototype.setup.call(this);
if ('previewSize' in this.params && this.params.previewSize) {
this.previewSize = this.params.previewSize;
}
}
previewSize: 'small'
});
});
+3 -1
View File
@@ -126,7 +126,9 @@ Espo.define('views/fields/link-multiple', 'views/fields/base', function (Dep) {
boolFilterList: this.getSelectBoolFilterList(),
primaryFilterName: this.getSelectPrimaryFilterName(),
multiple: true,
createAttributes: (this.mode === 'edit') ? this.getCreateAttributes() : null
createAttributes: (this.mode === 'edit') ? this.getCreateAttributes() : null,
mandatorySelectAttributeList: this.mandatorySelectAttributeList,
forceSelectAllAttributes: this.forceSelectAllAttributes
}, function (dialog) {
dialog.render();
self.notify(false);
+11 -1
View File
@@ -133,7 +133,9 @@ Espo.define('views/fields/link-parent', 'views/fields/base', function (Dep) {
filters: this.getSelectFilters(),
boolFilterList: this.getSelectBoolFilterList(),
primaryFilterName: this.getSelectPrimaryFilterName(),
createAttributes: (this.mode === 'edit') ? this.getCreateAttributes() : null
createAttributes: (this.mode === 'edit') ? this.getCreateAttributes() : null,
mandatorySelectAttributeList: this.getMandatorySelectAttributeList(),
forceSelectAllAttributes: this.isForceSelectAllAttributes()
}, function (dialog) {
dialog.render();
Espo.Ui.notify(false);
@@ -181,6 +183,14 @@ Espo.define('views/fields/link-parent', 'views/fields/base', function (Dep) {
this.trigger('change');
},
getMandatorySelectAttributeList: function () {
this.mandatorySelectAttributeList;
},
isForceSelectAllAttributes: function () {
this.forceSelectAllAttributes;
},
getAutocompleteUrl: function () {
var url = this.foreignScope + '?sortBy=name&maxCount=' + this.AUTOCOMPLETE_RESULT_MAX_COUNT;
var boolList = this.getSelectBoolFilterList();
+3 -1
View File
@@ -116,7 +116,9 @@ Espo.define('views/fields/link', 'views/fields/base', function (Dep) {
filters: this.getSelectFilters(),
boolFilterList: this.getSelectBoolFilterList(),
primaryFilterName: this.getSelectPrimaryFilterName(),
createAttributes: (this.mode === 'edit') ? this.getCreateAttributes() : null
createAttributes: (this.mode === 'edit') ? this.getCreateAttributes() : null,
mandatorySelectAttributeList: this.mandatorySelectAttributeList,
forceSelectAllAttributes: this.forceSelectAllAttributes
}, function (view) {
view.render();
this.notify(false);
+18 -6
View File
@@ -32,8 +32,14 @@ Espo.define('views/global-search/panel', 'view', function (Dep) {
template: 'global-search/panel',
afterRender: function () {
setup: function () {
this.maxSize = this.getConfig().get('globalSearchMaxSize') || 10;
this.navbarPanelHeightSpace = this.getThemeManager().getParam('navbarPanelHeightSpace') || 100;
this.navbarPanelBodyMaxHeight = this.getThemeManager().getParam('navbarPanelBodyMaxHeight') || 600;
},
afterRender: function () {
this.listenToOnce(this.collection, 'sync', function () {
this.createView('list', 'views/record/list-expanded', {
el: this.options.el + ' .list-container',
@@ -46,7 +52,7 @@ Espo.define('views/global-search/panel', 'view', function (Dep) {
view: 'views/global-search/name-field',
params: {
containerEl: this.options.el
},
}
}
]
],
@@ -59,12 +65,18 @@ Espo.define('views/global-search/panel', 'view', function (Dep) {
}, function (view) {
view.render();
});
}.bind(this));
this.collection.maxSize = this.getConfig().get('recordsPerPageSmall') || 10;
}, this);
this.collection.reset();
this.collection.maxSize = this.maxSize;
this.collection.fetch();
var windowHeight = $(window).height();
if (windowHeight - this.navbarPanelBodyMaxHeight < this.navbarPanelHeightSpace) {
var maxHeight = windowHeight - this.navbarPanelHeightSpace;
this.$el.find('> .panel > .panel-body').css('maxHeight', maxHeight + 'px');
}
}
});
});
+6 -1
View File
@@ -55,6 +55,10 @@ Espo.define('views/modals/image-preview', 'views/modal', function (Dep) {
this.navigationEnabled = (this.options.imageList && this.options.imageList.length > 1);
this.imageList = this.options.imageList || [];
this.once('remove', function () {
$(window).off('resize.image-review');
}, this);
},
getImageUrl: function () {
@@ -90,7 +94,8 @@ Espo.define('views/modals/image-preview', 'views/modal', function (Dep) {
$img.css('maxWidth', width);
}.bind(this);
$(window).on('resize', function () {
$(window).off('resize.image-review');
$(window).on('resize.image-review', function () {
manageSize();
});
+23 -5
View File
@@ -225,15 +225,33 @@ Espo.define('views/modals/select-records', ['views/modal', 'search-manager'], fu
}, this);
}
view.getSelectAttributeList(function (selectAttributeList) {
if (selectAttributeList) {
this.collection.data.select = selectAttributeList.join(',');
}
if (this.options.forceSelectAllAttributes || this.forceSelectAllAttributes) {
this.listenToOnce(view, 'after:build-rows', function () {
this.wait(false);
}, this);
this.collection.fetch();
}.bind(this));
} else {
view.getSelectAttributeList(function (selectAttributeList) {
if (!~selectAttributeList.indexOf('name')) {
selectAttributeList.push('name');
}
var mandatorySelectAttributeList = this.options.mandatorySelectAttributeList || this.mandatorySelectAttributeList || [];
mandatorySelectAttributeList.forEach(function (attribute) {
if (!~selectAttributeList.indexOf(attribute)) {
selectAttributeList.push(attribute);
}
}, this);
if (selectAttributeList) {
this.collection.data.select = selectAttributeList.join(',');
}
this.listenToOnce(view, 'after:build-rows', function () {
this.wait(false);
}, this);
this.collection.fetch();
}.bind(this));
}
});
},
@@ -72,6 +72,7 @@ Espo.define('views/notification/fields/container', 'views/fields/base', function
isUserStream: true,
el: this.params.containerEl + ' li[data-id="' + this.model.id + '"]',
onlyContent: true,
isNotification: true
});
this.wait(false);
}, this);
@@ -88,6 +89,7 @@ Espo.define('views/notification/fields/container', 'views/fields/base', function
isUserStream: true,
el: this.params.containerEl + ' li[data-id="' + this.model.id + '"]',
onlyContent: true,
isNotification: true
});
this.wait(false);
}, this);
+11 -3
View File
@@ -51,9 +51,12 @@ Espo.define('views/notification/panel', 'view', function (Dep) {
this.wait(true);
this.getCollectionFactory().create('Notification', function (collection) {
this.collection = collection;
collection.maxSize = 5;
collection.maxSize = this.getConfig().get('notificationsMaxSize') || 5;
this.wait(false);
}, this);
this.navbarPanelHeightSpace = this.getThemeManager().getParam('navbarPanelHeightSpace') || 100;
this.navbarPanelBodyMaxHeight = this.getThemeManager().getParam('navbarPanelBodyMaxHeight') || 600;
},
afterRender: function () {
@@ -71,7 +74,7 @@ Espo.define('views/notification/panel', 'view', function (Dep) {
view: 'views/notification/fields/container',
params: {
containerEl: this.options.el
},
}
}
]
],
@@ -86,8 +89,13 @@ Espo.define('views/notification/panel', 'view', function (Dep) {
});
}, this);
this.collection.fetch();
var windowHeight = $(window).height();
if (windowHeight - this.navbarPanelBodyMaxHeight < this.navbarPanelHeightSpace) {
var maxHeight = windowHeight - this.navbarPanelHeightSpace;
this.$el.find('> .panel > .panel-body').css('maxHeight', maxHeight + 'px');
}
}
});
});
+12 -1
View File
@@ -42,7 +42,18 @@ Espo.define('views/portal-user/list', 'views/list', function (Dep) {
this.createView('modal', viewName, {
scope: 'Contact',
primaryFilterName: 'notPortalUsers',
createButton: false
createButton: false,
mandatorySelectAttributeList: [
'salutationName',
'firstName',
'lastName',
'accountName',
'accountId',
'emailAddress',
'emailAddressData',
'phoneNumber',
'phoneNumberData'
]
}, function (view) {
view.render();
@@ -30,7 +30,9 @@ Espo.define('views/stream/fields/attachment-multiple', 'views/fields/attachment-
return Dep.extend({
showPreviews: true
showPreviews: true,
showPreviewsInListMode: true,
});
+9 -3
View File
@@ -118,9 +118,9 @@ Espo.define('views/stream/note', 'view', function (Dep) {
return string;
},
createField: function (name, type, params, view) {
createField: function (name, type, params, view, options) {
type = type || this.model.getFieldType(name) || 'base';
this.createView(name, view || this.getFieldManager().getViewName(type), {
var o = {
model: this.model,
defs: {
name: name,
@@ -128,7 +128,13 @@ Espo.define('views/stream/note', 'view', function (Dep) {
},
el: this.options.el + ' .cell-' + name,
mode: 'list'
});
};
if (options) {
for (var i in options) {
o[i] = options[i];
}
}
this.createView(name, view || this.getFieldManager().getViewName(type), o);
},
isMale: function () {
@@ -46,7 +46,9 @@ Espo.define('views/stream/notes/mention-in-post', 'views/stream/note', function
this.createField('post', null, null, 'views/stream/fields/post');
}
if ((this.model.get('attachmentsIds') || []).length) {
this.createField('attachments', 'attachmentMultiple', {}, 'views/stream/fields/attachment-multiple');
this.createField('attachments', 'attachmentMultiple', {}, 'views/stream/fields/attachment-multiple', {
previewSize: this.options.isNotification ? 'small' : null
});
}
var data = this.model.get('data');
+3 -1
View File
@@ -49,7 +49,9 @@ Espo.define('views/stream/notes/post', 'views/stream/note', function (Dep) {
setup: function () {
this.createField('post', null, null, 'views/stream/fields/post');
this.createField('attachments', 'attachmentMultiple', {}, 'views/stream/fields/attachment-multiple');
this.createField('attachments', 'attachmentMultiple', {}, 'views/stream/fields/attachment-multiple', {
previewSize: this.options.isNotification ? 'small' : 'medium'
});
this.isInternal = this.model.get('isInternal');
+1
View File
@@ -13,6 +13,7 @@
"ext-mbstring": "*",
"ext-xml": "*",
"ext-curl": "*",
"ext-exif": "*",
"doctrine/dbal": "2.*",
"slim/slim": "2.6.2",
"mtdowling/cron-expression": "1.0.*",
+3 -3
View File
@@ -356,9 +356,9 @@ body > #header .navbar-brand span.home-icon {
}
@media (min-width: @screen-lg-min) {
.container {
max-width: 1580px;
}
.container {
max-width: @container-max-width;
}
}
+2 -1
View File
@@ -557,7 +557,8 @@ ul.dropdown-menu > li.checkbox:last-child {
margin-top: 1px;
}
.field .link-container > .list-group-item.link-with-role a {
.field .link-container > .list-group-item.link-with-role > a,
.field .link-container > .list-group-item.link-with-role > div > a {
margin-top: 6px;
}
+3 -3
View File
@@ -123,7 +123,7 @@ body > #header .navbar-brand span.home-icon {
}
@media (min-width: @screen-lg-min) {
.container {
max-width: 1366px;
}
.container {
max-width: @container-max-width;
}
}
+3 -1
View File
@@ -137,10 +137,12 @@
@panel-border-width: 2px;
@navbar-panel-body-max-height: 350px;
@navbar-panel-body-max-height: 600px;
@form-group-margin-bottom: 12px;
@modal-title-line-height: floor(@font-size-h4 * @line-height-base);
@navbar-color-border-width: 4px;
@container-max-width: 1800px;
+16 -27
View File
@@ -27,43 +27,33 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
return array(
return [
'apiPath' => '/api/v1',
'requirements' => array(
'requirements' => [
'phpVersion' => '5.6',
'phpRequires' => array(
'JSON',
'phpRequires' => [
'json',
'openssl',
'pdo_mysql'
),
'phpRecommendations' => array(
'pdo_mysql',
'mbstring',
'zip',
'gd',
'mbstring',
],
'phpRecommendations' => [
'curl',
'xml',
'exif',
'max_execution_time' => 180,
'max_input_time' => 180,
'memory_limit' => '256M',
'post_max_size' => '20M',
'upload_max_filesize' => '20M',
),
],
'mysqlVersion' => '5.5.3',
'mysqlRequires' => array(
),
'mysqlRecommendations' => array(
),
),
'rewriteRules' => array(
'mysqlRequires' => [],
'mysqlRecommendations' => [],
],
'rewriteRules' => [
'APACHE1' => 'a2enmod rewrite
service apache2 restart',
'APACHE2' => '&#60;Directory /PATH_TO_ESPO/&#62;
@@ -131,10 +121,9 @@ service apache2 restart',
deny all;
}
}',
),
],
'blog' => 'http://blog.espocrm.com',
'twitter' => 'https://twitter.com/espocrm',
'forum' => 'http://forum.espocrm.com',
);
];
+1 -1
View File
@@ -12,7 +12,7 @@
</div>
</div>
<div class="cell cell-website pull-left" align="left">
<label class="field-label-website control-label">{$langs['fields']['Choose your language']}:</label>
<label class="field-label-website control-label">{$langs['fields']['Choose your language']}</label>
<div class="field field-website">
<select name="user-lang" class="form-control">
{foreach from=$languageList item=lbl key=val}
+3 -3
View File
@@ -12,9 +12,9 @@
</div>
</div>
</div>
<div class="cell cell-website col-sm-12 form-group">
<input class="btn btn-default" type="checkbox" name="license-agree" id="license-agree" value="1" {if $fields['license-agree'].value}checked="checked"{/if}>
<label class="point-lbl" for="license-agree">&nbsp;&nbsp;&nbsp;{$langs['labels']['I accept the agreement']}</label>
<div class="cell cell-website form-group">
<input class="btn btn-default" type="checkbox" name="license-agree" id="license-agree" class="input-checkbox" value="1" {if $fields['license-agree'].value}checked="checked"{/if}>
<label class="point-lbl" for="license-agree">{$langs['labels']['I accept the agreement']}</label>
</div>
</form>
+5 -4
View File
@@ -71,10 +71,6 @@ select[name="user-lang"] {
color: #999;
}
input[type=checkbox].btn-default {
margin: 0;
}
.cron-help {
margin: 20px;
}
@@ -170,4 +166,9 @@ span.ok {
@-moz-keyframes left {
from { -moz-transform: rotate(0deg);}
to { -moz-transform: rotate(360deg);}
}
#license-agree {
margin-right: 5px;
margin-top: -1px;
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "espocrm",
"version": "5.3.5",
"version": "5.3.6",
"description": "",
"main": "index.php",
"repository": {