Skip to content

Commit

Permalink
Add bootstrap and some features to the agenda
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnuk committed Dec 31, 2013
1 parent 45b5865 commit 8eb3de3
Show file tree
Hide file tree
Showing 24 changed files with 1,470 additions and 183 deletions.
661 changes: 661 additions & 0 deletions COPYING.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
@@ -1,3 +1,3 @@
# Emploi du temps Université de savoie
# Agenda de l'Université de savoie

Ce projet a pour but de proposer des webservices pour récupérer l'emploi du temps de l'Université de Savoie.
Ce projet a pour but de proposer des webservices pour récupérer l'emploi du temps de l'Université de Savoie et s'orienter vers d'autres universités.
1 change: 1 addition & 0 deletions app/AppKernel.php
Expand Up @@ -19,6 +19,7 @@ public function registerBundles()
new Univ\Savoie\EdtBundle\UnivSavoieEdtBundle(),
new Crous\Grenoble\MenuBundle\CrousGrenobleMenuBundle(),
new Etudiant\AgendaBundle\EtudiantAgendaBundle(),
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
);

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
Expand Down
28 changes: 25 additions & 3 deletions app/Resources/views/base.html.twig
Expand Up @@ -2,12 +2,34 @@
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}{% endblock %}
<title>{% block title %}Agenda Étudiant{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% block stylesheets %}
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">

<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css">
<!-- Base theme -->
<link rel="stylesheet" href="{{ asset('stylesheets/base.css') }}">
{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
<div id="waiting"></div>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
<div class="container">
<footer>
Ce site est sous licence libre AGPL V3.0, <a title="à propos" href="{{ path('agenda_about') }}" role="button">en savoir plus</a>. <span class="label label-primary">Version bêta</span>
</footer>
</div>
{% block javascripts %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script>
<script src="{{ asset('javascripts/base.js') }}"></script>
{% endblock %}
</body>
</html>
2 changes: 2 additions & 0 deletions app/config/routing.yml
Expand Up @@ -13,3 +13,5 @@ univ_savoie_edt:
type: annotation
prefix: /

fos_js_routing:
resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"
9 changes: 5 additions & 4 deletions composer.json
@@ -1,8 +1,8 @@
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"name": "gnkam/agenda-etudiant",
"license": "AGPL-3.0",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"description": "Agenda pour les étudiants",
"autoload": {
"psr-0": { "": "src/" }
},
Expand All @@ -23,7 +23,8 @@
"gnkam/univ-savoie-menu": "*@dev",
"gnkam/base": "*@dev",
"gnkw/symfony": "2.*",
"sabre/vobject": "3.*"
"sabre/vobject": "3.*",
"friendsofsymfony/jsrouting-bundle": "@stable"
},
"scripts": {
"post-install-cmd": [
Expand Down
18 changes: 18 additions & 0 deletions src/Crous/Grenoble/MenuBundle/Controller/ApiController.php
@@ -1,4 +1,22 @@
<?php
/*
* Copyright (c) 2013 GNKW & Kamsoft.fr
*
* This file is part of GNKam Agenda Etudiant.
*
* GNKam Agenda Etudiant is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GNKam Agenda Etudiant 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 GNKam Agenda Etudiant. If not, see <http://www.gnu.org/licenses/>.
*/

namespace Crous\Grenoble\MenuBundle\Controller;

Expand Down
18 changes: 18 additions & 0 deletions src/Crous/Grenoble/MenuBundle/Controller/IcsController.php
@@ -1,4 +1,22 @@
<?php
/*
* Copyright (c) 2013 GNKW & Kamsoft.fr
*
* This file is part of GNKam Agenda Etudiant.
*
* GNKam Agenda Etudiant is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GNKam Agenda Etudiant 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 GNKam Agenda Etudiant. If not, see <http://www.gnu.org/licenses/>.
*/

namespace Crous\Grenoble\MenuBundle\Controller;

Expand Down
18 changes: 18 additions & 0 deletions src/Crous/Grenoble/MenuBundle/CrousGrenobleMenuBundle.php
@@ -1,4 +1,22 @@
<?php
/*
* Copyright (c) 2013 GNKW & Kamsoft.fr
*
* This file is part of GNKam Agenda Etudiant.
*
* GNKam Agenda Etudiant is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GNKam Agenda Etudiant 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 GNKam Agenda Etudiant. If not, see <http://www.gnu.org/licenses/>.
*/

namespace Crous\Grenoble\MenuBundle;

Expand Down
61 changes: 61 additions & 0 deletions src/Etudiant/AgendaBundle/Controller/DefaultController.php
@@ -1,4 +1,22 @@
<?php
/*
* Copyright (c) 2013 GNKW & Kamsoft.fr
*
* This file is part of GNKam Agenda Etudiant.
*
* GNKam Agenda Etudiant is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GNKam Agenda Etudiant 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 GNKam Agenda Etudiant. If not, see <http://www.gnu.org/licenses/>.
*/

namespace Etudiant\AgendaBundle\Controller;

Expand All @@ -18,6 +36,22 @@ public function indexAction()
return array();
}

/**
* @Template()
* @param string $active active entry in menu (optional)
*/
public function menuAction($active = null, $button = '')
{
$menus = array(
'agenda_index' => 'Accueil',
'agenda_edt' => 'Emploi du temps',
'agenda_support' => 'Support',
'agenda_about' => 'À propos',
'agenda_api' => 'Api'
);
return array('active' => $active, 'menus' => $menus, 'button' => $button);
}

/**
* @Route("/edt", name="agenda_edt")
* @Template()
Expand All @@ -26,4 +60,31 @@ public function edtAction()
{
return array();
}

/**
* @Route("/support", name="agenda_support")
* @Template()
*/
public function supportAction()
{
return array();
}

/**
* @Route("/about", name="agenda_about")
* @Template()
*/
public function aboutAction()
{
return array();
}

/**
* @Route("/api", name="agenda_api")
* @Template()
*/
public function apiAction()
{
return array();
}
}
18 changes: 18 additions & 0 deletions src/Etudiant/AgendaBundle/EtudiantAgendaBundle.php
@@ -1,4 +1,22 @@
<?php
/*
* Copyright (c) 2013 GNKW & Kamsoft.fr
*
* This file is part of GNKam Agenda Etudiant.
*
* GNKam Agenda Etudiant is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GNKam Agenda Etudiant 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 GNKam Agenda Etudiant. If not, see <http://www.gnu.org/licenses/>.
*/

namespace Etudiant\AgendaBundle;

Expand Down

0 comments on commit 8eb3de3

Please sign in to comment.