diff --git a/MIT-LICENSE b/MIT-LICENSE new file mode 100644 index 0000000..690988b --- /dev/null +++ b/MIT-LICENSE @@ -0,0 +1,21 @@ +== MIT License + +Copyright (c) 2010 [Eugenio Costa - tutecosta AT google mail] + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.textile b/README.textile index a7ab986..671ed5d 100644 --- a/README.textile +++ b/README.textile @@ -9,3 +9,9 @@ I'm currently actively developing it. h3. Currently relies on: * Inflection ('opcion' => 'opciones') (@bootstrap.php@) + +Type of questions: +# Yes / No +# Values 1 to 5 +# Free text +# Custom options (developing) diff --git a/frage.sql b/frage.sql index f76c418..3149ca7 100644 --- a/frage.sql +++ b/frage.sql @@ -31,7 +31,8 @@ CREATE TABLE `fr_encuestas` ( -- INSERT INTO `fr_encuestas` (`id`, `nombre`) VALUES -(1, 'About CakePHP plugins'); +(1, 'About CakePHP plugins'), +(2, 'About frage plugin'); -- -------------------------------------------------------- @@ -54,7 +55,9 @@ CREATE TABLE `fr_preguntas` ( INSERT INTO `fr_preguntas` (`id`, `fr_encuesta_id`, `pregunta`, `tipo`) VALUES (1, 1, 'Do you use CakePHP plugins?', 1), -(2, 1, 'How much?', 2); +(2, 1, 'How much?', 2), +(3, 1, 'Do you find them better than plain CakePHP? Why?', 3), +(4, 2, 'Will you help me improving it?', 1); -- -------------------------------------------------------- @@ -76,7 +79,9 @@ CREATE TABLE `fr_opciones` ( -- INSERT INTO `fr_opciones` (`id`, `fr_pregunta_id`, `opcion`, `tipo`) VALUES -(1, 0, 'Sí', 1), (2, 0, 'No', 1); +(1, 0, 'Sí', 1), (2, 0, 'No', 1), -- Yes / No +(3, 0, 1, 2), (4, 0, 2, 2), (5, 0, 3, 2), (6, 0, 4, 2), (7, 0, 5, 2), -- 1 to 5 +(8, 0, 'FR_TEXT', 3); -- free text -- -------------------------------------------------------- diff --git a/views/encuestas/index.ctp b/views/encuestas/index.ctp index 7d1e6fd..1132247 100644 --- a/views/encuestas/index.ctp +++ b/views/encuestas/index.ctp @@ -1,3 +1,4 @@ +