Add ability to create a feed from the UI. Still TODO: make it not look like utter shite.
This commit is contained in:
1 parent
cee4f9944e
commit
0e06d5587f
11 files changed
+946
-633
No files matched your search
@@ -0,0 +1,23 @@
|
||||
{% macro filterBlock(ctx, idx, type, target, value, id) %}
|
||||
<fieldset>
|
||||
<legend>Filter</legend>
|
||||
<input type="hidden" name="feedFilters[{{ idx }}][id]" value="{{ id }}"/>
|
||||
|
||||
<label for="target">Filter target:</label>
|
||||
<select name="feedFilters[{{ idx }}][target]" id="target">
|
||||
{% for filterTarget in ctx.FilterTargets %}
|
||||
<option value="{{ filterTarget.value }}" {% if filterTarget.value is same as(target) %}selected{% endif %}>{{ filterTarget.name | capitalize }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<label for="type">Filter type: </label>
|
||||
<select name="feedFilters[{{ idx }}][type]" id="type">
|
||||
{% for filterType in ctx.FilterTypes %}
|
||||
<option value="{{ filterType.value }}" {% if filterType is same as(type) %}selected{% endif %}>{{ filterType.name | capitalize }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<label for="value">Filter value:</label>
|
||||
<input type="text" name="feedFilters[{{ idx }}][value]" id="value" value="{{ value }}" />
|
||||
</fieldset>
|
||||
{% endmacro %}
|
||||
Reference in new issue
Block a user