1. 03 Dec, 2018 2 commits
  2. 27 Nov, 2018 1 commit
  3. 26 Nov, 2018 1 commit
  4. 25 Jan, 2018 2 commits
  5. 04 Dec, 2017 2 commits
  6. 03 Dec, 2017 1 commit
  7. 15 Oct, 2017 7 commits
  8. 30 Jul, 2017 2 commits
    • Loïc DAYOT's avatar
      feat(): make easier purpose new event · 57724fde
      Loïc DAYOT authored
      For each day in a month of calendar, add link to show all events of the day.
      For each day in a month of calendar, add link to add new event at this date.
      Add link to add event from showoneday.php at this date.
      
      close #37
      57724fde
    • Loïc DAYOT's avatar
      feat(): Allow duplicate event. · a970ff28
      Loïc DAYOT authored
      Allow duplicate event when display one event. Solution for repeted events.
      
      close #6
      a970ff28
  9. 16 Jun, 2017 15 commits
    • Ploc's avatar
      chore(): bump version from 3.4.0 to 3.5.0-dev · 35075851
      Ploc authored
      35075851
    • Ploc's avatar
      chore(): bump version from 3.4.0-dev to 3.4.0 · e1a2a2f8
      Ploc authored
      e1a2a2f8
    • Loïc DAYOT's avatar
      feat(): add css class style in calendar depending on tags of the event · 01b75af4
      Loïc DAYOT authored
      Add a css class depending on tags of event in calendar.
      
      For example : tag `libre-en-fete-2017` for the event can add the following css class in calendar.css:
      
      ```css
      .cal_tag_libre-en-fete-2017::before {
        content: url(../../adl/image/lef-2007-small.png);
      }
      ```
      
      close #44
      01b75af4
    • Loïc DAYOT's avatar
      chore(): move default map parameters in config.inc.php · d52a18a1
      Loïc DAYOT authored
      Map parameters (zoom, lat, lon) are now set in local configuration file for easier configuration. Add a message when geolocation isn't found from address.
      
      BREAKING CHANGE:
      
      Add the following configuration in your `www/inc/config.inc.php` file in line 99:
      
      ```php
      /*
       * Map settings
       **/
      $mapGlobalDisplay = array( /** in map.php */
          'lat'     => 46.8,
          'lon'     => 1,
          'zoom'    => 6,
      );
      $mapLocalgroupDisplay = array( /** in showlocalgroup */
          'zoom'    => 13,
      );
      $mapEventDisplay = array( /** in showevent */
          'zoom'    => 11,
      );
      ```
      d52a18a1
    • Loïc DAYOT's avatar
      feat(): geolocation when editing an event · 28051cc0
      Loïc DAYOT authored
      Modify event form following the same modification as localgroup form, adding a map to determinate a point and an address. Forms are prettier. Geocoding from address is available in event form and localgroup form.
      
      - fix a typo
      - fix content check from localgroup edit form
      
      close #39 and #40
      28051cc0
    • Loïc DAYOT's avatar
      feat(): geolocation when editing a localgroup · 7f722ad9
      Loïc DAYOT authored
      Modification of localgroup edit form, add a map to determinate a point and an address.
      
      related to issue #39 and #40
      7f722ad9
    • Loïc DAYOT's avatar
      fix(): bad answer in ajax query to find localgroups · 441d4011
      Loïc DAYOT authored
      The warning message when no localgroup is found is no more computed in php, but in javascript.
      
      As a consequence, php must return an empty list, but not an error.
      441d4011
    • Loïc DAYOT's avatar
      feat(): allow to link one or more localgroups to each event · 750aa400
      Loïc DAYOT authored
      - Adding localgroup fields in event edit form, qualifing the localgroup role in organizer, partner...
      - The event edit form is changed for better visibility using fieldset tag.
      - The event edit form need javascript with jquery and jquery-ui. It isn't perfect for accessibility and could be enhanced.
      
      The localgroups linked are displayed in `showevent.php`. The events linked are displayed in `showlocalgroup.php`.
      
      close #5
      
      BREAKING CHANGE:
      
      Add the following text into `adl/text/text.inc.php` on line 51 (and/or into your theme directory):
      
      ```php
          $adl_lg_role = array('organizer'=>"organisateur", 'coorganizer'=>"co-organisateur", 'partner'=>"partenaire", 'other'=>"autre");
      ```
      
      Add the following text into `adl/templates/header.inc.html` on line 12 and into `adl/templates/iframe_header.inc.html` on line 12, and/or into your theme directory:
      
      ```php
          <link rel="stylesheet" type="text/css" href="adl/css/jquery-ui.css" />
      ```
      
      Add the following text into `adl/css/calendar.css` on line 382:
      
      ```css
          /*
           * Format event submission in relation with localgroups.
           * (used only in submit.php)
           */
          fieldset {
              background-color:#CCC;
              /*max-width:500px;*/
              padding:1em;
              margin: 2em;
              border:2px solid blue;
              -moz-border-radius:8px;
              -webkit-border-radius:8px;
              border-radius:8px;
              text-align:left;
          }
      
          legend {
              text-align:left;
              font-style: italic;
              color: navy;
              font-weight: bold;
          }
      
          label {
              text-align:left;
              font-style: italic;
          }
          label.only {
              display: block;
              padding-top: 1em;
          }
      
          p.legend {
            margin-top:0em;
            margin-bottom:0px;
            margin-left:2em;
            text-align:left;
            font-style: italic;
            padding:0;
            color: Teal;
          }
      
          .required {
            font-weight: bold;
            text-decoration:
          }
      
          #lg-container {
              display: inline-block;
              position: relative;
              vertical-align: middle;
              width: 360px;
          }
          #lg-container input {
              width:100%
          }
          #lg-container ul {
              left:0 !important;
              right:0 !important;
              max-height:320px;
              overflow-y:auto;
              overflow-x:hidden;
          }
      ```
      
      Execute the following sql statement:
      
      ```sql
      CREATE TABLE `adl_localgroups_events` (
        `localgroup_id` int(11) NOT NULL DEFAULT '0',
        `event_id` int(11) NOT NULL DEFAULT '0',
        `role` varchar(32) DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
      
      ALTER TABLE `adl_localgroups_events`
        ADD PRIMARY KEY (`event_id`,`localgroup_id`),
        ADD KEY `role` (`role`);
      ```
      750aa400
    • Loïc DAYOT's avatar
      fix(): fix map parameter reference when calling rss list · 9edf5812
      Loïc DAYOT authored
      Change wrong `map` variable reference to `$eventList->map`. The wrong variable was generatine a notice message.
      
      close #45
      9edf5812
    • Ploc's avatar
      fix(): empty map when served as https · 01ab4462
      Ploc authored
      The map was empty when the agenda was server as https. This because of *mixed content* limitations of most of modern browsers. Javascripts from OpenLayers and OpenStreetMap were not loaded by the browser due to this limitations.
      
      Removing the scheme from javascript url allow the resources to be loaded on every protocol, http or https.
      
      OpenStreetMap tiles are still served in http, unfortunately.
      
      close #42
      01ab4462
    • Loïc DAYOT's avatar
      fix(): sql disambiguation · f42da02e
      Loïc DAYOT authored
      `description` field should be prefixed by the table name in field list to disambiguate the sql statement.
      f42da02e
    • Loïc DAYOT's avatar
      feat(): add tooltip over tags · f181f70f
      Loïc DAYOT authored
      Add tooltip tag description over tag name in form and display.
      
      close #36
      f181f70f
    • Loïc DAYOT's avatar
      chore(): update name of french regions · 1fb980be
      Loïc DAYOT authored
      BREAKING CHANGE:
      
      Update regions sql table:
      
      ```bash
      mysql -h localhost -p agendadb -u agendauser < sql/regions.sql
      ```
      1fb980be
    • Loïc DAYOT's avatar
      fix(): wrong diff in tags when editing an event · 45903441
      Loïc DAYOT authored
      When someone edits an event, the tags order might change. The resulting diff message shows that tags have changed, even if they are just in a different order. To fix this wrong message, tags are now sorted by name.
      
      close #43
      45903441
    • Loïc DAYOT's avatar
      feat(): manage localgroups · 3836bf1a
      Loïc DAYOT authored
      The agenda now offers to submit, edit, delete and moderate localgroups. Localgroups have a geographic scope.
      
      All localgroups related functions are in new class.
      
      closes #7
      
      BREAKING CHANGE: This release require to add some configuration settings and to process some sql commands.
      
      Add the following lines in file `inc/config.inc.php`:
      
      ```php
      /**
       * set localgroupManagement to true to enable localgroups management feature
       **/
      $localgroupManagement = true;
      
      /**
       * set localgroupSubmit to true to enable localgroups submission feature
       **/
      $localgroupSubmit = true;
      ```
      
      Execute the following sql commands:
      
      ```sql
      ALTER TABLE `adl_localgroups`
        ADD `country` VARCHAR(255) NULL ,
        ADD `submitter` VARCHAR(255) NOT NULL ,
        ADD `moderated` INT(11) NOT NULL DEFAULT '0' ,
        ADD `secret` VARCHAR(255) NULL ,
        ADD `decision_time` DATETIME NOT NULL ,
        ADD `submission_time` DATETIME NOT NULL ,
        ADD INDEX (`moderated`) ,
        ADD INDEX(`name`);
      
      CREATE TABLE IF NOT EXISTS adl_localgroups_department
      (
        `localgroup_id` int(11) NOT NULL,
        `department` int(11) NOT NULL,
        UNIQUE KEY `localgroup_id` (`localgroup_id`,`department`)
      ) DEFAULT CHARSET=utf8 COMMENT='scope of localgroups over departments';
      
      REPLACE INTO adl_localgroups_department (localgroup_id, department)
        SELECT id, floor(postalcode/1000) FROM adl_localgroups WHERE floor(postalcode/1000)<97;
      REPLACE INTO adl_localgroups_department (localgroup_id, department)
        SELECT id, floor(postalcode/100) FROM adl_localgroups WHERE floor(postalcode/1000)=97;
      
      ALTER TABLE `adl_localgroups`
        DROP `region`,
        DROP `department`;
      
      UPDATE `adl_regions` SET `id` = '50' WHERE `adl_regions`.`id` = 27;
      INSERT INTO `adl_regions` (`id`, `name`) VALUES ('27', 'Territoires d\'outre-mer');
      UPDATE `adl_region_department` SET `region_id` = '50' WHERE `adl_region_department`.`department_id` = 0;
      INSERT INTO `adl_region_department` (`region_id`, `department_id`) VALUES ('26', '976');
      INSERT INTO `adl_region_department` (`region_id`, `department_id`) VALUES ('27', '98');
      ```
      
      Note: edit `adl_ prefix` if needed.
      3836bf1a
  10. 25 May, 2017 2 commits
  11. 01 Jun, 2016 5 commits