templates/partials/grimoire/demon-bluffs.html.twig line 1

Open in your IDE?
  1. <div class="pad pad--bluffs bluffs">
  2.     <div class="carousel" id="demon-bluffs-group"></div>
  3.     <ul class="button-list mt-4">
  4.         <li><button type="button" class="button button--full-height" id="show-all-bluffs" data-title="{{ 'grimoire.grimoire.bluffs'|trans|e('html_attr') }}">{{ 'grimoire.grimoire.show_bluffs'|trans }}</button></li>
  5.         <li><button type="button" class="button button--full-height" id="add-bluffs">{{ 'grimoire.grimoire.add_bluffs'|trans }}</button></li>
  6.     </ul>
  7. </div>
  8. <template id="demon-bluffs-template">
  9.     <div class="carousel__item js--demon-bluffs--group">
  10.         <form class="settable-title bluffs__heading pad__title">
  11.             <h3 class="settable-title__title bluffs__title js--settable-title--title">{{ 'grimoire.grimoire.bluffs'|trans }}</h3>
  12.             <input type="text" class="settable-title__input bluffs__input js--settable-title--input" list="bluffs-title-list" hidden>
  13.             <datalist id="bluffs-title-list">
  14.                 <option value="{{ 'grimoire.grimoire.bluffs'|trans|e('html_attr') }}" class="js--settable-title--start">
  15.                 <option value="{{ 'grimoire.grimoire.bluffs'|trans|e('html_attr') }}" class="js--settable-title--previous">
  16.             </datalist>
  17.             <button type="button" class="bluffs__remove no-btn js--demon-bluffs--remove" aria-label="{{ 'grimoire.reminder_show.remove'|trans }}">
  18.                 <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512" aria-hidden="true"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path style="fill: currentColor;" d="M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"/></svg>
  19.             </button>
  20.         </form>
  21.         <div class="bluffs__list">
  22.             {% for i in 0..2 %}
  23.                 <button type="button" data-index="{{ i }}" class="token token--bluff js--demon-bluffs--bluff" data-token="character" data-bluff-dialog="#bluff-show"></button>
  24.             {% endfor %}
  25.         </div>
  26.     </div>
  27. </template>
  28. {% embed 'includes/dialog.html.twig' with {
  29.     id: 'bluff-show',
  30.     background: 'blur'
  31. } %}
  32.     {% block title %}<span id="bluff-show-name" data-no-character="{{ 'grimoire.bluff_show.empty'|trans }}">{{ 'grimoire.bluff_show.title'|trans }}</span>{% endblock %}
  33.     {% block body %}
  34.     <p id="bluff-show-ability" class="character-show__ability"></p>
  35.     <ul class="button-list">
  36.         <li><button type="button" class="button" id="bluff-show-token">{{ 'grimoire.bluff_show.show'|trans }}</button></li>
  37.         <li><button type="button" class="button" data-dialog="#bluff-list">{{ 'grimoire.bluff_show.change'|trans }}</button></li>
  38.     </ul>
  39.     {% endblock %}
  40. {% endembed %}
  41. {% embed 'includes/dialog.html.twig' with {
  42.     id: 'bluff-list',
  43.     background: 'blur',
  44.     title: 'grimoire.bluff_list.title'|trans
  45. } %}
  46.     {% import 'macros/forms.html.twig' as forms %}
  47.     {% block body %}
  48.     <ul id="character-list__bluffs" class="button-list button-list--reminder character-list mb-4"></ul>
  49.     <ul class="no-list">
  50.         {{ forms.switch({
  51.             node: 'li',
  52.             label: 'grimoire.bluff_list.show_existing'|trans,
  53.             name: 'show',
  54.             id: 'show-existing',
  55.             value: 'existing'
  56.         }) }}
  57.         {{ forms.switch({
  58.             node: 'li',
  59.             label: 'grimoire.bluff_list.show_travellers'|trans,
  60.             name: 'show',
  61.             id: 'show-travellers',
  62.             value: 'traveller'
  63.         }) }}
  64.         {{ forms.switch({
  65.             node: 'li',
  66.             label: 'grimoire.bluff_list.show_evil'|trans,
  67.             name: 'show',
  68.             id: 'show-evil',
  69.             value: 'evil'
  70.         }) }}
  71.     </ul>
  72.     {% endblock %}
  73. {% endembed %}