55 lines
No EOL
1.9 KiB
HTML
55 lines
No EOL
1.9 KiB
HTML
<template name="locations">
|
|
<h1>Locations</h1>
|
|
<p>You can build out your storage structure heere. Setting a location as a 'child' will prompt you to select the 'parent' location.</p>
|
|
<hr>
|
|
<div class="grid">
|
|
<div>
|
|
<label for="lcationName">Location Name *</label>
|
|
<input type="text" class="locationName" id="locationName" required />
|
|
</div>
|
|
<div>
|
|
<label for="locationDesc">Description</label>
|
|
<input type="text" class="locationDesc" id="locationDesc" />
|
|
</div>
|
|
</div>
|
|
<div class="grid">
|
|
<div>
|
|
<label for="locationType">Location Type *</label>
|
|
<select name="locationType" id="locationType" class="locationType">
|
|
<option value="" disabled selected>Choose...</option>
|
|
{{#each locTypes}}
|
|
<option value="{{locationTypeName}} | {{_id}}">{{locationTypeName}}</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="grid">
|
|
<div>
|
|
<label for="locationIsChild">
|
|
<input type="checkbox" class="locationIsChild" id="locationIsChild">
|
|
Child Location
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="grid">
|
|
{{#if $eq isChild true}}
|
|
<div>
|
|
<label for="parentLocation">Parent Location *</label>
|
|
<select name="parentLocation" id="parentLocation" required>
|
|
<option value="" disabled selected>Choose...</option>
|
|
{{#each locations}}
|
|
<option value="{{locationNmae}} | {{_id}}">{{locationName}}</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
<div class="grid">
|
|
<div>
|
|
<button class="primary saveLocation right" id="saveLocation">Save</button>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
{{> locationInfo}}
|
|
{{> snackbar}}
|
|
</template> |