Commit Graph

149 Commits

Author SHA1 Message Date
Olivier Perez
cdf4f0caec Merge branch 'release/0.9' into 'release/0.9'
Bugfixes

- Prévention de la suppression du dernier slot
- Correction des problèmes de \n dans la description et les commentaires
- Correction de la date de suppression du sondage
- Blindage du format de la date d'expiration du sondage

See merge request !55
2015-05-29 19:07:48 +02:00
Olivier PEREZ
c9c45a2d24 Send mail to admin when update/delete a poll 2015-05-29 19:03:29 +02:00
Antonin
fa111ab04e Prevent from deleting the last slot
- Also fix the corresponding translation when a problem arise.
2015-05-29 18:53:09 +02:00
Antonin
755580463d Fix the change of expiration date check which was too loose. 2015-05-29 17:36:13 +02:00
Olivier Perez
f5c4ddddbe Fix missing key 2015-04-15 13:03:13 +02:00
Antonin
fbd45960b7 Changing some actions from POST to GET. 2015-04-13 15:45:01 +02:00
Olivier PEREZ
6d1f0ada0e Don't allow black title, name or comment 2015-04-11 17:13:16 +02:00
Olivier PEREZ
201d5168fe Refactor the input filter system 2015-04-11 16:02:07 +02:00
Olivier PEREZ
663f08f607 Merge branch 'feature/Work_on_Service_and_Repository' into develop 2015-04-07 22:26:13 +02:00
Olivier PEREZ
15baf349de Always show vote result on adminstuds 2015-04-07 21:55:34 +02:00
Antonin
af668d2428 Correcting 'Undefined index' notice on hidden 2015-04-07 17:40:20 +02:00
Antonin
213980e807 Remove POST['poll'] access 2015-04-07 17:39:57 +02:00
Antonin
a135f74383 Hidden results option is taken into account.
- Also added possibility for the poll's maker to edit this hidden results option.
2015-04-06 12:40:59 +02:00
Antonin
a3f5763edd New edition possibility is taken into account
- Also added Framadate\Message à link attribute
	- Added local anchor #edit with vote edition
	- For now, when the poll owner check the new edit option (ie: "Votes are editable solely by their owner"), users get their update link on vote creation
2015-04-05 17:44:29 +02:00
Olivier PEREZ
b47c153aae More Splitting between Services and Repositories 2015-04-03 00:11:36 +02:00
Antonin
4c137748b4 Editing vote by link with unique id
- Changed the smarty modifier poll_url to a function and added the vote_id parameter
	- Modified accordingly all poll_url occurence in templates
	- Added htaccess.txt to be sure to keep poll's URL changes up to date
	- Escaped some templates output in order to avoid to broke HTML
	- Using vote's uniqId instead of vote's id when it's needed
2015-04-02 16:56:52 +02:00
Olivier PEREZ
6d34631fbf Replace calls to __('Section\Key') with __('Section', 'Key') 2015-03-30 15:19:56 +02:00
Antonin
e4ec0c8105 Passing message directly in template 2015-03-26 16:48:39 +01:00
Antonin
b66a47ef67 Added simple javascript check for the name.
- The goal here is to prevent the losing of the choices by having a bad name.
	- This is a POC, there is probably some cleaning before merge
2015-03-26 16:33:11 +01:00
Olivier PEREZ
0ced885fe7 Change i18n system around adminstuds.php + Add some missing keys 2015-03-24 00:04:07 +01:00
Olivier PEREZ
119d0e01e1 Start changing the i18n system.
* Now works on windows servers
* Byebye .po/.mo, welcome .json
* Byebye old gettext library, welcome o80-i18n
2015-03-22 23:33:03 +01:00
Olivier PEREZ
0efc3d4bcc Fix the update of poll infos 2015-03-18 00:46:19 +01:00
Olivier PEREZ
b051dd59f8 Implement purge in 2 steps
First: Block the poll (no more modification)
Second: Delete the poll 60 days after the expiration date (configurable)
2015-02-28 19:18:59 +01:00
Olivier PEREZ
547a186f60 Translate message 'This poll doesn't exist' 2015-02-02 21:00:42 +01:00
Olivier PEREZ
e9b456ad6e (re) Allow accents in names 2015-01-13 08:10:50 +01:00
Olivier PEREZ
6f7c911bae Issue #26 Admin can change the name of initiator of the poll 2015-01-08 22:18:28 +01:00
Olivier PEREZ
924bd1ed1a Issue #26 Poll admin can change expiration date 2015-01-08 22:18:27 +01:00
Olivier PEREZ
afd6079420 Issue #22 Enable vote name modification 2015-01-08 22:18:18 +01:00
Olivier PEREZ
c67a4c7c14 Add some security with strip_tags + Don't encode quotes 2015-01-07 23:16:42 +01:00
Olivier PEREZ
2495a8002f Admin: The polls page now use Smarty template 2015-01-07 22:47:34 +01:00
Olivier PEREZ
073bc9048d Admin: Fix the admin page 2015-01-06 23:52:52 +01:00
Olivier PEREZ
985842edf3 CSV Export: Implements export for classical polls 2015-01-03 19:06:03 +01:00
Olivier PEREZ
f399b9e543 admin: fix deleteion a slot from a classical poll 2014-12-30 17:03:43 +01:00
Olivier PEREZ
1ca7502216 Translate database names (table+columns) to English + Reorganize some columns 2014-12-30 01:41:25 +01:00
Olivier PEREZ
53048e8488 Fix display of best choices on classic polls 2014-12-27 00:23:56 +01:00
Olivier PEREZ
60ae6bc364 Display a diffrent table if poll is a classic one 2014-12-27 00:00:14 +01:00
Olivier PEREZ
9ed0043569 Some cleaning in poll creation 2014-12-25 00:55:52 +01:00
Olivier PEREZ
5d8e5362f9 admin: Add some logging on important actions (delete poll, clean votes, clean comments, drop column) 2014-12-24 22:42:50 +01:00
Olivier PEREZ
a5d1305535 LogService : WIP 2014-12-24 09:40:41 +01:00
Olivier PEREZ
b5fc415edc admin: Add availability to delete a poll 2014-12-23 09:48:58 +01:00
Olivier PEREZ
d942f82b0a admin: No need to send a mail to the admin when modifying on the admin page 2014-12-23 00:31:13 +01:00
Olivier Perez [a570709]
94e87a3182 WIP> admin: Add availability to add a slot to a poll 2014-12-22 14:18:33 +01:00
Olivier PEREZ
21ce86e2b7 WIP 2014-12-22 09:53:18 +01:00
Olivier PEREZ
dec9e24530 admin: Implement the removal of a slot. 2014-12-21 23:48:22 +01:00
Olivier PEREZ
ff61cf6b91 admin: Copy fonctionnalities from studs.php 2014-12-21 00:29:51 +01:00
Olivier PEREZ
1a062a2a69 admin: Add availability to delete a vote. 2014-12-21 00:25:00 +01:00
Olivier PEREZ
b8d0110263 Remove code from old_adminstuds that is already refactored. 2014-12-21 00:14:56 +01:00
Olivier PEREZ
ce548da367 Rename delete_comment.tpl to delete_comments.tpl 2014-12-21 00:05:52 +01:00
Olivier PEREZ
26b0c08128 Fix filter_input call 2014-12-21 00:04:41 +01:00
Olivier PEREZ
45716d15c1 Display confirmation page before to delete all votes of one poll. 2014-12-21 00:04:23 +01:00
Olivier PEREZ
8d46ec6c33 Move all admin method from PollService to AdminPollService 2014-12-20 23:59:44 +01:00
Olivier PEREZ
94a125ca2b Display confirmation page before to delete all comments of one poll. 2014-12-19 00:59:27 +01:00
Olivier PEREZ
3829402a69 Display a confirmation page before delete the poll (confirmation does nothing for now) 2014-12-19 00:47:56 +01:00
Olivier PEREZ
07d5a336fb Add availability to delete all comments of one poll.
+ Simplify call to remove all votes of one poll
2014-12-19 00:36:09 +01:00
Olivier PEREZ
14727bd94c admin: Add availability to delete all votes of a poll. 2014-12-19 00:30:33 +01:00
Olivier PEREZ
1b01bcc6b6 admin: Add availability to delete comments one by one. 2014-12-19 00:13:21 +01:00
Olivier PEREZ
8e15a008fe adminstuds.php: Realize the update of poll in database 2014-12-18 13:57:25 +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
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
3d0e167e77 Clean a lot of adminstuds.php 2014-12-07 16:47:35 +01:00
FramaJosephK
ef8eaafd27 Ajout d'horaires en taille sm + titre meilleur choix 2014-11-18 18:38:00 +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
af54981cf6 correction warning pour acces $config[use_smtp] depuis adminstuds.php 2014-11-15 00:59:33 +01:00
FramaJosephK
307f36ae64 fix a11y + reprise config.inc + bug date_format win 2014-11-14 17:35:22 +01:00
Bob Le Bricodeur
eb5677e451 new parameter '$use_smtp' to disable email notification if needed
bug correction on email notification (using '$dsondage->titre' in adminstuds.php)
2014-11-12 21:17:52 +01:00
FramaJosephK
83b5848689 Compilation .po, fix a11y, issue #15 2014-11-06 15:20:03 +01:00
Jeremy Carrier
660390efdd Fix misspelling of poll 2014-10-27 18:51:39 +01:00
FramaJosephK
5d9b33d6ab Fix #9, #10, bug récap liste des choix, « email adress » 2014-10-22 15:42:35 +02:00
FramaJosephK
2790ccccbb Validation W3C 2014-10-21 11:33:39 +02:00
FramaJosephK
051575fa64 The big one 2014-10-21 01:31:26 +02:00
FramaJosephK
a9c7914d31 Fix sondage date sans horaire + a11y studs/adminstuds + README Gitlab 2014-09-29 16:33:15 +02:00
FramaJosephK
7f87858ff7 Mise à jour du dépôt avec la dernière version sur Github 2014-09-04 17:52:18 +02:00
FramaJosephK
67a9fa1e8b Accessibilité et ergonomie sur choix_date, adminstuds - remplacement bouton de langue par un select - Fix export CSV - découpage chaines de langue pour enlever le code html - Fix // et port dans get_server_name 2014-07-04 11:21:31 +02:00
FramaJosephK
07450ecb22 Accessibilité : title contextualisé selon l'étape ou les erreurs du formulaire - attribut lang sur <html> et liens du pied de page - aria-describeby pour les msg d'erreur - fix points de validation W3C - fix issue #45 2014-06-11 19:19:17 +02:00
pyg77
0d2f39aa40 FIX : regression sur classement des dates ajoutées a posteriori 2013-03-20 14:21:03 +01:00
pyg77
db80ea1fa1 FIX : les dates ajoutées a posteriori etaient mal classees 2013-03-19 14:41:40 +01:00
pascalc
2e920a5e56 enlève les appels à get_server_name() partout sauf dans un appel à sendMail(), réécriture de la fonction pour cet usage 2013-03-04 19:46:06 +01:00
pyg77
9ac3da3c03 Merge pull request #46 from fevrier/fix_email_encoding
Fix email encoding
2013-02-27 05:42:50 -08:00
Jean-Philippe Guérard
bebfc4b4e7 Headers separation fix
Fix the header separating character (needs to be \r\n).
Merge header creation with sendEmail.
2012-01-11 20:34:37 +01:00
Jean-Philippe Guérard
e3e9683be0 The removal function needs access to the database 2012-01-11 00:02:02 +01:00
Jean-Philippe Guérard
f86f2e3d76 Put sondage deletion in a function 2012-01-10 23:28:21 +01:00
Jean-Philippe Guérard
c665ece920 Removed a duplicated removal code 2012-01-10 21:29:34 +01:00
Jean-Philippe Guérard
f8f277e929 Fix encoding of the From header 2012-01-09 02:18:25 +01:00
Jean-Philippe Guérard
848dcc5370 Fix encoding for To and Subject headers 2012-01-09 01:26:44 +01:00
Jean-Philippe Guérard
aa8523e318 Rewritten to use transactions 2011-12-30 04:16:41 +01:00
Jean-Philippe Guérard
5f1825179a PostgreSQL compatibility: suppress JOIN in DELETE 2011-12-29 19:40:49 +01:00
Simon Leblanc
90d8e1c6d0 Fix issue #15 : suppression d'un sondage par l'utilisateur actif et mise en forme de la suppression du sondage 2011-07-03 00:10:13 +02:00
Simon Leblanc
43eb2cd212 Fix issue #12 : correction de l'affichage de l'ajout d'une colonne 2011-07-02 23:41:10 +02:00
pyg77
06a388283e nombreuses modifs : cf changelog 22 et 23 juin 2011-06-23 16:52:10 +02:00
pyg77
588b0e4688 Nombreuses modifs de forme (CSS, graphisme) et qq modifs de fond 2011-06-23 01:21:56 +02:00
Simon Leblanc
7c9a061582 Delete php warning and secure SQL 2011-05-22 04:03:44 +02:00
Simon Leblanc
2bfca20c1a support line break in comment (poll and user) 2011-05-22 02:39:49 +02:00
Simon Leblanc
d43e818c11 Delete php warning and secure SQL 2011-05-22 02:13:44 +02:00
Simon Leblanc
c56e3b3b4d Clean URL and add title of poll in head 2011-05-20 02:52:22 +02:00
Simon Leblanc
ae1a4cdb5a mail header is in var with bad name 2011-05-15 04:41:43 +02:00
Simon Leblanc
4f380d8f8d clean code (identation, if with {) 2011-05-15 03:56:54 +02:00
Simon Leblanc
8395be45bf SQL injection allow to connect in admin with only public key 2011-05-15 01:49:29 +02:00
Simon Leblanc
475556c0e3 STUdS fork 2011-05-15 01:32:47 +02:00