[Suiviobsmer-commits] r116 - in trunk: . suiviobsmer-ui/src/main/java/fr/ifremer/suiviobsmer/ui/pages suiviobsmer-ui/src/main/webapp suiviobsmer-ui/src/main/webapp/css
Author: fdesbois Date: 2009-12-09 10:06:17 +0000 (Wed, 09 Dec 2009) New Revision: 116 Modified: trunk/changelog.txt trunk/suiviobsmer-ui/src/main/java/fr/ifremer/suiviobsmer/ui/pages/SamplingPlan.java trunk/suiviobsmer-ui/src/main/webapp/SamplingPlan.tml trunk/suiviobsmer-ui/src/main/webapp/css/sampling.css Log: Evol #1951 (SamplingPlan) : Add links on programs to filter period Modified: trunk/changelog.txt =================================================================== --- trunk/changelog.txt 2009-12-08 18:20:44 UTC (rev 115) +++ trunk/changelog.txt 2009-12-09 10:06:17 UTC (rev 116) @@ -1,17 +1,19 @@ 0.0.1-alpha-2 +------------- - - [08-12-2009] [fdesbois] ANO BoatInfos : En mode admin le champ de sélection des sociétés - ne charge pas les données +[09-12-2009] [fdesbois] EVO #1951 (SamplingPlan) + Ajout d'un lien sur les programmes pour filtrer la période - - [08-12-2009] [fdesbois] EVO : Ajout d'une config pour logger les erreurs/debugs dans un fichier - - - [08-12-2009] [fdesbois] ANO SamplingPlan : Caractère de fin manquant sur l'affichage des zones de pêche - - - [08-12-2009] [fdesbois] EVO Contacts : Renommage colonne "Mammifères" - en "Observations et captures accidentelles" - - - [08-12-2009] [fdesbois] EVO BoatInfos : Renomage texte "... embarquements dont X dans votre société..." - par "... embarquements dont X pour votre société..." - - - [08-12-2009] [fdesbois] ANO BoatInfos : Lien présent pour la création d'un contact - lorsque la ligne du plan est barré +[08-12-2009] [fdesbois] ANO (BoatInfos) + En mode admin le champ de sélection des sociétés ne charge pas les données +[08-12-2009] [fdesbois] EVO + Ajout d'une config pour logger les erreurs/debugs dans un fichier +[08-12-2009] [fdesbois] ANO (SamplingPlan) + Caractère de fin manquant sur l'affichage des zones de pêche +[08-12-2009] [fdesbois] EVO (Contacts) + Renommage colonne "Mammifères" en "Observations et captures accidentelles" +[08-12-2009] [fdesbois] EVO (BoatInfos) + Renomage texte "... embarquements dont X dans votre société..." par "... embarquements + dont X pour votre société..." +[08-12-2009] [fdesbois] ANO (BoatInfos) + Lien présent pour la création d'un contact lorsque la ligne du plan est barré Modified: trunk/suiviobsmer-ui/src/main/java/fr/ifremer/suiviobsmer/ui/pages/SamplingPlan.java =================================================================== --- trunk/suiviobsmer-ui/src/main/java/fr/ifremer/suiviobsmer/ui/pages/SamplingPlan.java 2009-12-08 18:20:44 UTC (rev 115) +++ trunk/suiviobsmer-ui/src/main/java/fr/ifremer/suiviobsmer/ui/pages/SamplingPlan.java 2009-12-09 10:06:17 UTC (rev 116) @@ -44,6 +44,7 @@ import org.apache.tapestry5.ioc.annotations.Inject; import org.apache.tapestry5.upload.services.UploadedFile; import fr.ifremer.suiviobsmer.PeriodDates; +import fr.ifremer.suiviobsmer.entity.Program; import org.slf4j.Logger; /** @@ -330,6 +331,18 @@ return new SimpleDateFormat("MM/yyyy"); } - /** ------------------------- ACTIONS ----------------------------------- **/ + /** ------------------------- ACTIONS ----------------------------------- **/ + + /** + * Used to filter period using dates from the program selected in table. + * @param rowIndex index of the row in the table + * @throws SuiviObsmerException for a data problem + */ + void onActionFromFilterProgramDates(int rowIndex) throws SuiviObsmerException { + row = getData().get(rowIndex); + Program program = row.getProgram(); + period.setFromDate(program.getPeriodBegin()); + period.setThruDate(program.getPeriodEnd()); + } } Modified: trunk/suiviobsmer-ui/src/main/webapp/SamplingPlan.tml =================================================================== --- trunk/suiviobsmer-ui/src/main/webapp/SamplingPlan.tml 2009-12-08 18:20:44 UTC (rev 115) +++ trunk/suiviobsmer-ui/src/main/webapp/SamplingPlan.tml 2009-12-09 10:06:17 UTC (rev 116) @@ -96,7 +96,12 @@ </t:if> <tr class="${parityClass}"> <td class="bleft">${row.code}</td> - <td class="width150">${row.program.name}</td> + <td class="width150"> + <a t:type="actionlink" t:id="filterProgramDates" t:context="rowIndex" + title="Changer les dates de la période par rapport à celles du programme"> + ${row.program.name} + </a> + </td> <t:if t:test="user.admin"> <td>${companyName}</td> </t:if> Modified: trunk/suiviobsmer-ui/src/main/webapp/css/sampling.css =================================================================== --- trunk/suiviobsmer-ui/src/main/webapp/css/sampling.css 2009-12-08 18:20:44 UTC (rev 115) +++ trunk/suiviobsmer-ui/src/main/webapp/css/sampling.css 2009-12-09 10:06:17 UTC (rev 116) @@ -14,6 +14,7 @@ width: 95%; margin-left: auto; margin-right: auto; + font-size: 0.8em; } div#so-sampling div.admin { @@ -87,6 +88,16 @@ color: blue; } +div#so-sampling table a { + color: black; + text-decoration: none; +} + +div#so-sampling table a:hover { + text-decoration: underline; +} + + /* Historic page */ div#so-sampling-historic { margin-top: 10px;
participants (1)
-
fdesbois@users.labs.libre-entreprise.org