Commit Graph

1469 Commits

Author SHA1 Message Date
Olivier PEREZ
db915b0bf1 Replace button to CSV export by a link 2014-12-16 00:02:34 +01:00
Olivier PEREZ
d54f2e4759 Improve usage of namespace + Create PollService in /Framadate/Service namespace 2014-12-16 00:02:01 +01:00
Olivier PEREZ
2480d441d4 Remove code in comment 2014-12-15 13:55:46 +01:00
Olivier PEREZ
ad5ea9c6ff Display list of comments + Display form to add a comment 2014-12-15 13:49:25 +01:00
Olivier PEREZ
497762165f studs.tpl: Remove 4 spaces to global indentation 2014-12-15 13:36:26 +01:00
Olivier PEREZ
ecfcae580b Define base template : page.tpl 2014-12-15 13:33:39 +01:00
Olivier PEREZ
448a7c2d38 Clean tpl indentation 2014-12-15 13:29:27 +01:00
Olivier PEREZ
083c9eef2f Add the display of Best Choices listing 2014-12-15 13:27:04 +01:00
Olivier PEREZ
ea105960b4 Add line to add vote + Add line to show best choices 2014-12-14 00:16:49 +01:00
Olivier PEREZ
fafa5393ed studs.tpl : Add a Form convering the whole page 2014-12-12 13:51:13 +01:00
Olivier PEREZ
fcaea63b84 A big part of refactoring
* Use Smarty to split View and Controller on studs page (work in progress)
* Add field "active" to Poll
* And some other stuff...
2014-12-12 13:46:55 +01:00
Olivier PEREZ
3743ad55f1 Make add vote working 2014-12-07 23:12:08 +01:00
Olivier PEREZ
3d0e167e77 Clean a lot of adminstuds.php 2014-12-07 16:47:35 +01:00
Olivier PEREZ
46ea697cb6 Refactor on choix_autre.php
* Utils::issetAndNoEmpty is now removed
* Use Form object to store value from page to page
2014-12-06 19:42:01 +01:00
Olivier PEREZ
de04d47434 Minor changes on "constants.php.template" 2014-12-05 01:09:14 +01:00
Olivier PEREZ
fae91f6f3e Refactor poll creation
* Rename fields in Sondage table
* Add field "editable" which tells when users can edit their votes
* PDO : Configure 2 options (FETCH_OBJ + ERRMODE_EX)
* "formatsondage" does contains "+" (or not) anymore
2014-12-05 01:08:38 +01:00
Olivier PEREZ
b41607a165 Redirect poll creator to administration of created poll 2014-12-04 20:53:16 +01:00
Olivier PEREZ
1437eaf47e Refactoring some code:
* Store all informations about forms into an object "Form" stored in $_SESSION['form']
* Replace connection to database by PDO object
* Check if database is ready in bandeaux.php file
2014-12-03 21:08:08 +01:00
JosephK
54ae3e3b9d && → AND 2014-12-03 19:00:33 +01:00
JosephK
c4f011ba97 Merge branch 'cleaning-polls' into 'master'
Keep polls with bad expiration date in database

related to issue #25

See merge request !29
2014-12-03 18:41:37 +01:00
FramaJosephK
c15ce049ad Keep polls with bad expiration date in database 2014-12-03 18:39:01 +01:00
JosephK
dcee9d4cd6 Produit l'erreur « PHP Parse error: syntax error, unexpected '') === true » 2014-12-03 15:04:12 +01:00
JosephK
887f48699a Merge branch 'bugfix' into 'master'
Nettoyage

- j'ai remis les double quote pour le texte envoyé par email (il y a des sauts de ligne)
- les fonctions dans Utils doivent être appelées avec `self::` en préfixe
- `throw new Exception` dans adminstuds produit une erreur
- j'ai remplacé les « OpenSondage » par « Framadate » dans install ; on garde un nom unique pour le service en ligne et pour le logiciel.

See merge request !28
2014-12-03 14:52:04 +01:00
FramaJosephK
6751a8a9cf Retouches après série de merges 2014-12-03 14:30:25 +01:00
FramaJosephK
811d525239 Merge branch 'RyDroid/framadate-studs.php' 2014-12-03 11:41:05 +01:00
FramaJosephK
a4f6851c65 merge studs RyDroid 2014-12-03 11:40:34 +01:00
FramaJosephK
f0872df179 Merge branch 'RyDroid/framadate-adminstuds.php' 2014-12-03 11:37:27 +01:00
FramaJosephK
d706fbcf85 merge adminstuds RyDroid 2014-12-03 11:36:43 +01:00
JosephK
bbe89ad5c4 Merge branch 'features/install' into 'master'
Page d'installation

Comme pas mal de monde a encore du mal avec composer, voici une page permettant de rendre simple l'installation.

Le script va :
* télécharger composer et l'utiliser directement en PHP (sans exec, en passant par les classes du PHAR)
* copier le fichier de config de template et remplacer les variables par les données indiquées par l'utilisateur
* insérer la base de données

Au passage, on passe plus sur du PDO au lieu des mysql_* afin d'éviter des erreurs de deprecated (mysql est toujours possible via le fichier d'installation)

See merge request !26
2014-12-03 11:30:59 +01:00
JosephK
7a5e97da49 Merge branch 'creation_sondage.php' into 'master'
Cleaning of creation_sondage.php

See merge request !22
2014-12-03 11:27:04 +01:00
JosephK
a04ce7ab7b Merge branch 'Utils' into 'master'
Minor modifications to Utils.php

See merge request !24
2014-12-03 11:24:55 +01:00
JosephK
5b10550031 Merge branch 'choix_date.php' into 'master'
choix date.php

See merge request !20
2014-12-03 11:18:41 +01:00
JosephK
b5cd38d5b4 Merge branch 'fix/composer' into 'master'
Fix/composer

Ce pull request complète le fichier composer.json et ajouter le fichier composer.lock au dépôt.

Le fichier composer.lock devrait être mis dans le dépôt car cela permet d'être certain que lors d'un déploiement, on se retrouve avec les mêmes versions des dépendances que lors du développement et donc ne pas avoir de mauvaise surprise.
Voir : https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file

See merge request !25
2014-12-02 18:37:06 +01:00
JosephK
f5e30cc5fe Merge branch 'admin' into 'master'
Small cleaning of admin/index.php

See merge request !23
2014-12-02 18:30:00 +01:00
JosephK
8675cf0f7b Merge branch 'gitignore' into 'master'
Updating .gitignore

See merge request !19
2014-12-02 18:25:54 +01:00
JosephK
810f19651a Merge branch 'license' into 'master'
Clearer names for LICENSE files

See merge request !17
2014-12-02 18:25:03 +01:00
JosephK
6909722fad Merge branch 'bugfix-de_DE' into 'master'
Bugfix + Trad de_DE

- manque `global $config;` dans `ajouter_sondage()` pour que les mails puissent partir
- bug avec des horaires vides mal interprétés (entraîne une erreur 502)
- ajout de la traduction allemande

See merge request !27
2014-12-02 18:23:49 +01:00
FramaJosephK
2c49a9f0ac Fix horaires vides + fix mails qui partent pas + de_DE 2014-12-02 18:15:15 +01:00
Simon Leblanc
1a5846a156 move install into his own folder and split code into class 2014-11-30 01:02:11 +01:00
Simon Leblanc
16da53707f First implementation of the installer 2014-11-28 05:12:21 +01:00
Simon Leblanc
0468fb6d8c Add the composer.lock into the repository
Adding the composer.lock in the repository is a best practice :
https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
2014-11-27 23:44:21 +01:00
Simon Leblanc
b9e669a757 complete composer.json file 2014-11-27 23:42:57 +01:00
Spanti Nicola (RyDroid)
e6d171a4b0 Minor modifications to Utils.php 2014-11-27 01:15:01 +01:00
Spanti Nicola (RyDroid)
18505484ef Small cleaning of admin/index.php 2014-11-27 00:52:47 +01:00
Spanti Nicola (RyDroid)
4235e1697a Small cleaning of creation_sondage.php 2014-11-27 00:39:15 +01:00
Spanti Nicola (RyDroid)
b680220ec9 Small cleaning of studs.php 2014-11-27 00:10:49 +01:00
Spanti Nicola (RyDroid)
9017676f70 Small cleaning of choix_date.php 2014-11-26 23:47:40 +01:00
Spanti Nicola (RyDroid)
151f18bd96 Updating .gitignore 2014-11-26 20:11:20 +01:00
Spanti Nicola (RyDroid)
8272e0db84 Cleaning of adminstuds.php 2014-11-26 19:32:22 +01:00
Spanti Nicola (RyDroid)
0e91c25789 Clearer names for LICENSE files
Licence also exists in english. https://en.wiktionary.org/wiki/licence
2014-11-26 18:32:50 +01:00