This commit is contained in:
CDeenen
2020-11-10 01:52:58 +01:00
commit 0112e029d9
22 changed files with 2874 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<form autocomplete="off" onsubmit="event.preventDefault()">
<style>
.boxed {
border: 1px solid black ;
border-radius: 5px ;
width: 100px;
height: {{height}}px;
}
</style>
{{#each macroData}}
<div class="form-group">
{{#each this.dataThis}}
<div class="boxed" style="padding: 5px; margin:2px">
<div style="text-align:center;">
{{localize "MaterialDeck.Macro.Macro"}} {{this.iteration}}
</div>
<div>
<select name="macros" class="macros-select" default="" style="max-width:140px;">
{{#select this.macro}}
<option value="">{{localize "MaterialDeck.Playlist.None"}}</option>
{{#each macros}}
<option value="{{this._id}}">{{this.name}}</option>
{{/each}}
{{/select}}
</select>
</div>
{{#if this.furnace}}
<label>{{localize "MaterialDeck.Macro.FurnaceArgs"}}</label>
<input type="text" name="args" value="{{this.args}}">
{{/if}}
<div class="flex-container" style="display:flex;flex-direction:row;padding-top:10px">
<label style="flex:1">{{localize "MaterialDeck.Macro.Background"}}</label>
<input style="flex:1" type="color" name="colorPicker" data-dtype="String" value="{{this.color}}">
</div>
</div>
{{/each}}
</div>
{{/each}}
<button type="submit" name="submit">
<i class="far fa-save"></i> {{localize "MaterialDeck.Playlist.Save"}}
</button>
</form>