crud with conditions
This commit is contained in:
@@ -17,11 +17,17 @@
|
||||
<label>ID</label>
|
||||
<div>{{ data.id }}</div>
|
||||
|
||||
<label for="itemDescription">Beschreibung</label>
|
||||
<input type="text" name="itemDescription" value="{{ data.itemDescription }}">
|
||||
<label for="symbol">Symbol</label>
|
||||
<input type="text" name="symbol" value="{{ data.symbol }}">
|
||||
|
||||
<label for="itemName">Name</label>
|
||||
<input type="text" name="itemName" value="{{ data.itemName }}">
|
||||
<label for="condition">Condition</label>
|
||||
<select name="condition">
|
||||
<option value="gt" {% if data.condition == "gt" %}selected{% endif %}>Greater than</option>
|
||||
<option value="lt" {% if data.condition == "lt" %}selected{% endif %}>Lower than</option>
|
||||
</select>
|
||||
|
||||
<label for="value">Value</label>
|
||||
<input type="number" step="any" name="value" value="{{ data.value }}">
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<button value="cancel" formmethod="dialog" onclick="window.top.postMessage('close', '*')">Cancel</button>
|
||||
|
||||
Reference in New Issue
Block a user