├── .gitignore ├── Resources ├── config │ ├── routing.yml │ ├── doctrine │ │ └── Project.orm.yml │ ├── routing │ │ └── project.yml │ └── services.yml ├── public │ └── css │ │ ├── project-show-sidebar.css │ │ └── project-table.css ├── translations │ ├── validators.sv.yml │ ├── validators.en.yml │ ├── messages.en.yml │ └── messages.sv.yml └── views │ ├── Project │ ├── edit.html.twig │ ├── new.html.twig │ ├── base.html.twig │ ├── delete.html.twig │ ├── index.html.twig │ ├── sidebar.html.twig │ ├── table.html.twig │ └── show.html.twig │ ├── base.html.twig │ └── Macro │ └── tableMacro.html.twig ├── HappyrUserProjectBundle.php ├── Model ├── ProjectMemberInterface.php └── ProjectObjectInterface.php ├── Event ├── ProjectEvent.php ├── JoinRequestEvent.php ├── ProjectObjectEvent.php └── BaseEvent.php ├── .travis.yml ├── DependencyInjection ├── Configuration.php └── HappyrUserProjectExtension.php ├── composer.json ├── Tests └── Factory │ └── ProjectFactoryTest.php ├── Form └── ProjectType.php ├── phpunit.xml.dist ├── Manager ├── SecurityManager.php ├── SecureProjectManager.php ├── BaseAclManager.php ├── ProjectManager.php └── PermissionManager.php ├── Entity ├── ProjectRepository.php └── Project.php ├── README.md ├── Factory └── ProjectFactory.php ├── Service └── ProjectService.php └── Controller └── ProjectController.php /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | phpunit.xml 3 | composer.lock 4 | vendor 5 | -------------------------------------------------------------------------------- /Resources/config/routing.yml: -------------------------------------------------------------------------------- 1 | happyr_user_project_project: 2 | resource: "@HappyrUserProjectBundle/Resources/config/routing/project.yml" 3 | prefix: /projects 4 | -------------------------------------------------------------------------------- /Resources/public/css/project-show-sidebar.css: -------------------------------------------------------------------------------- 1 | #project-show-sidebar-extend h3 { 2 | margin-top: 0.5em; 3 | } 4 | 5 | #project-show-sidebar-extend section { 6 | margin: 0.5em 0 1.5em; 7 | 8 | } -------------------------------------------------------------------------------- /Resources/translations/validators.sv.yml: -------------------------------------------------------------------------------- 1 | happyr.user.project.name: 2 | short: 'Projektets namn är för kort' 3 | blank: 'Du måste ange ett namn på projektet' 4 | long: 'Projektets namn är för långt' 5 | -------------------------------------------------------------------------------- /Resources/translations/validators.en.yml: -------------------------------------------------------------------------------- 1 | happyr.user.project.name: 2 | long: 'The name of the project is too long' 3 | short: 'The name of the project is too short' 4 | blank: 'You have to write a name of the project' 5 | -------------------------------------------------------------------------------- /Resources/views/Project/edit.html.twig: -------------------------------------------------------------------------------- 1 | {% extends 'HappyrUserProjectBundle:Project:base.html.twig' %} 2 | 3 | 4 | {% block content -%} 5 |
{% trans %}happyr.user.project.project.new.paragraph{% endtrans %}
6 | 7 | {{ form(form) }} 8 | 9 | {% endblock %} 10 | -------------------------------------------------------------------------------- /Resources/views/Project/base.html.twig: -------------------------------------------------------------------------------- 1 | {% extends '@HappyrUserProject/base.html.twig' %} 2 | 3 | 4 | {% block headercontent %} 5 |