modalcard added samples, industriels in navtools; flag collection items open modalcard
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
<section class="tool flags">
|
||||
<span class="btn mdi mdi-folder-outline"/>
|
||||
<div class="tool-content">
|
||||
<span class="label">{{ $t("materio.My folders") }}</span>
|
||||
<ul>
|
||||
<li v-if="flagcolls" v-for="coll in flagcolls" :key="coll.id">
|
||||
<span
|
||||
@@ -35,21 +36,58 @@
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tool samples">
|
||||
<span class="btn mdi mdi-beaker-outline"/>
|
||||
<div class="tool-content">
|
||||
<span class="label">{{ $t("materio.Samples") }}</span>
|
||||
<ul>
|
||||
<li
|
||||
v-for="sample in material.samples"
|
||||
:key="sample.showroom.id"
|
||||
>
|
||||
<span class="showroom">{{ sample.showroom.name }}</span>: {{ sample.location }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tool industriels" v-if="material.manufacturer || material.distributor">
|
||||
<span class="btn mdi mdi-factory"/>
|
||||
<div class="tool-content">
|
||||
<section v-if="material.distributor">
|
||||
<span class="label">{{ $t("materio.Distributor") }}</span>
|
||||
<ul>
|
||||
<li v-for="distrib in material.distributor" v-bind:key="distrib.id">
|
||||
<h2>{{ distrib.name }}</h2>
|
||||
<p v-if="distrib.website">
|
||||
<a target="_blank" :href="distrib.website.url">distrib.website.url</a>
|
||||
</p>
|
||||
<p v-if="distrib.email"><a :href="'mailto:'+distrib.email">{{ distrib.email }}</a></p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section v-if="material.manufacturer">
|
||||
<span class="label">{{ $t("materio.Manufacturer") }}</span>
|
||||
<ul>
|
||||
<li v-for="manu in material.manufacturer" v-bind:key="manu.id">
|
||||
<h2>{{ manu.name }}</h2>
|
||||
<p v-if="manu.website">
|
||||
<a target="_blank" :href="manu.website.url">manu.website.url</a>
|
||||
</p>
|
||||
<p v-if="manu.email"><a :href="'mailto:'+manu.email">{{ manu.email }}</a></p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</nav>
|
||||
<!-- <section class="samples">
|
||||
<h3>{{ $t("materio.Samples") }}</h3>
|
||||
<ul>
|
||||
<li
|
||||
v-for="sample in material.samples"
|
||||
:key="sample.showroom.id"
|
||||
>
|
||||
<span class="showroom">{{ sample.showroom.name }}</span>: {{ sample.location }}
|
||||
</li>
|
||||
</ul>
|
||||
</section> -->
|
||||
<section class="body" v-html="material.body"/>
|
||||
<section class="linked-materials">
|
||||
<LinkedMaterialCard v-for="m in material.linked_materials" v-bind:key="m.id" :item="m"/>
|
||||
<span class="label">{{ $t("materio.Linked materials") }}</span>
|
||||
<ul>
|
||||
<li v-for="m in material.linked_materials" v-bind:key="m.id">
|
||||
<LinkedMaterialCard :item="m"/>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
||||
<section class="col col-left images" v-switcher>
|
||||
|
Reference in New Issue
Block a user