Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.88 KB | None | 0 0
  1. <script src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script>
  2. <script src="{{url_for('static', filename='plugins/jquery.query-object.js')}}"></script>
  3.  
  4. <link rel="stylesheet" href="{{url_for('static', filename='css/monster_name.css')}}">
  5. <link rel="stylesheet" href="{{url_for('static', filename='css/item_name.css')}}">
  6.  
  7. <div class="row">
  8.  
  9.     <div class="col">
  10.  
  11.         <div class="row">
  12.            
  13.             <div class="col">
  14.  
  15.                 <div class="input-group">
  16.                     <input type="text" id="searchInput" autocomplete="off" placeholder="{{_('Search')}}" class="form-control">
  17.                     <span class="input-group-btn">
  18.                         <button onclick="handleFilterMenu()" class="btn btn-primary ml-1">{{_("Filter")}}</button>
  19.                     </span>
  20.                 </div>
  21.  
  22.                 <div id="filter">
  23.                     <div class="row p-3">
  24.  
  25.                         <div class="col-sm-2">
  26.                             <h5 class="text-left">{{_("Order")}}</h5>
  27.                             <hr class="filter-title-hr">
  28.                             <a class="d-block filter-link" activated="{{'1' if keywords.get('order') == 'asc' else '0'}}" onclick="changeFilter('order', 'asc')">{{_("Ascending")}}</a>
  29.                             <a class="d-block filter-link" activated="{{'1' if keywords.get('order') == 'desc' else '0'}}" onclick="changeFilter('order', 'desc')">{{_("Descending")}}</a>
  30.                         </div>
  31.  
  32.                         <div class="col-sm-2">
  33.                             <h5 class="text-left">{{_("Sort by")}}</h5>
  34.                             <hr class="filter-title-hr">
  35.                             {% for option_key, option_value in options["sort_options"].items() %}
  36.                                 {% if option_value == keywords.get("order_by") or option_value == "added" and keywords.get("order_by") is none %}
  37.                                     <a class="d-block filter-link" activated="1" onclick="changeFilter('order_by', '{{option_value}}')">{{option_key}}</a>
  38.                                 {% else %}
  39.                                     <a class="d-block filter-link" onclick="changeFilter('order_by', '{{option_value}}')">{{option_key}}</a>
  40.                                 {% endif %}
  41.                             {% endfor %}
  42.                         </div>
  43.  
  44.                         {% if options["filter_options"] %}
  45.                             <div class="col-sm-2">
  46.                                 <h5 class="text-left">{{_("Filter by")}}</h5>
  47.                                 <hr class="filter-title-hr">
  48.  
  49.                                 {# None button for no filters #}
  50.                                 <a class="d-block filter-link" activated="{{'1' if keywords.get('filter_by') == 'None' else '0'}}" onclick="changeFilter('filter_by', 'None')">{{_("None")}}</a>
  51.  
  52.                                 {% for option_key, option_value in options["filter_options"].items() %}
  53.                                     {% if option_value == keywords.get("filter_by") or option_value == "added" and keywords.get("filter_by") is none %}
  54.                                         <a class="d-block filter-link" activated="1" onclick="changeFilter('filter_by', '{{option_value}}')">{{option_key}}</a>
  55.                                     {% else %}
  56.                                         <a class="d-block filter-link" onclick="changeFilter('filter_by', '{{option_value}}')">{{option_key}}</a>
  57.                                     {% endif %}
  58.                                 {% endfor %}
  59.                             </div>
  60.                         {% endif %}
  61.  
  62.                         {# show filtered view col when table has filtered view  #}
  63.                         {% if table in ["cariad", "rapier", "dagger", "one_handed_sword", "two_handed_sword", "shield", "rifle", "duals", "coat", "pants", "gauntlet", "shoes", "hat", "dress", "accessory", "quest"] %}
  64.                         <div class="col-sm-2">
  65.                             <h5 class="text-left">{{_("Filtered view")}}</h5>
  66.                             <hr class="filter-title-hr">
  67.                             <a class="d-block filter-link" activated="{{'1' if keywords.get('fl') == '1' else '0'}}" onclick="changeFilter('fl', '1')">{{_("Filtered")}}</a>
  68.                             <a class="d-block filter-link" activated="{{'1' if keywords.get('fl') == '0' else '0'}}" onclick="changeFilter('fl', '0')">{{_("Unfiltered")}}</a>
  69.                         </div>
  70.                         {% endif %}
  71.                     </div>
  72.                 </div>
  73.  
  74.             </div>
  75.  
  76.         </div>
  77.  
  78.         <div class="row mt-3 ml-1 mr-1">
  79.             <div class="col" id="list">
  80.                 {% with data=data, subs=subs %}
  81.                     {% include "database/list_items.html" %}
  82.                 {% endwith %}
  83.             </div>
  84.         </div>
  85.  
  86.     </div>
  87.  
  88. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement