Added an Extras template for Booby Traps.

master
Pacman Ghost 5 months ago
parent 4ae19ca212
commit 0682dc1dca
  1. 34
      vasl_templates/webapp/data/default-template-pack/extras/booby-traps.j2
  2. 1
      vasl_templates/webapp/static/css/tabs-extras.css
  3. 2
      vasl_templates/webapp/static/extras.js

@ -0,0 +1,34 @@
<html> <!-- vasl-templates:id {{SNIPPET_ID}} -->
<!-- vasl-templates:name Booby Traps -->
<!-- vasl-templates:description Data chart for Booby Traps. -->
<!-- boards = {{BOARDS*:/8|Board(s)}} -->
<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
td.header { background: #f0f0f0 ; border-bottom: 1px solid #c0c0c0 ; padding: 2px 5px ; font-size: 105% ; font-weight: bold ; }
</style>
</head>
<table>
<tr>
<td class="header">
Booby Traps (Level {{LEVEL:A::B::C|Level}})
<tr>
<td style="padding:2px 5px;">
<b> {%if BOARDS%} Boards: {{BOARDS}} {%else%} Entire map {%endif%} </b>
<ul>
<li> Original TC
{% if LEVEL == "A" %} &ge; 11
{% elif LEVEL == "B" %} 11
{% elif LEVEL == "C" %} 12
{%else%} ??? {%endif%}
<li> Search Casualties
</ul>
</table>

@ -38,3 +38,4 @@
#tabs-extras .right-panel [name="extras/kakazu-ridge-cave-complexes"] .select2 { width: 10em !important ; }
#tabs-extras .right-panel [name="extras/victory-points"] .select2 { width: 9em !important ; }
#tabs-extras .right-panel [name="extras/count-remaining"] .select2 { width: 11em !important ; }
#tabs-extras .right-panel [name="extras/booby-traps"] .select2 { width: 2.5em !important ; }

@ -106,7 +106,7 @@ function _show_extra_template( template_id )
buf.push( sanitizeHTML( template_info.params[i].default ) ) ;
buf.push( "</div>" ) ;
} else if ( template_info.params[i].type === "select" ) {
buf.push( "<select class='param' name='" + escapeHTML(template_info.params[i].name) + "' style='width:6em;'>" ) ;
buf.push( "<select class='param' name='" + escapeHTML(template_info.params[i].name) + "'>" ) ;
for ( j=0 ; j < template_info.params[i].options.length ; ++j )
buf.push( "<option>", template_info.params[i].options[j], "</option>" ) ;
buf.push( "</select>" ) ;

Loading…
Cancel
Save