besondere fertigkeiten tracken
This commit is contained in:
1 parent
fcb5d232b5
commit
ec33ccb381
4 files changed
+215
-86
No files matched your search
@@ -0,0 +1,46 @@
|
||||
<section class="standard-form" style="margin-bottom: 1rem">
|
||||
<fieldset>
|
||||
<legend>{{localize "Midgard6.NSC.kompetenz.kompetenz"}}</legend>
|
||||
<div class="">
|
||||
<div class="d-flex align-items-center justify-content-between">
|
||||
<input
|
||||
type="text"
|
||||
style="margin-left: 8px; max-width:10rem"
|
||||
name="fertigkeitsName"
|
||||
id="fertigkeitsName"
|
||||
placeholder="Fertigkeits Name"
|
||||
value="{{fertigkeit.name}}"
|
||||
/>
|
||||
<div class="flexrow" style="padding-left: 8px">
|
||||
<div class="segmented-button-row">
|
||||
<!-- Option 1 -->
|
||||
<p>{{localize "Midgard6.NSC.kompetenz.kompetenz"}}:</p>
|
||||
|
||||
<label class="segmented-button">
|
||||
<input type="radio" name="kompetenz-segment" value="-1" />
|
||||
<span class="segmented-button__content">
|
||||
<p>{{localize "Midgard6.NSC.kompetenz.miserabel"}}</p>
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<!-- Option 2 -->
|
||||
<label class="segmented-button">
|
||||
<input type="radio" name="kompetenz-segment" value="0" />
|
||||
<span class="segmented-button__content">
|
||||
<p>{{localize "Midgard6.NSC.kompetenz.mittelmäßig"}}</p>
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<!-- Option 3 -->
|
||||
<label class="segmented-button">
|
||||
<input type="radio" name="kompetenz-segment" value="1" />
|
||||
<span class="segmented-button__content">
|
||||
<p>{{localize "Midgard6.NSC.kompetenz.kompetent"}}</p>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</section>
|
||||
@@ -65,15 +65,39 @@
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
</legend>
|
||||
{{#each fertigkeiten as |fertigkeit|}}
|
||||
{{#each system.fertigkeiten as |fertigkeit|}}
|
||||
<div class="row align-items-center">
|
||||
<div class="col-6 row align-items-center" style="width: 100%; margin-left: 0">
|
||||
{{#if @root.editable}}
|
||||
{{#unless @root.system.locked}}
|
||||
<a
|
||||
class="item-control item-create"
|
||||
title="{{localize "Midgard6.NSC.kompetenz.bearbeiten"}}"
|
||||
data-action="editKompetenz"
|
||||
data-name="{{fertigkeit.name}}"
|
||||
data-kompetenz="{{fertigkeit.kompetenz}}"
|
||||
>
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a
|
||||
class="item-control item-create"
|
||||
title="{{localize "Midgard6.NSC.kompetenz.löschen"}}"
|
||||
data-action="deleteKompetenz"
|
||||
data-name="{{fertigkeit.name}}"
|
||||
>
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
<a
|
||||
class="col-8"
|
||||
data-action="rollSkill"
|
||||
data-name="{{fertigkeit}}"
|
||||
class=""
|
||||
data-action="rollKompetenz"
|
||||
data-kompetenz="{{fertigkeit.name}}"
|
||||
data-kompetenz-value="{{fertigkeit.wurf}}"
|
||||
>
|
||||
<p>{{fertigkeit}}</p>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
{{fertigkeit.name}} <i class="fa-solid fa-dice-d20" style="margin-left: 8px; margin-right: 0"></i>+{{fertigkeit.wurf}}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -103,8 +127,9 @@
|
||||
<div class="d-flex justify-content-center align-items-center">
|
||||
<a
|
||||
class=""
|
||||
data-action="rollResistenz"
|
||||
data-name="{{@key}}"
|
||||
data-action="rollKompetenz"
|
||||
data-kompetenz="{{localizeConcat "Midgard6.Resistenzen." @key}}"
|
||||
data-kompetenz-value="{{resistenz.value}}"
|
||||
>
|
||||
<i class="fa-solid fa-dice-d20" style=""></i>
|
||||
</a>
|
||||
|
||||
Reference in new issue
Block a user