Commit Graph

45 Commits

Author SHA1 Message Date
Olivier PEREZ
8b3eaac717 Fixes after merge 2015-04-07 23:17:26 +02:00
Olivier PEREZ
663f08f607 Merge branch 'feature/Work_on_Service_and_Repository' into develop 2015-04-07 22:26:13 +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
Olivier PEREZ
612e47ffa3 Create CommentRepository 2015-04-02 23:32:24 +02:00
Olivier PEREZ
7d84ec1e73 Create SlotRepository + AbstractRepository 2015-04-02 23:23:34 +02:00
Olivier PEREZ
8f4c5122c3 Add protection not to generate 2 identical IDs 2015-04-02 22:56:31 +02:00
Antonin
86a89abf42 Added unique id to vote. 2015-04-02 12:03:38 +02:00
Olivier PEREZ
591c4dd1af Move some code from FramaDB to Service 2015-03-29 12:59:47 +02:00
Olivier PEREZ
40d707c96d Issue #18 Add search engine on admin polls list 2015-03-27 13:10:46 +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
3aa3ee486c Admin: Fix the number of polls + Set to 30 the number of polls displayed per page 2015-02-26 22:29:24 +01:00
Olivier PEREZ
cbad43614d Re-add count of votes in polls admin page 2015-01-18 16:30:02 +01:00
Olivier PEREZ
f6a7a1c7bb Issue #18 Install pagination on polls admin page 2015-01-18 16:14:45 +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
073bc9048d Admin: Fix the admin page 2015-01-06 23:52:52 +01:00
Olivier PEREZ
98018de541 Fix some things after cherry-picking 2015-01-04 18:49:57 +01:00
FramaJosephK
f71326f496 Keep polls with bad expiration date in database
(cherry picked from commit c15ce049ad)

Conflicts:
	app/classes/Framadate/Utils.php
2015-01-04 18:33:31 +01:00
Olivier PEREZ
1111b86e2a Define a prefix for database table names. 2014-12-31 15:19:15 +01:00
Olivier PEREZ
88cae82e71 Create a migration system to migrate database.
+ Use this system to migrate from 0.8 to 0.9 (WIP)
2014-12-31 01:33:56 +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
dcb711dccc Implements purge methods 2014-12-29 21:54:07 +01:00
Olivier PEREZ
b5fc415edc admin: Add availability to delete a poll 2014-12-23 09:48:58 +01:00
Olivier PEREZ
288ddd2efc admin: Add availability to add a slot to a poll 2014-12-23 00:30:05 +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
dec9e24530 admin: Implement the removal of a slot. 2014-12-21 23:48:22 +01:00
Olivier PEREZ
1a062a2a69 admin: Add availability to delete a vote. 2014-12-21 00:25:00 +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
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
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
d54f2e4759 Improve usage of namespace + Create PollService in /Framadate/Service namespace 2014-12-16 00:02:01 +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
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
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