diff --git a/vasl_templates/webapp/data/default-template-pack/extras/grid.j2 b/vasl_templates/webapp/data/default-template-pack/extras/grid.j2 index 5edec61..03ff1e4 100644 --- a/vasl_templates/webapp/data/default-template-pack/extras/grid.j2 +++ b/vasl_templates/webapp/data/default-template-pack/extras/grid.j2 @@ -5,7 +5,8 @@ - + + @@ -15,20 +16,33 @@ td { width: {{CELL_WIDTH}} ; height: {{CELL_HEIGHT}} ; border: 1px {{BORDER_STYLE}} {{PLAYER_COLOR2}} ; + padding: 2px 5px ; } td.caption { height: 1px ; padding: 2px 5px ; font-size: 105% ; font-weight: bold ; text-align: center ; background: {{PLAYER_COLOR0}} ; border: none ; } +.cell-label { font-size: 120% ; } {% set RANGE = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50] %} +{% set LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" %} {%if CAPTION%} {% for col in RANGE %} {% if col <= COLS %} {% for col in RANGE %} + {% if col <= COLS %} + {% set CELL_NO = (row - 1) * COLS + (col - 1) %} +
{{CAPTION}} {%endif%} {% for row in RANGE %} {% if row <= ROWS %} -
{%endif%} {%endfor%} +
+ {% if CELL_LABELS == "letters" %} + {{LETTERS[CELL_NO]}} + {% elif CELL_LABELS == "numbers" %} + {{CELL_NO + 1}} + {%endif%} + {%endif%} +{%endfor%} {%endif%} {%endfor%}
diff --git a/vasl_templates/webapp/static/extras.js b/vasl_templates/webapp/static/extras.js index 8a8f4ff..43d0a9d 100644 --- a/vasl_templates/webapp/static/extras.js +++ b/vasl_templates/webapp/static/extras.js @@ -95,7 +95,7 @@ function _show_extra_template( template_id ) buf.push( " title='" + escapeHTML(template_info.params[i].description) + "'" ) ; buf.push( ">" ) ; } else if ( template_info.params[i].type === "select" ) { - buf.push( "" ) ; for ( j=0 ; j < template_info.params[i].options.length ; ++j ) buf.push( "" ) ; buf.push( "" ) ;