Files
2025-01-04 00:34:03 +01:00

54 lines
1.9 KiB
HTML

<form class="flexrow" autocomplete="off" data-pack="{{adventure.pack}}" data-adventure-id="{{adventure.id}}">
<header class="adventure-header">
<h1>{{adventure.name}}</h1>
</header>
<figure class="adventure-banner">
<img src="{{adventure.img}}" title="{{adventure.name}}" height="300"/>
<figcaption>{{{adventure.caption}}}</figcaption>
</figure>
<section class="adventure-overview">
<h2>{{localize "ADVENTURE.ImportHeaderOverview"}}</h2>
{{{adventure.description}}}
</section>
<section class="adventure-contents">
<section class="import-controls">
<h2>{{localize "ADVENTURE.ImportHeaderContents"}}</h2>
{{#if imported}}
<div class="form-group">
<label class="checkbox">
<input type="checkbox" name="importFields" value="all" title="{{ localize "ADVENTURE.ImportAll" }}"
checked>
{{ localize "ADVENTURE.ImportAll" }}
</label>
</div>
{{#each contents}}
<div class="form-group">
<label class="checkbox">
<input type="checkbox" name="importFields" value="{{ field }}" checked disabled
data-tooltip="{{ localize "ADVENTURE.ImportContent" label=label }}">
<i class="{{ icon }} fa-fw"></i>
{{ count }} {{ label }}
</label>
</div>
{{/each}}
{{else}}
<ul>
{{#each contents}}
<li><i class="{{this.icon}} fa-fw"></i> {{this.count}} {{this.label}}</li>
{{/each}}
</ul>
{{/if}}
</section>
</section>
<footer class="adventure-footer">
<button type="submit">
<i class="fas fa-download"></i>
{{localize "ADVENTURE.ImportSubmit"}}
</button>
</footer>
</form>