diff --git a/sample-webapp/src/main/webapp/WEB-INF/views/mobile/autos/resultDetail.jsp b/sample-webapp/src/main/webapp/WEB-INF/views/mobile/autos/resultDetail.jsp new file mode 100644 index 0000000..7af3ba0 --- /dev/null +++ b/sample-webapp/src/main/webapp/WEB-INF/views/mobile/autos/resultDetail.jsp @@ -0,0 +1,21 @@ +<%@ taglib prefix="f" uri="/functions" %> +<%@ taglib prefix="sample" tagdir="/WEB-INF/tags" %> +<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> + + + +

${f:toString(result.item.options)}
+ + + + +
+
Combined (mpg): ${f:toString(result.item.mpgCombined)}
+
Emissions (gCO2/km): ${f:toString(result.item.co2emissions)}
+
Power (bhp): ${f:toString(result.item.horsePower)}
+
Distance: ${f:toString(f:forwardsScore(result,'Distance'))} miles
+
+
+ matches +
+
diff --git a/sample-webapp/src/main/webapp/WEB-INF/views/mobile/autos/resultSummary.jsp b/sample-webapp/src/main/webapp/WEB-INF/views/mobile/autos/resultSummary.jsp new file mode 100644 index 0000000..17e9cd1 --- /dev/null +++ b/sample-webapp/src/main/webapp/WEB-INF/views/mobile/autos/resultSummary.jsp @@ -0,0 +1,15 @@ +<%@ taglib prefix="f" uri="/functions" %> + +<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> + + + + ${f:toString(result.item.colour)} ${result.item.carMake} ${result.item} + £${f:toString(result.item.price)} + + ${f:toPercent(result.score)}% + +
${result.item.postcode} + +   ${f:toString(f:forwardsScore(result,'Distance'))} miles + diff --git a/sample-webapp/src/main/webapp/WEB-INF/views/mobile/autos/search.jsp b/sample-webapp/src/main/webapp/WEB-INF/views/mobile/autos/search.jsp deleted file mode 100644 index a617171..0000000 --- a/sample-webapp/src/main/webapp/WEB-INF/views/mobile/autos/search.jsp +++ /dev/null @@ -1,66 +0,0 @@ - - - -
    - -
  • -

    Fuzzy Search

    -
      -
    • - -
    • -
    -
  • - -
  • -

    Results

    -

    Click on 'matches' link to find matches for that vehicle

    -
  • - - - -
  • - next page -
  • -
    - - - - - - - -
  • - ${f:toString(result.item.colour)} ${result.item.carMake} ${result.item} - £${f:toString(result.item.price)} - - ${f:toPercent(result.score)}% - -
    ${result.item.postcode} - -   ${f:toString(f:forwardsScore(result,'Distance'))} miles - - -
      -
    • -

      ${f:toString(result.item.options)}
      - - - - -
      -
      Combined (mpg): ${f:toString(result.item.mpgCombined)}
      -
      Emissions (gCO2/km): ${f:toString(result.item.co2emissions)}
      -
      Power (bhp): ${f:toString(result.item.horsePower)}
      -
      Distance: ${f:toString(f:forwardsScore(result,'Distance'))} miles
      -
      -
      - matches -
      -
      -
    • -
    - -
  • - -
diff --git a/sample-webapp/src/main/webapp/WEB-INF/views/mobile/search.jsp b/sample-webapp/src/main/webapp/WEB-INF/views/mobile/search.jsp new file mode 100644 index 0000000..62aae0b --- /dev/null +++ b/sample-webapp/src/main/webapp/WEB-INF/views/mobile/search.jsp @@ -0,0 +1,50 @@ + + +<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> + +
    + +
  • +

    Fuzzy Search

    +
      +
    • + +
    • +
    +
  • + + + + + + + + + + + + +
  • + + + + + + +
      +
    • + + + +
    • +
    + +
  • + + + +
  • + next page +
  • + +
diff --git a/sample-webapp/src/main/webapp/WEB-INF/views/mobile/tiles.xml b/sample-webapp/src/main/webapp/WEB-INF/views/mobile/tiles.xml index bc798e2..89230a3 100644 --- a/sample-webapp/src/main/webapp/WEB-INF/views/mobile/tiles.xml +++ b/sample-webapp/src/main/webapp/WEB-INF/views/mobile/tiles.xml @@ -4,11 +4,21 @@ - + - + - + + + + + + + + + + +