View custom_clients_base_layouts_record_record.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* By installing or using this file, you are confirming on behalf of the entity | |
* subscribed to the SugarCRM Inc. product ("Company") that Company is bound by | |
* the SugarCRM Inc. Master Subscription Agreement ("MSA"), which is viewable at: | |
* http://www.sugarcrm.com/master-subscription-agreement | |
* | |
* If Company is not bound by the MSA, then by installing or using this file | |
* you are agreeing unconditionally that Company will be bound by the MSA and |
View Extending Record View to customize prefill when a user copies a record.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
//The below jsdoc was copied from base RecordView controller in Sugar 7.2 | |
extendsFrom: 'RecordView', | |
/** | |
* Called when current record is being duplicated to allow customization of | |
* fields that will be copied into new record. | |
* | |
* Override to setup the fields on this bean prior to being displayed in | |
* Create dialog. | |
* |
View case-count-by-status.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Case Count by Status example dashlet controller | |
* | |
* Controller logic watches the current collection on display and updates the | |
* dashlet automatically whenever the current collection changes. | |
* | |
* This is a simple example of a dashlet for List Views in Sugar 7.x. | |
* | |
**/ | |
({ |
View custom_clients_base_layouts_record_record.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* By installing or using this file, you are confirming on behalf of the entity | |
* subscribed to the SugarCRM Inc. product ("Company") that Company is bound by | |
* the SugarCRM Inc. Master Subscription Agreement ("MSA"), which is viewable at: | |
* http://www.sugarcrm.com/master-subscription-agreement | |
* | |
* If Company is not bound by the MSA, then by installing or using this file | |
* you are agreeing unconditionally that Company will be bound by the MSA and |
View CssLoader.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2016 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. | |
*/ | |
(function (app) { | |
app.events.on('app:init', function () { | |
/** | |
* This plugin allows components to dynamically load CSS files. | |
* | |
* <pre><code> | |
* // Sample component: |
View ScriptLoader.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2016 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. | |
*/ | |
(function (app) { | |
/** | |
* Allow jquery and moment.js to be used in requirejs modules. | |
*/ | |
var bootstrapScriptLoader = function() { | |
define('jquery', [], function() { | |
return jQuery; |
View AccountsOnSaveHooksTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Copyright 2015 SugarCRM Inc. | |
*/ | |
require_once 'custom/modules/Accounts/AccountsOnSaveHooks.php'; | |
/** | |
* Example tests for our custom Logic Hook. | |
*/ |
View apache22.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add phpinfo to web dir as a convenience | |
echo "<?php phpinfo();" > /var/www/phpinfo.php | |
# We will have Apache run as Vagrant user because this will help prevent permissions issues on a dev setup | |
sed -i "s/export APACHE_RUN_USER=www-data/export APACHE_RUN_USER=vagrant/" /etc/apache2/envvars | |
chown -R vagrant /var/www/ | |
usermod -a -G www-data vagrant |
View php54.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Setup the the box. This runs as root | |
apt-get -y update | |
# MySQL default username and password is "root" | |
echo "mysql-server-5.5 mysql-server/root_password password root" | debconf-set-selections | |
echo "mysql-server-5.5 mysql-server/root_password_again password root" | debconf-set-selections |
NewerOlder