mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-04-30 02:31:41 -04:00
- This commit adds a proof-of-concept for retrieving actor template types. These are actors using the `worldbuilding.isTemplate` flag set to true. If there are multiple actors with that flag set to true, clicking the create actor button will pull up a prompt to choose from one of those types, which will then create an actor by duplicating the template actor's data. The flag will be unset on the new actor.
16 lines
568 B
HTML
16 lines
568 B
HTML
<form id="entity-create" autocomplete="off" onsubmit="event.preventDefault();">
|
|
<div class="form-group">
|
|
<label>{{localize "Name"}}</label>
|
|
<input type="text" name="name" placeholder="{{localize 'ENTITY.CreateNew'}} {{upper}}"/>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label>{{localize "Type"}}</label>
|
|
<select name="type">
|
|
{{#each types}}
|
|
<option value="{{this.value}}">{{this.label}}</option>
|
|
{{/each}}
|
|
</select>
|
|
<p class="notes">{{localize "ENTITY.TypeHint"}}</p>
|
|
</div>
|
|
</form>
|