Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Reservas - Cambios para incluir la gesión residencial #209

Draft
wants to merge 16 commits into
base: develop
Choose a base branch
from
Draft
14,702 changes: 14,702 additions & 0 deletions SticInclude/vendor/fullcalendar_new/index.global.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions SticInclude/vendor/fullcalendar_new/index.global.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions custom/Extension/application/Ext/Include/SticModules.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
$moduleList[] = 'stic_Custom_View_Conditions';
$moduleList[] = 'stic_Custom_View_Actions';
$moduleList[] = 'stic_Group_Opportunities';
$moduleList[] = 'stic_Bookings_Places_Calendar';

// Bean names for custom modules
// Although they should be singular ModuleBuilder outputs them in plural and we keep them this way
Expand Down Expand Up @@ -113,6 +114,7 @@
$beanList['stic_Custom_View_Conditions'] = 'stic_Custom_View_Conditions';
$beanList['stic_Custom_View_Actions'] = 'stic_Custom_View_Actions';
$beanList['stic_Group_Opportunities'] = 'stic_Group_Opportunities';
$beanList['stic_Bookings_Places_Calendar'] = 'stic_Bookings_Places_Calendar';

// Location of custom modules main class files
$beanFiles['stic_Accounts_Relationships'] = 'modules/stic_Accounts_Relationships/stic_Accounts_Relationships.php';
Expand Down Expand Up @@ -159,6 +161,7 @@
$beanFiles['stic_Custom_View_Conditions'] = 'modules/stic_Custom_View_Conditions/stic_Custom_View_Conditions.php';
$beanFiles['stic_Custom_View_Actions'] = 'modules/stic_Custom_View_Actions/stic_Custom_View_Actions.php';
$beanFiles['stic_Group_Opportunities'] = 'modules/stic_Group_Opportunities/stic_Group_Opportunities.php';
$beanFiles['stic_Bookings_Places_Calendar'] = 'modules/stic_Bookings_Places_Calendar/stic_Bookings_Places_Calendar.php';


// Modules in $modInvisList are hidden in the main menu, in reporting and as subpanels
Expand Down
18 changes: 18 additions & 0 deletions custom/Extension/application/Ext/Language/ca_ES.SticLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -3148,6 +3148,7 @@
$app_list_strings['stic_resources_types_list']['electronics'] = 'Electrònica';
$app_list_strings['stic_resources_types_list']['technical_equipment'] = 'Equipament tècnic';
$app_list_strings['stic_resources_types_list']['accessory'] = 'Accessoris';
$app_list_strings['stic_resources_types_list']['places'] = 'Plaça';
$app_list_strings['stic_resources_types_list']['other'] = 'Altres';

// Recursos: Estats
Expand All @@ -3157,6 +3158,23 @@
$app_list_strings['stic_resources_status_list']['unavailable'] = 'No disponible';
$app_list_strings['stic_resources_status_list']['temporarily_unavailable'] = 'No disponible temporalment';

// Resources: Plaça tipus
$app_list_strings['stic_resources_places_type_list'][''] = '';
$app_list_strings['stic_resources_places_type_list']['regular'] = 'Regular';
$app_list_strings['stic_resources_places_type_list']['overcrowded'] = 'Sobreocupació';

// Resources: User tipus
$app_list_strings['stic_resources_places_users_list'][''] = '';
$app_list_strings['stic_resources_places_users_list']['adults'] = 'Adults';
$app_list_strings['stic_resources_places_users_list']['families'] = 'Families';
$app_list_strings['stic_resources_places_users_list']['minors'] = 'Minors';

// Resources: Gender
$app_list_strings['stic_resources_places_gender_list'][''] = '';
$app_list_strings['stic_resources_places_gender_list']['men'] = 'Home';
$app_list_strings['stic_resources_places_gender_list']['women'] = 'Dona';
$app_list_strings['stic_resources_places_gender_list']['mixed'] = 'Mixta';

// Reserves: Estats
$app_list_strings['stic_bookings_status_list'][''] = '';
$app_list_strings['stic_bookings_status_list']['confirmed'] = 'Confirmada';
Expand Down
19 changes: 19 additions & 0 deletions custom/Extension/application/Ext/Language/en_us.SticLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
$app_list_strings['moduleList']['stic_Custom_View_Customizations'] = 'Customizations';
$app_list_strings['moduleList']['stic_Custom_View_Conditions'] = 'Conditions';
$app_list_strings['moduleList']['stic_Group_Opportunities'] = 'Granted accounts';
$app_list_strings['moduleList']['stic_Bookings_Places_Calendar'] = 'Bookings Places Calendar';
$app_list_strings['moduleListSingular']['Accounts'] = 'Account';
$app_list_strings['moduleListSingular']['Contacts'] = 'Contact';
$app_list_strings['moduleListSingular']['Leads'] = 'Lead';
Expand Down Expand Up @@ -3147,6 +3148,7 @@
$app_list_strings['stic_resources_types_list']['electronics'] = 'Electronics';
$app_list_strings['stic_resources_types_list']['technical_equipment'] = 'Technical equipment';
$app_list_strings['stic_resources_types_list']['accessory'] = 'Accessory';
$app_list_strings['stic_resources_types_list']['places'] = 'Places';
$app_list_strings['stic_resources_types_list']['other'] = 'Other';

// Resources: Status
Expand All @@ -3156,6 +3158,23 @@
$app_list_strings['stic_resources_status_list']['unavailable'] = 'Not available';
$app_list_strings['stic_resources_status_list']['temporarily_unavailable'] = 'Temporarily unavailable';

// Resources: Place type
$app_list_strings['stic_resources_places_type_list'][''] = '';
$app_list_strings['stic_resources_places_type_list']['regular'] = 'Regular';
$app_list_strings['stic_resources_places_type_list']['overcrowded'] = 'Overcrowded';

// Resources: User type
$app_list_strings['stic_resources_places_users_list'][''] = '';
$app_list_strings['stic_resources_places_users_list']['adults'] = 'Adults';
$app_list_strings['stic_resources_places_users_list']['families'] = 'Families';
$app_list_strings['stic_resources_places_users_list']['minors'] = 'Minors';

// Resources: Gender
$app_list_strings['stic_resources_places_gender_list'][''] = '';
$app_list_strings['stic_resources_places_gender_list']['men'] = 'Home';
$app_list_strings['stic_resources_places_gender_list']['women'] = 'Dona';
$app_list_strings['stic_resources_places_gender_list']['mixed'] = 'Mixta';

// Bookings: Status
$app_list_strings['stic_bookings_status_list'][''] = '';
$app_list_strings['stic_bookings_status_list']['confirmed'] = 'Confirmed';
Expand Down
18 changes: 18 additions & 0 deletions custom/Extension/application/Ext/Language/es_ES.SticLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -3148,6 +3148,7 @@
$app_list_strings['stic_resources_types_list']['electronics'] = 'Electrónica';
$app_list_strings['stic_resources_types_list']['technical_equipment'] = 'Equipamiento técnico';
$app_list_strings['stic_resources_types_list']['accessory'] = 'Accesorios';
$app_list_strings['stic_resources_types_list']['places'] = 'Plazas';
$app_list_strings['stic_resources_types_list']['other'] = 'Otros';

// Recursos: Estados
Expand All @@ -3157,6 +3158,23 @@
$app_list_strings['stic_resources_status_list']['unavailable'] = 'No disponible';
$app_list_strings['stic_resources_status_list']['temporarily_unavailable'] = 'No disponible temporalmente';

// Recursos: Tipo de plaza
$app_list_strings['stic_resources_places_type_list'][''] = '';
$app_list_strings['stic_resources_places_type_list']['regular'] = 'Regular';
$app_list_strings['stic_resources_places_type_list']['overcrowded'] = 'Sobreocupación';

// Recursos: Tipo de usuario
$app_list_strings['stic_resources_places_users_list'][''] = '';
$app_list_strings['stic_resources_places_users_list']['adults'] = 'Personas adultas';
$app_list_strings['stic_resources_places_users_list']['families'] = 'Familias';
$app_list_strings['stic_resources_places_users_list']['minors'] = 'Menores';

// Recursos: Género
$app_list_strings['stic_resources_places_gender_list'][''] = '';
$app_list_strings['stic_resources_places_gender_list']['men'] = 'Hombres';
$app_list_strings['stic_resources_places_gender_list']['women'] = 'Mujeres';
$app_list_strings['stic_resources_places_gender_list']['mixed'] = 'Mixta';

// Reservas: Estados
$app_list_strings['stic_bookings_status_list'][''] = '';
$app_list_strings['stic_bookings_status_list']['confirmed'] = 'Confirmada';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
/**
* This file is part of SinergiaCRM.
* SinergiaCRM is a work developed by SinergiaTIC Association, based on SuiteCRM.
* Copyright (C) 2013 - 2023 SinergiaTIC Association
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SinergiaTIC Association at email address [email protected].
*/
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}

class SugarWidgetSubPanelCloseButtonstic_Resources extends SugarWidgetField
{
public function displayList(&$layout_def)
{
global $app_strings;
global $subpanel_item_count;
$return_module = $_REQUEST['module'];
$return_id = $_REQUEST['record'];
$module_name = $layout_def['module'];
$record_id = $layout_def['fields']['ID'];
$unique_id = $layout_def['subpanel_id'] . "_close_" . $subpanel_item_count;

if ($module_name === 'stic_Resources') {

$html = "<a id=\"$unique_id\" href=\"javascript:void(0);\" onclick='closeResource(\"$record_id\", \"$return_id\");'>" . $app_strings['LNK_CLOSE'] . "</a>";
return $html;
} else {
return parent::displayList($layout_def);
}
}
}
Loading
Loading