Unverified Commit deb26874 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Replace biopen by gogo

parent a267dab4

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
......@@ -49,15 +49,15 @@ body.gogo-load-css
position:relative;
margin-top: 0;
margin-left: auto;
margin-right: auto;
width:100%;
padding: 0rem;
margin-right: auto;
width:100%;
padding: 0rem;
@media screen and (min-width: 900px)
{
margin-top: 30px;
max-width: 900px;
width:80%;
width:80%;
}
&.with-sidebar {
......@@ -83,13 +83,13 @@ body.gogo-load-css
#page-content.with-section {
background-color: transparent;
section {
section {
border-radius: 5px;
}
}
.divider
{
.divider
{
overflow: hidden;
border-bottom: 2px dashed;
overflow: hidden;
......@@ -107,7 +107,7 @@ body.gogo-load-css
// ---------------------------------------
// MISE EN PAGE GENERALE
// ---------------------------------------
// ---------------------------------------
h1
{
font-size: 2.5rem;
......@@ -138,7 +138,7 @@ body.gogo-load-css
margin-bottom: 0;
}
.btn-biopen
.btn-gogo
{
&.small
{
......
......@@ -3,20 +3,20 @@
* @Date: 2017-04-03 13:36:02
* @Last Modified by: Sebastian Castro
* @Last Modified time: 2018-03-18 13:46:56
*/
*/
#page-content.register
{
@media #{$small-only} { padding-top: 10px; }
max-width: 600px !important;
background-color: transparent !important;
section {
section {
background-color: white;
border-radius: 5px;
}
.form-actions {
text-align: center;
margin-top: 1rem;
.form-actions {
text-align: center;
margin-top: 1rem;
height: 2rem;
@media #{$medium-and-up} { margin-top: 2rem; }
.btn { width: 100%; }
......@@ -27,7 +27,7 @@
}
}
form.biopen_user_profile, form.fos_user_registration_register
form.gogo_user_profile, form.fos_user_registration_register
{
#input-range {
box-shadow: none !important;
......@@ -52,7 +52,7 @@ form.biopen_user_profile, form.fos_user_registration_register
.error ul {
margin-bottom: 20px;
margin-top: 0;
li {
li {
margin-left: 3rem;
}
}
......@@ -80,4 +80,4 @@ form.biopen_user_profile, form.fos_user_registration_register
}
h2 { text-align: center !important; }
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -4,7 +4,7 @@ fos_user:
user_class: App\Document\User
registration:
form:
type: biopen_user_registration
type: gogo_user_registration
confirmation:
enabled: true
......
......@@ -45,15 +45,15 @@ security:
provider: fos_userbundle
login_path: /login
use_forward: true
default_target_path: biopen_homepage
default_target_path: gogo_homepage
use_referer: true
check_path: /login_check
failure_path: /login
success_handler: biopen.authentication_handler
failure_handler: biopen.authentication_handler
success_handler: gogo.authentication_handler
failure_handler: gogo.authentication_handler
logout:
path: /logout
success_handler: biopen.authentication_handler
success_handler: gogo.authentication_handler
anonymous: ~
oauth:
resource_owners:
......
......@@ -17,8 +17,8 @@ sonata_admin:
dashboard:
blocks:
# display a dashboard block
- { position: left, type: biopen.block.recent_elements, settings: { title: 'Dernières validation collaboratives', filterStatus: 2, class: box-success}}
- { position: right, type: biopen.block.recent_elements, settings: { title: 'Derniers refus collaboratifs', filterStatus: -3 , class: box-danger}}
- { position: left, type: gogo.block.recent_elements, settings: { title: 'Dernières validation collaboratives', filterStatus: 2, class: box-success}}
- { position: right, type: gogo.block.recent_elements, settings: { title: 'Derniers refus collaboratifs', filterStatus: -3 , class: box-danger}}
- { position: top, class: col-md-12, type: sonata.block.service.monitoring}
- { position: top, class: col-md-12, type: sonata.block.service.charts}
groups:
......@@ -52,5 +52,5 @@ sonata_block:
# enable the SonataAdminBundle block
sonata.block.service.monitoring:
sonata.block.service.charts:
biopen.block.recent_elements:
gogo.block.recent_elements:
contexts: [admin]
\ No newline at end of file
......@@ -3,32 +3,32 @@ vich_uploader:
mappings:
default_file:
upload_destination: '%kernel.root_dir%/../web'
directory_namer: biopen.upload_directory_namer
directory_namer: gogo.upload_directory_namer
namer: vich_uploader.namer_origname
import_file:
upload_destination: '%kernel.root_dir%/../web'
directory_namer: biopen.upload_directory_namer
directory_namer: gogo.upload_directory_namer
image:
upload_destination: '%kernel.root_dir%/../web'
# inject_on_load: true
directory_namer: biopen.upload_directory_namer
directory_namer: gogo.upload_directory_namer
namer: vich_uploader.namer_origname
element_image:
upload_destination: '%kernel.root_dir%/../web'
directory_namer: biopen.upload_directory_namer
directory_namer: gogo.upload_directory_namer
namer: vich_uploader.namer_origname
delete_on_remove: true
element_file:
upload_destination: '%kernel.root_dir%/../web'
directory_namer: biopen.upload_directory_namer
directory_namer: gogo.upload_directory_namer
namer: vich_uploader.namer_origname
delete_on_remove: true
partner_image:
upload_destination: '%kernel.root_dir%/../web'
directory_namer: biopen.upload_directory_namer
directory_namer: gogo.upload_directory_namer
namer: ~
config_image:
upload_destination: '%kernel.root_dir%/../web'
directory_namer: biopen.upload_directory_namer
directory_namer: gogo.upload_directory_namer
namer: ~
# if you add new image class, don't forget to add the relevant service in services_admin.yml
\ No newline at end of file
# ------------------------------------------------------
# OTHERS ROUTES CAN BE FOUND INSIDE routes/gogo_**.yaml
# ------------------------------------------------------
biopen_homepage:
gogo_homepage:
path: /
defaults: { _controller: App\Controller\CoreController::homeAction }
biopen_homepage_force:
gogo_homepage_force:
path: /home
controller: App\Controller\CoreController::homeAction
defaults:
force: true
biopen_directory:
gogo_directory:
path: /annuaire
defaults: { _controller: App\Controller\DirectoryController::renderAction }
biopen_directory_showElement:
gogo_directory_showElement:
path: /annuaire#/fiche/element/{id}
defaults: { _controller: App\Controller\DirectoryController::renderAction }
biopen_partners:
gogo_partners:
path: /qui-sommes-nous
defaults: { _controller: App\Controller\CoreController::partnersAction }
# ELEMENT CRUD
biopen_element_add:
gogo_element_add:
path: /elements/add
defaults: { _controller: App\Controller\ElementFormController::addAction }
biopen_element_edit:
gogo_element_edit:
path: /elements/edit/{id}
defaults: { _controller: App\Controller\ElementFormController::editAction }
biopen_element_check_duplicate:
gogo_element_check_duplicate:
path: /elements/check-doublons
defaults: { _controller: App\Controller\ElementFormController::checkDuplicatesAction }
# ELEMENT INTERACTIONS
biopen_vote_for_element:
gogo_vote_for_element:
path: /interact/vote
defaults: { _controller: App\Controller\ElementInteractionController::vote }
requirements:
methods: POST
biopen_report_error_for_element:
gogo_report_error_for_element:
path: /interact/report
defaults: { _controller: App\Controller\ElementInteractionController::reportError }
requirements:
methods: POST
biopen_delete_element:
gogo_delete_element:
path: /interact/delete
defaults: { _controller: App\Controller\ElementInteractionController::delete }
requirements:
methods: POST
biopen_resolve_reports_element:
gogo_resolve_reports_element:
path: /interact/resolve-reports
defaults: { _controller: App\Controller\ElementInteractionController::resolveReportsAction }
requirements:
methods: POST
biopen_element_send_mail:
gogo_element_send_mail:
path: /interact/sendMail
defaults: { _controller: App\Controller\ElementInteractionController::sendMailAction }
requirements:
methods: POST
biopen_element_stamp:
gogo_element_stamp:
path: /interact/stamp
defaults: { _controller: App\Controller\ElementInteractionController::stampAction }
requirements:
methods: POST
# USERS
biopen_user_space:
gogo_user_space:
path: /user/mon-espace
defaults: { _controller: App\Controller\UserController::userSpaceAction }
biopen_user_profile:
gogo_user_profile:
path: /user/profile
defaults: { _controller: App\Controller\UserController::profileAction }
biopen_user_contributions:
gogo_user_contributions:
path: /user/contributions
defaults: { _controller: App\Controller\UserController::contributionsAction }
biopen_user_votes:
gogo_user_votes:
path: /user/votes
defaults: { _controller: App\Controller\UserController::votesAction }
biopen_user_reports:
gogo_user_reports:
path: /user/reports
defaults: { _controller: App\Controller\UserController::reportsAction }
biopen_user_become_owner:
gogo_user_become_owner:
path: /user/become-owner/{id}
defaults: { _controller: App\Controller\UserController::becomeOwnerAction }
# SAAS
biopen_saas_new_project:
gogo_saas_new_project:
path: project/new
defaults: { _controller: App\Controller\ProjectController::createAction }
biopen_saas_initialize_project:
gogo_saas_initialize_project:
path: project/initialize
defaults: { _controller: App\Controller\ProjectController::initializeAction }
biopen_saas_home:
gogo_saas_home:
path: projects
defaults: { _controller: App\Controller\ProjectController::homeAction }
biopen_project_delete_my_project:
gogo_project_delete_my_project:
path: admin/delete-my-project
defaults: { _controller: App\Controller\ProjectController::deleteCurrProjectAction }
biopen_project_delete_saas_record:
gogo_project_delete_saas_record:
path: project/delete/{dbName}
defaults: { _controller: App\Controller\ProjectController::deleteSaasRecordAction }
......
biopen_mail_draft_automated:
gogo_mail_draft_automated:
path: /test-emails/automated/{mailType}
defaults: { _controller: App\Controller\MailTestController::draftAutomatedAction }
biopen_mail_send_test_automated:
gogo_mail_send_test_automated:
path: /test-emails/automated/send/{mailType}
defaults: { _controller: App\Controller\MailTestController::sentTestAutomatedAction }
biopen_core_help:
gogo_core_help:
path: /help
defaults: { _controller: App\Controller\CoreController::helpAction }
# BULK ACTIONS
biopen_bulk_actions_index:
gogo_bulk_actions_index:
path: /admin/bulkActions/index
defaults: { _controller: App\Controller\Admin\BulkActions\BulkCoreController::indexAction }
biopen_bulk_actions_delete_element_reported:
gogo_bulk_actions_delete_element_reported:
path: /admin/bulkActions/deleteElementReportedAsNoMoreExisting
defaults: { _controller: App\Controller\Admin\BulkActions\ModerationActionsController::deleteElementReportedAsNoMoreExistingAction }
biopen_bulk_actions_update_gamification:
gogo_bulk_actions_update_gamification:
path: /admin/bulkActions/updateGamification
defaults: { _controller: App\Controller\Admin\BulkActions\DataUpdateActionsController::updateGamificationAction }
biopen_bulk_actions_detect_duplicates:
gogo_bulk_actions_detect_duplicates:
path: /admin/bulkActions/detectDuplicates
defaults: { _controller: App\Controller\Admin\BulkActions\DuplicatesActionsController::detectDuplicatesAction }
# DUPLICATES
biopen_duplicates_index:
gogo_duplicates_index:
path: /duplicates
defaults: { _controller: App\Controller\DuplicatesController::indexAction }
biopen_mark_as_non_duplicate:
gogo_mark_as_non_duplicate:
path: /duplicates/mark-as-non-duplicate
defaults: { _controller: App\Controller\DuplicatesController::markAsNonDuplicateAction }
requirements:
methods: POST
# IMPORT
biopen_element_import_available_options:
gogo_element_import_available_options:
path: /admin/import/available-options
defaults: { _controller: App\Controller\ImportController::availableOptionsAction }
biopen_import_state:
gogo_import_state:
path: /admin/import/{id}/state
defaults: { _controller: App\Controller\ImportController::currStateAction }
requirements:
methods: GET
biopen_element_generate:
gogo_element_generate:
path: /generate/{nombre}/{generateVotes}
controller: App\Controller\ImportController::generateRandomAction
defaults:
......
# ELEMENTS
biopen_api_ui:
gogo_api_ui:
path: /api
defaults: { _controller: App\Controller\APIController::apiUi }
biopen_api_elements_from_text:
gogo_api_elements_from_text:
path: /api/elements/search
defaults: { _controller: App\Controller\APIController::getElementsFromTextAction }
requirements:
methods: GET
biopen_api_element_get:
gogo_api_element_get:
path: /api/elements/{id}.{_format}
defaults: { _controller: App\Controller\APIController::getElementsAction, id: null, _format: json }
requirements:
methods: GET
_format: json|jsonld
biopen_api_elements_index:
gogo_api_elements_index:
path: /api/elements.{_format}
defaults: { _controller: App\Controller\APIController::getElementsAction, id: null, _format: json }
requirements:
......@@ -24,7 +24,7 @@ biopen_api_elements_index:
_format: json|jsonld
# TAXONOMY
biopen_api_taxonomy_show:
gogo_api_taxonomy_show:
path: /api/taxonomy/{id}.{_format}
defaults: { _controller: App\Controller\APIController::getTaxonomyAction, id: null, _format: json }
requirements:
......@@ -33,7 +33,7 @@ biopen_api_taxonomy_show:
options:
expose: true
biopen_api_taxonomy:
gogo_api_taxonomy:
path: /api/taxonomy.{_format}
defaults: { _controller: App\Controller\APIController::getTaxonomyAction, id: null, _format: json }
requirements:
......@@ -42,7 +42,7 @@ biopen_api_taxonomy:
options:
expose: true
biopen_api_taxonomy_mapping:
gogo_api_taxonomy_mapping:
path: /api/taxonomy-mapping
defaults: { _controller: App\Controller\APIController::getTaxonomyMappingAction, id: null, _format: json }
requirements:
......@@ -50,45 +50,45 @@ biopen_api_taxonomy_mapping:
_format: json
# CONFIGURATION / INFOS
biopen_api_manifest:
gogo_api_manifest:
path: /api/manifest.{_format}
defaults: { _controller: App\Controller\APIController::getManifest, _format: json }
requirements:
methods: GET
_format: json
biopen_api_project_info:
gogo_api_project_info:
path: /api/project-info.json
defaults: { _controller: App\Controller\APIController::getProjectInfoAction }
requirements:
methods: GET
biopen_api_configuration:
gogo_api_configuration:
path: /api/configuration.json
defaults: { _controller: App\Controller\APIController::getConfigurationAction }
requirements:
methods: GET
biopen_api_gogocartojs_configuration:
gogo_api_gogocartojs_configuration:
path: /api/gogocartojs-conf.json
defaults: { _controller: App\Controller\APIController::getGoGoCartoJsConfigurationAction }
requirements:
methods: GET
# LOGS
biopen_api_log_hide:
gogo_api_log_hide:
path: /api/log/{id}/hide
defaults: { _controller: App\Controller\APIController::hideLogAction }
requirements:
methods: POST
biopen_api_log_hide_all:
gogo_api_log_hide_all:
path: /api/logs/hide-all
defaults: { _controller: App\Controller\APIController::hideAllLogsAction }
requirements:
methods: GET
biopen_api_message_hide_all:
gogo_api_message_hide_all:
path: /api/messages/hide-all
defaults: { _controller: App\Controller\APIController::hideAllMessagesAction }
requirements:
......
......@@ -41,7 +41,7 @@ services:
# - { resource: "../src/Saas/Resources/config/services.yml" }
# - { resource: "../src/Saas/Resources/config/services_admin.yml" }
# - { resource: "../src/Sonata/UserBundle/Resources/config/services.yml" }
biopen.authentication_handler:
gogo.authentication_handler:
class: Application\Sonata\UserBundle\Security\AuthenticationHandler
public: true
arguments: [ '@router', '@session', "@security.token_storage"]
......@@ -95,11 +95,11 @@ services:
# sonata.block.service.charts:
# class: App\Block\ChartBlockService
# public: true
# arguments: [ "@templating", "@doctrine.odm.mongodb.document_manager", "@biopen.config_service" ]
# arguments: [ "@templating", "@doctrine.odm.mongodb.document_manager", "@gogo.config_service" ]
# tags:
# - { name: sonata.block }
# biopen.block.recent_elements:
# gogo.block.recent_elements:
# class: App\Block\RecentElementsBlockService
# public: true
# arguments: [ "@templating", "@doctrine.odm.mongodb.document_manager", "@sonata.admin.pool" ]
......
......@@ -22,8 +22,8 @@ use Sonata\AdminBundle\Form\Type\CollectionType;
class CategoryAdmin extends AbstractAdmin
{
protected $baseRouteName = 'admin_biopen_geodirectory_category';
protected $baseRoutePattern = 'admin_biopen_geodirectory_category';
protected $baseRouteName = 'admin_gogo_geodirectory_category';
protected $baseRoutePattern = 'admin_gogo_geodirectory_category';
public function createQuery($context = 'list')
{
......
......@@ -20,8 +20,8 @@ use Knp\Menu\ItemInterface;
class CategoryLiteAdmin extends AbstractAdmin
{
protected $baseRouteName = 'admin_biopen_geodirectory_category_lite';
protected $baseRoutePattern = 'admin_biopen_geodirectory_category_lite';
protected $baseRouteName = 'admin_gogo_geodirectory_category_lite';
protected $baseRoutePattern = 'admin_gogo_geodirectory_category_lite';
protected function configureFormFields(FormMapper $formMapper)
{
......@@ -35,6 +35,6 @@ class CategoryLiteAdmin extends AbstractAdmin
->add('displayInMenu', null, array('required' => false, 'label' => "Menu"))
->add('displayInInfoBar', null, array('required' => false, 'label' => "Fiche"))
->add('displayInForm', null, array('required' => false, 'label' => "Formulaire"))
->add('_link', 'text', array('required' => false, 'mapped'=>false, 'label' => 'admin_biopen_geodirectory_category_edit'));
->add('_link', 'text', array('required' => false, 'mapped'=>false, 'label' => 'admin_gogo_geodirectory_category_edit'));
}
}
\ No newline at end of file
......@@ -18,9 +18,9 @@ use Symfony\Component\Form\Extension\Core\Type\TextType;
class ConfigurationAPIAdmin extends ConfigurationAbstractAdmin
{
protected $baseRouteName = 'biopen_core_bundle_config_api_admin_classname';
protected $baseRouteName = 'gogo_core_bundle_config_api_admin_classname';
protected $baseRoutePattern = 'biopen/core/configuration-api';
protected $baseRoutePattern = 'gogo/core/configuration-api';
protected function configureFormFields(FormMapper $formMapper)
{
......
......@@ -17,9 +17,9 @@ use Sonata\AdminBundle\Form\Type\AdminType;
class ConfigurationContributionsAdmin extends ConfigurationAbstractAdmin
{
protected $baseRouteName = 'biopen_core_bundle_config_contributions_admin_classname';
protected $baseRouteName = 'gogo_core_bundle_config_contributions_admin_classname';
protected $baseRoutePattern = 'biopen/core/configuration-contributions';
protected $baseRoutePattern = 'gogo/core/configuration-contributions';
protected function configureFormFields(FormMapper $formMapper)
{
......
......@@ -17,9 +17,9 @@ use Symfony\Component\Form\Extension\Core\Type\TextareaType;
class ConfigurationFormAdmin extends ConfigurationAbstractAdmin
{
protected $baseRouteName = 'biopen_core_bundle_config_form_admin_classname';
protected $baseRouteName = 'gogo_core_bundle_config_form_admin_classname';
protected $baseRoutePattern = 'biopen/core/configuration-form';
protected $baseRoutePattern = 'gogo/core/configuration-form';
protected function configureFormFields(FormMapper $formMapper)
{
......
......@@ -17,9 +17,9 @@ use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
class ConfigurationHomeAdmin extends ConfigurationAbstractAdmin
{
protected $baseRouteName = 'biopen_core_bundle_config_home_admin_classname';
protected $baseRouteName = 'gogo_core_bundle_config_home_admin_classname';
protected $baseRoutePattern = 'biopen/core/configuration-home';
protected $baseRoutePattern = 'gogo/core/configuration-home';
protected function configureFormFields(FormMapper $formMapper)
{
......
......@@ -19,9 +19,9 @@ use Sonata\AdminBundle\Form\Type\AdminType;
class ConfigurationInfoBarAdmin extends ConfigurationAbstractAdmin
{