This commit is contained in:
CDeenen
2020-11-23 06:51:23 +01:00
parent fb26eacc8d
commit cd4c9e129e
13 changed files with 447 additions and 161 deletions

View File

@@ -16,7 +16,7 @@
{{localize "MaterialDeck.Macro"}} {{this.iteration}}
</div>
<div>
<select name="macros" class="macros-select" default="" style="max-width:140px;">
<select name="macros" class="macros-select" id="macros{{this.iteration}}" default="" style="max-width:140px;">
{{#select this.macro}}
<option value="">{{localize "MaterialDeck.None"}}</option>
{{#each macros}}
@@ -27,19 +27,15 @@
</div>
{{#if this.furnace}}
<label>{{localize "MaterialDeck.FurnaceArgs"}}</label>
<input type="text" name="args" value="{{this.args}}">
<input type="text" name="args" id="args{{this.iteration}}" value="{{this.args}}">
{{/if}}
<div class="flex-container" style="display:flex;flex-direction:row;padding-top:10px">
<label style="flex:1">{{localize "MaterialDeck.Background"}}</label>
<input style="flex:1" type="color" name="colorPicker" data-dtype="String" value="{{this.color}}">
<input style="flex:1" type="color" name="colorPicker" id="colorpicker{{this.iteration}}" data-dtype="String" value="{{this.color}}">
</div>
</div>
{{/each}}
</div>
{{/each}}
<button type="submit" name="submit">
<i class="far fa-save"></i> {{localize "MaterialDeck.Save"}}
</button>
</form>