Sjabloon:Bericht: verschil tussen versies
Uit Dorpsbelang Den Hout
Regel 2: | Regel 2: | ||
--><div class="bericht-grid {{{Type|}}}"><!-- | --><div class="bericht-grid {{{Type|}}}"><!-- | ||
--><div class="grid-tags"><!-- | --><div class="grid-tags"><!-- | ||
− | --><h1 class="mt-0 pt-0 mr-4 pr-4">{{uc:{{{tags|}}} }}</h1><!-- | + | --><h1 class="mt-0 pt-0 mr-4 pr-4">{#ifeq:{{#urlget:mode}}|edit|<div class="multi-select-wrapper" >{{#arraydefine:@tags|{{#ask:[[Class::Bericht]]|?Tags|format=array|mainlabel=-}} }}{{#arrayunique:@tags}}<span class="out">{{#arraymap:{{{Tags|}}}|,|@@@|{{#tag:wsfield|@@@{{#tag:wsfield||type=hidden|name=tags[]|value=@@@}}|type=button|class=btn btn-succes|onclick=this.remove()}}|}}</span>{{#tag:html|<input list="tags" name="browser" id="multi-select2" multiple> |
+ | <datalist id="tags"> | ||
+ | {{#arraymap:{{#arrayprint:@tags}}|,|@@@| | ||
+ | <option value="@@@"> |}} | ||
+ | </datalist>}}</div>|{{uc:{{{tags|}}} }} }}</h1><!-- | ||
--></div><!-- | --></div><!-- | ||
--><div class="grid-datum"><!-- | --><div class="grid-datum"><!-- | ||
− | --><b>{{{Datum|}}}</b><!-- | + | --><b>{{#ifeq:{{#urlget:mode}}|edit|<wsfield type="date" class="form-control" name="Datum" value="{{#if:{{{Datum|}}}|{{#time:Y-m-d|{{{Datum|}}}}}|{{#time:Y-m-d|Now}}}}" />|{{{Datum|}}} }}</b><!-- |
--></div><!-- | --></div><!-- | ||
--><div class="grid-titel"><!-- | --><div class="grid-titel"><!-- | ||
− | --><h2>{{{Titel|}}}</h2><!-- | + | --><h2>{{#ifeq:{{#urlget:mode}}|edit|<wsfield type="text" class="form-control" name="Titel" value="{{{Titel|}}}"/>|{{{Titel|}}} }}</h2><!-- |
--></div><!-- | --></div><!-- | ||
--><div class="grid-bericht"><!-- | --><div class="grid-bericht"><!-- | ||
− | -->{{{Bericht|}}}<!-- | + | -->{{#ifeq:{{#urlget:mode}}|edit|{{#widget:editor|html={{{Bericht|}}} }}|{{{Bericht|}}} }}<!-- |
--></div><!-- | --></div><!-- | ||
--><div class="grid-lijst"><!-- | --><div class="grid-lijst"><!-- | ||
− | --><div><b>Aanvullende informatie:</b></div><!-- | + | -->{{#ifeq:{{#urlget:mode}}|edit|<div class="upload-wrapper"><!-- |
+ | --><!-- | ||
+ | -->{{#if:{{{Files|}}}| {{#camap:@images|@@@|<!-- | ||
+ | --><div class="upload-group">{{#ifeq:@@@[Type][fulltext]|Pdf|<h2 class="w-100 rs-border text-center pt-3 pb-3">{{fa|file-pdf}} </h2>|[[@@@[catitle]]]}}<div class="d-flex"><div class="w-100">@@@[Caption]</div>{{#tag:wsfield|{{fa|times}}|type=button|class=btn|onclick=removeFile(this, '@@@[catitle]')}}{{#ifeq:@@@[Type][fulltext]|Pdf||{{#tag:wsfield||id=@@@[catitle]|type=radio|name=Image|class=d-none|value=@@@[catitle]|checked={{#ifeq:@@@[catitle]|Bestand:{{{Image|}}}|checked|{{#ifeq:@@@[catitle]|{{{Image|}}}|checked}} }} }}{{#tag:wslabel|<i class="fa fa-star btn ml-0"></i>|for=@@@[catitle]}} }}</div></div><!-- | ||
+ | -->|}} }}<!-- | ||
+ | --><!-- | ||
+ | -->{{#Widget:Multi upload bericht}}<!-- | ||
+ | --></div>|<div><b>Aanvullende informatie:</b></div><!-- | ||
--><ul>{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|?Caption|?Type|link=none|format=complexarray|name=@images }}{{#camap:@images|@@@|{{#switch:@@@[Type][fulltext]|Pdf=<li class="red">{{#widget:link|type=a|text={{#if:@@@[Caption]|@@@[Caption]|@@@[catitle]}}|target=blank|href={{filepath:{{#replace:@@@[catitle]|Bestand:|}} }} |class=red}}</li>}} |}} </ul><!-- | --><ul>{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|?Caption|?Type|link=none|format=complexarray|name=@images }}{{#camap:@images|@@@|{{#switch:@@@[Type][fulltext]|Pdf=<li class="red">{{#widget:link|type=a|text={{#if:@@@[Caption]|@@@[Caption]|@@@[catitle]}}|target=blank|href={{filepath:{{#replace:@@@[catitle]|Bestand:|}} }} |class=red}}</li>}} |}} </ul><!-- | ||
− | --></div><!-- | + | --></div>}}<!-- |
--><div class="grid-img"><!-- | --><div class="grid-img"><!-- | ||
--><div class="image-wrapper">{{#camap:@images|@@@|{{#vardefine:@imagetmplate|[[@@@[catitle]]]<small>@@@[Caption]</small>}}{{#switch:@@@[Type][fulltext]|Peg|Jpg|Svg|Png={{#var:@imagetmplate}} }}|}}</div><!-- | --><div class="image-wrapper">{{#camap:@images|@@@|{{#vardefine:@imagetmplate|[[@@@[catitle]]]<small>@@@[Caption]</small>}}{{#switch:@@@[Type][fulltext]|Peg|Jpg|Svg|Png={{#var:@imagetmplate}} }}|}}</div><!-- |
Versie van 6 nov 2020 08:47
Aanvullende informatie: