Commit Graph

252 Commits

Author SHA1 Message Date
Olivier PEREZ
04a60e5c57 Add shadow under the text on submit button 2014-12-18 13:12:28 +01:00
Olivier PEREZ
cf207052f5 UI : Add availability to edit poll description + admin mail 2014-12-18 13:08:30 +01:00
Olivier PEREZ
94380c6182 UI : Add availability to edit poll title 2014-12-18 12:47:51 +01:00
Olivier PEREZ
410d2127ce admin: Add some work to poll information pane. 2014-12-17 23:43:06 +01:00
Olivier PEREZ
844315ada4 Recreate adminstuds.php with Smarty style (Work in progress) 2014-12-17 23:20:12 +01:00
Olivier PEREZ
7c5ba2eb17 Split parts of studs.tpl into severals sub-templates. 2014-12-17 23:12:05 +01:00
Olivier PEREZ
ceb6ae3bca Remove old code + Add doc 2014-12-17 13:52:52 +01:00
Olivier PEREZ
9284a5d62b Add licence informations on classes 2014-12-17 13:48:03 +01:00
Olivier PEREZ
ab5f9e013a Implement comments functionnality 2014-12-17 13:47:14 +01:00
Olivier PEREZ
fcc478bb93 Add headers to th cells when editing vote 2014-12-17 13:39:12 +01:00
Olivier PEREZ
7837c01ba0 Fix form control when editing vote 2014-12-17 13:23:32 +01:00
Olivier PEREZ
8604cacc62 studs.php: Move global form just around votes table 2014-12-17 13:22:09 +01:00
Olivier PEREZ
37735e8298 Fix radio button 'no' 2014-12-17 13:18:59 +01:00
Olivier PEREZ
80b06d65cd Some work on vote saving 2014-12-17 13:17:08 +01:00
Olivier PEREZ
e941cf1822 Add availability to edit a vote 2014-12-16 00:45:16 +01:00
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
514369387b Merge branch 'bugfix' into 'master'
Bugfix

- champ horaire ajouté à la bonne taille
- titre meilleur choix
- retouches css
- fix déplacement du formulaire de vote au scroll (mais toujours un problème à la navigation clavier)

See merge request !15
2014-11-18 18:44:49 +01:00
FramaJosephK
ef8eaafd27 Ajout d'horaires en taille sm + titre meilleur choix 2014-11-18 18:38:00 +01:00
FramaJosephK
4654929746 Ajout d'horaires en taille sm + titre meilleur choix 2014-11-18 18:20:19 +01:00
JosephK
a1cdbf4e73 Merge branch 'master' into 'master'
adaptation Windows + Correction bugs

- Adaptations du code pour fonctionner sur Windows (bascule entre langages notamment qui ne fonctionnait pas chez moi)
- corrections de petits bugs (affichage de warning, encodage UTF-8)

See merge request !14
2014-11-18 16:43:37 +01:00
Bob Le Bricodeur
293d813b62 warning correction :
Warning: max(): Array must contain at least one element in "studs.php" on line 615
2014-11-15 02:47:30 +01:00
Bob Le Bricodeur
c1c337142c several warning displayed : A non well formed numeric value encountered in "studs.php"
remove all displayed warning by splitting day and hour in $current variable
2014-11-15 02:41:20 +01:00
Bob Le Bricodeur
bae0054b77 several warning displayed : "A non well formed numeric value encountered in adminstuds.php"
remove all displayed warning by splitting day and hour in $current variable
2014-11-15 02:39:02 +01:00
Bob Le Bricodeur
8910c69495 UTF8_encode(removal date) for date poll 2014-11-15 01:40:59 +01:00
Bob Le Bricodeur
67b72e5b06 remove warning "unknown index horaire0" one first access to choix_date.php 2014-11-15 01:38:23 +01:00
Bob Le Bricodeur
52f4210726 reuse condition from choix_autre.php for Step 1 validation 2014-11-15 01:27:38 +01:00
Bob Le Bricodeur
af54981cf6 correction warning pour acces $config[use_smtp] depuis adminstuds.php 2014-11-15 00:59:33 +01:00
Bob Le Bricodeur
5d981cb717 UTF8 encode on Removal date for French chars on Months 2014-11-15 00:50:27 +01:00
Bob Le Bricodeur
0239dd0735 Add environment variable to be able to switch between languages using Windows 2014-11-15 00:46:55 +01:00
Bob Le Bricodeur
7cee54901f Adaptation setlocale en fonction de l'environnement (Windows) 2014-11-14 22:35:19 +01:00
JosephK
9eccbee0ed Merge branch 'a11y-audit2' into 'master'
Accessibilté suite 2e audit + reprise merge précédent

## Accessibilité
- role="presentation" sur icônes en page d'accueil et sur séparateurs
- aria-hidden du la légende (pas besoin d'être lu par un lecteur d'écran)
- sélecteur de langue par ordre alphabétique
- description en h3 + label pour lecteur d'écran sur adminstuds
- label pour lecteur d'écran pour les champs #day*
- aide à la saisie/après erreur concernant le format d'email
- h4 de la modale pour ajouter img ou lien replacé par un p
- suppression des bootstrap-a11y dans le head

## Locales
- reformulation « Reporter les horaires du premier jour sur les autres jours »
- intitulé plus explicite pour les boutons de suppression de jour, horaires et choix dans choix_(autre|date).php
- découpage du texte concernant la date d'expiration
- « email » remplacé par « courriel » ou « adresse électronique » (évite d'avoir à mettre un <span lang="en"> qui de toute manière ne passe pas dans les title)

## Ergonomie
- formulaire de vote toujours en haut et déplacé en bas au scroll si la longueur du tableau dépasse celle de l'écran
- marge sous les boutons de création de sondage en page d'accueil (sur mobile la correspondance du bouton avec l'img n'était pas claire)

## Config
- config.inc.php supprimé : les valeurs de configuration sont maintenant stockées dans un tableau dans le fichier constant.php (on pourra renommer ce fichier plus tard quand le backend aura été repensé entièrement)
- function.inc.php supprimé, auparavant un fichier du même nom existait et a été remplacé par la classe Utils.php (idem à voir comment on repense le backend). La fonction pour appeler les variables de config ne me paraissait pas nécessaire.
- prise en compte des paramètres de configuration pour la date d'expiration des sondage date et pour le texte expliquant l'envoi des emails
- meilleure gestion des formats de date sur windows ( a priori c'est ce qui bug au #17 )

## Admin
- purge auto limité à 20 sondages pour 1 sondage créé

See merge request !13
2014-11-14 18:18:57 +01:00
FramaJosephK
315fbcf20b label pointe sur le bon input après ajout de jour 2014-11-14 17:49:27 +01:00
FramaJosephK
bf33a4db07 description en h3 sur studs 2014-11-14 17:41:31 +01:00