#17 Gunst & Makel sind erstellbar auf Charakterbogen #29
No files matched your search
@@ -123,11 +123,14 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
|||||||
collapsible.forEach((node) => {
|
collapsible.forEach((node) => {
|
||||||
node.addEventListener(
|
node.addEventListener(
|
||||||
"click",
|
"click",
|
||||||
function () {
|
function (e) {
|
||||||
node.classList.toggle("active");
|
e = window.event || e;
|
||||||
var content = node.nextElementSibling;
|
if (this === e.target) {
|
||||||
content.classList.toggle("active");
|
node.classList.toggle("active");
|
||||||
node.getElementsByTagName("i")[0].classList.toggle("fa-compress");
|
var content = node.nextElementSibling;
|
||||||
|
content.classList.toggle("active");
|
||||||
|
node.getElementsByTagName("i")[0].classList.toggle("fa-compress");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{ capture: true }
|
{ capture: true }
|
||||||
);
|
);
|
||||||
@@ -163,7 +166,6 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
|||||||
flags: this.actor.flags,
|
flags: this.actor.flags,
|
||||||
config: CONFIG
|
config: CONFIG
|
||||||
});
|
});
|
||||||
console.warn(context);
|
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -81,6 +81,22 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
{{#with itemTypes.gunst}}
|
{{#with itemTypes.gunst}}
|
||||||
|
<div class="itemHeader" style="margin-bottom: 8px">
|
||||||
|
<div class="document-controls">
|
||||||
|
{{#if @root.editable}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="gunst"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
{{localize "DOCUMENT.Create" type=this.label}}
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{#each this.items as |gunst|}}
|
{{#each this.items as |gunst|}}
|
||||||
<div
|
<div
|
||||||
class="collapsible"
|
class="collapsible"
|
||||||
@@ -92,6 +108,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<i class="fas fa-expand"></i>
|
<i class="fas fa-expand"></i>
|
||||||
{{#if @root.editable}}
|
{{#if @root.editable}}
|
||||||
|
<a
|
||||||
|
class="item-control item-edit"
|
||||||
|
title="{{localize 'DOCUMENT.Update' type=gunst.name}}"
|
||||||
|
data-action="viewDoc"
|
||||||
|
>
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
</a>
|
||||||
<a
|
<a
|
||||||
class="item-control item-delete"
|
class="item-control item-delete"
|
||||||
title="{{localize 'DOCUMENT.Delete' type=gunst.name}}"
|
title="{{localize 'DOCUMENT.Delete' type=gunst.name}}"
|
||||||
@@ -112,6 +135,22 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
{{#with itemTypes.makel}}
|
{{#with itemTypes.makel}}
|
||||||
|
<div class="itemHeader" style="margin-bottom: 8px">
|
||||||
|
<div class="document-controls">
|
||||||
|
{{#if @root.editable}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="makel"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
{{localize "DOCUMENT.Create" type=this.label}}
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{#each this.items as |makel|}}
|
{{#each this.items as |makel|}}
|
||||||
<div
|
<div
|
||||||
type="button"
|
type="button"
|
||||||
@@ -124,9 +163,16 @@
|
|||||||
<div>
|
<div>
|
||||||
<i class="fas fa-expand"></i>
|
<i class="fas fa-expand"></i>
|
||||||
{{#if @root.editable}}
|
{{#if @root.editable}}
|
||||||
|
<a
|
||||||
|
class="item-control item-edit"
|
||||||
|
title="{{localize 'DOCUMENT.Update' type=makel.name}}"
|
||||||
|
data-action="viewDoc"
|
||||||
|
>
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
</a>
|
||||||
<a
|
<a
|
||||||
class="item-control item-delete"
|
class="item-control item-delete"
|
||||||
title="{{localize 'DOCUMENT.Delete' type=gunst.name}}"
|
title="{{localize 'DOCUMENT.Delete' type=makel.name}}"
|
||||||
style="z-index:9999"
|
style="z-index:9999"
|
||||||
data-action="deleteDoc"
|
data-action="deleteDoc"
|
||||||
>
|
>
|
||||||
@@ -177,14 +223,15 @@
|
|||||||
>{{legende.name}}
|
>{{legende.name}}
|
||||||
<div>
|
<div>
|
||||||
<i class="fas fa-expand"></i>
|
<i class="fas fa-expand"></i>
|
||||||
<a
|
|
||||||
class="item-control item-edit"
|
|
||||||
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
|
||||||
data-action="viewDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-edit"></i>
|
|
||||||
</a>
|
|
||||||
{{#if @root.editable}}
|
{{#if @root.editable}}
|
||||||
|
<a
|
||||||
|
class="item-control item-edit"
|
||||||
|
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
||||||
|
data-action="viewDoc"
|
||||||
|
>
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
</a>
|
||||||
<a
|
<a
|
||||||
class="item-control item-delete"
|
class="item-control item-delete"
|
||||||
title="{{localize 'DOCUMENT.Delete' type=legende.name}}"
|
title="{{localize 'DOCUMENT.Delete' type=legende.name}}"
|
||||||
@@ -240,6 +287,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<i class="fas fa-expand"></i>
|
<i class="fas fa-expand"></i>
|
||||||
{{#if @root.editable}}
|
{{#if @root.editable}}
|
||||||
|
<a
|
||||||
|
class="item-control item-edit"
|
||||||
|
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
||||||
|
data-action="viewDoc"
|
||||||
|
>
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
</a>
|
||||||
<a
|
<a
|
||||||
class="item-control item-delete"
|
class="item-control item-delete"
|
||||||
title="{{localize 'DOCUMENT.Delete' type=schicksalsgabe.name}}"
|
title="{{localize 'DOCUMENT.Delete' type=schicksalsgabe.name}}"
|
||||||
|
|||||||
Reference in new issue
Block a user