forked from xdy/twodsix-foundryvtt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
165 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
<div class="tab items" data-group="primary" data-tab="items"> | ||
<div class="general-items"> | ||
<ol class="items-list"> | ||
<!-- <li class="item flexrow item-header">--> | ||
<!-- <div class="item-image"></div>--> | ||
<!-- <div class="item-name">Name</div>--> | ||
<!-- <div class="item-controls">--> | ||
<!-- <a class="item-control item-create" title="Create item" data-type="item"><i class="fas fa-plus"></i> Add--> | ||
<!-- item</a>--> | ||
<!-- </div>--> | ||
<!-- </li>--> | ||
{{#each actor.gear as |item id|}} | ||
<li class="item flexrow" data-item-id="{{item._id}}"> | ||
<div class="item-image"><img src="{{item.img}}" title="{{item.name}}" width="24" height="24" /></div> | ||
<h4 class="item-name">{{item.name}}</h4> | ||
<div class="item-controls"> | ||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a> | ||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a> | ||
</div> | ||
</li> | ||
{{/each}} | ||
<li class="item flexrow item-header"> | ||
<div class="item-image"></div> | ||
<div class="item-name">Name</div> | ||
<div class="item-controls"> | ||
<a class="item-control item-create" title="Create item" data-type="equipment"><i class="fas fa-plus"></i> Add item</a> | ||
</div> | ||
</li> | ||
|
||
{{#each actor.gear as |item id|}} | ||
<li class="item flexrow" data-item-id="{{item._id}}"> | ||
<div class="item-grid"> | ||
<h4 class="item-name">{{item.name}}</h4> | ||
<h4 class="item-name">{{item.techlevel}}</h4> | ||
<h4 class="item-name">{{item.quantity}}</h4> | ||
<h4 class="item-name">{{item.weight}}</h4> | ||
<h4 class="item-type">{{item.type}}</h4> | ||
<div class="item-controls"> | ||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a> | ||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a> | ||
</div> | ||
</div> | ||
</li> | ||
{{/each}} | ||
|
||
|
||
</ol> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,29 @@ | ||
<form class="{{cssClass}}" autocomplete="off"> | ||
<header class="sheet-header"> | ||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" alt="item image"/> | ||
<div class="header-fields"> | ||
<h1 class="charname"> | ||
<label for="item.name" class="resource-label">Quantity</label> | ||
<input id="item.name" name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1> | ||
<div class="grid grid-2col"> | ||
<div class="resource"> | ||
<label for="data.quantity" class="resource-label">Quantity</label> | ||
<input id="data.quantity" type="text" name="data.quantity" value="{{data.quantity}}" | ||
data-dtype="Number"/> | ||
</div> | ||
<div class="resource"> | ||
<label for="data.weight" class="resource-label">Weight</label> | ||
<input id="data.weight" type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/> | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
<div class="item-page"> | ||
|
||
<label for="item.name" class="resource-label">Item Name</label> | ||
<input id="data.name" name="name" type="text" value="{{item.name}}" placeholder="Item Name"/> | ||
|
||
<label for="data.techlevel" class="resource-label">TL</label> | ||
<input id="data.techlevel" name="techlevel" type="text" value="{{item.techlevel}}" data-dtype="Number"/> | ||
|
||
<label for="data.quantity" class="resource-label">Quantity</label> | ||
<input id="data.quantity" name="quantity" type="text" value="{{item.quantity}}" data-dtype="Number"/> | ||
|
||
<label for="data.weight" class="resource-label">Weight</label> | ||
<input id="data.weight" name="weight" type="text" value="{{item.weight}}" data-dtype="Number"/> | ||
|
||
{{!-- Sheet Tab Navigation --}} | ||
<nav class="sheet-tabs tabs" data-group="primary"> | ||
<a class="item" data-tab="description">Description</a> | ||
<a class="item" data-tab="attributes">Attributes</a> | ||
</nav> | ||
<label for="item.type" class="resource-label">Item Type</label> | ||
<select name="type" value={{item.type}} > | ||
{{#select item.type}} | ||
<option value="equipment">Equipment</option> | ||
<option value="weapon">Weapon</option> | ||
<option value="armor">Armor</option> | ||
<option value="augment">Augment</option> | ||
{{/select}} | ||
</select> | ||
|
||
{{!-- Sheet Body --}} | ||
<section class="sheet-body"> | ||
|
||
{{!-- Description Tab --}} | ||
<div class="tab" data-group="primary" data-tab="description"> | ||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}} | ||
</div> | ||
|
||
{{!-- Attributes Tab --}} | ||
<div class="tab attributes" data-group="primary" data-tab="attributes"> | ||
{{!-- As you add new fields, add them in here! --}} | ||
</div> | ||
</section> | ||
<label for="data.description" class="resource-label">Item description</label> | ||
<textarea id="item.description" type="text" name="description" for="item.description" value="{{item.description}}"></textarea> | ||
</div> | ||
</form> |