task

project-4800 -v-003-003

UPDATE - results table

[previously]

  1. [2015-06-07][00:00] PAGE - results.jade - table   
    1. x] replaced the first 'draft' results table with something a little more stylish
    2. *] g qry = example best html table designs - r# 2 40+ Free Beautiful CSS CSS3 Table Templates 
    3. >] PRB add style code to css, error re: , doesnt apply styles to table
    4. x] assigned existing style to this table, works
  2. [] outline
    1. x] update the "results" table style - a little
    2. x] ? = can I use jade templates vars in "included" html file td=results[0].racePoints, a= NO
    3. ***
    4. x] PG - index - create "results" object - this will hold each players 'results' for each race
    5. x] PG - results - get "results" from the results object in code, VS using hardcoded html
    6. ] get results for each race -   

[currently]

  1. [00:00] PAGE results-table
    1. x] # # - put the table's html into seperate file
    2. x] # # - use "include results-table.html" in results.jade VS defining a template
  2. [00:00] NEW task IN TRY
    1. x] # # - TRY - ] ? = can I use jade {{=someVar}} in the external html file which i include, EX td=results[0].racePoints
      1. ] DOESNT appear to work, no errors, just, no data shows up
  3. [00:00] NEW task IN TRY
    1. ] # # - TRY - can I define the .jade template in a seperate file
      1. *] this shoud work BUT its NOT working for me, ERROR about 'indent'
  4. [00:00] NEW task IN PAGE - results.jade -
    1. ] # # - x] UPDATE existing results.table template, define new template in page
  5. [00:00] NEW task IN PAGE - index.js
    1. x] # # - ADD results object, properties = team, racePoints, selections, ?? race
    2. ] build resultset for race
    3. x] # # - PASS results table into view
  6. [00:00] NEW task IN PAGE - results.jade
    1. x] # # - x] assign data to table cells, td=results.player, td=results.racePoints, ...
    2. x] # # - x] add loop to build table rows for each team 
  7. [00:00] PAGE index.js
    1. ] # # - ] results VS raceResults - results will contain results for all players, all races
    2. x] use js filter method to select just the entries for the current race
    3. x] get the current race param from the url
  8. [00:00] NEW task in PAGE index.js
    1. x] # # - x] race name -  x] add function lookup race in races, return race , pass race to view
  9. [00:00] NEW task IN PAGE index.js
    1. x] # # - x] race name pretty -  ADD extra property 'raceNum' to race object before passing, displays "Race# 12"  VS "2015-12" 
  10. [00:00] NEW task IN PAGE index.js 
    1. x] # # - /selections - get data (list selections) for each player, from _??__  for results.selections field in table
    2. x] ADDed property "id" to Selections table to uniquely identify each 'selections'
    3. x] ADDed 2nd pass thru, raceResults to set selections field, use lookup function to set values for selections
  11. [00:00] NEW task IN ...
    1. ] # # - PUBLISH - x] index.js, x] results.jade, x] style.css
  12. [00:00] NEW
    1. ] # # - TEST - 4800-v-003-003 results=

[next]

  1. ] more data
  2. ] data from api
  3. ]

 

 

Details Photos Edit more

Details

ID: 5253

NAME: 4800-v-003-003-results

DESCRIPTION: [5253] replace table (draft 1) with table draft 2

START DATE TIME: 2015-06-08 11:38:22

EST DURATION: 01:00:00

END DATE TIME: 2015-06-08 12:38:22

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities