R42-31E 自由入力の商品名を屋台種類ページにも表示 |
関連メニューを屋台ページへリンクし、掲載カードの余白を整理 |
||
| 1行目: | 1行目: | ||
<includeonly> | <includeonly> | ||
<div class="stall-festival-placement"> | <div class="stall-festival-placement" style="border:1px solid #c8ccd1;border-radius:8px;padding:0.7em 0.8em;margin:0.75em 0;background:#f8f9fa;box-sizing:border-box;"> | ||
<div class="stall-festival-placement-header" style="display:flex;flex-wrap:wrap;align-items:baseline;column-gap:1em;row-gap:0.2em;"> | |||
<div class="stall-festival-placement-header"> | <div class="stall-festival-name" style="font-weight:700;font-size:1.05em;">'''[[{{{festival_page|}}}|{{{festival_name|祭り}}}]]'''</div> | ||
{{#if:{{{venue_name|}}}|<div class="stall-festival-venue" style="font-size:0.9em;color:#54595d;">'''会場:''' [[{{{venue_page|}}}|{{{venue_name}}}]]</div>|}} | |||
<div class="stall-festival-name"> | {{#if:{{{location_note|}}}|<div class="stall-festival-location" style="font-size:0.9em;color:#54595d;">'''場所:''' {{{location_note}}}</div>|}} | ||
'''[[{{{festival_page|}}}|{{{festival_name|祭り}}}]]''' | |||
</div> | </div> | ||
<div class="stall-compare-control" id="stall-compare-control-{{{placement_id|0}}}" style="display:flex;justify-content:flex-end;align-items:center;gap:0.5em;margin:0.4em 0 0;"> | |||
<span class="stall-compare-placeholder" id="stall-compare-placeholder-{{{placement_id|0}}}"></span> | |||
<div class="stall-compare-control" | |||
<span class="stall-compare-placeholder" | |||
<span class="stall-compare-message"></span> | <span class="stall-compare-message"></span> | ||
</div> | </div> | ||
<div class="stall-festival-menu" style="display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0.5em;margin-top:0.55em;"> | |||
<div class="stall-festival-menu"> | |||
{{#cargo_query: | {{#cargo_query: | ||
tables=FestivalStallMenuOfferings=O | tables=FestivalStallMenuOfferings=O,Stalls=S | ||
|fields=O.display_name=menu_name,O.price=price,O.serving_quantity=serving_quantity,O.serving_unit=serving_unit,O.price_note=price_note,O.availability=availability,O.verification_status=verification_status | |join on=O.related_stall_id=S.stall_id | ||
|fields=O.display_name=menu_name,S._pageName=related_stall_page,O.price=price,O.serving_quantity=serving_quantity,O.serving_unit=serving_unit,O.price_note=price_note,O.availability=availability,O.verification_status=verification_status | |||
|where=O.placement_id={{{placement_id|0}}} | |where=O.placement_id={{{placement_id|0}}} | ||
|order by=O.sort_order ASC,O._ID ASC | |order by=O.sort_order ASC,O._ID ASC | ||
| 53行目: | 23行目: | ||
|default=メニュー情報はまだ登録されていません。 | |default=メニュー情報はまだ登録されていません。 | ||
}} | }} | ||
</div> | </div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||