show locked status in feed form
This commit is contained in:
parent
f52621a267
commit
42b7697001
@ -12,7 +12,7 @@ class FeedForm(ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = Feed
|
||||
exclude = 'owner', 'lock', 'config_type', 'config_id', 'last_check', 'last_id',
|
||||
exclude = 'owner', 'config_type', 'config_id', 'last_check', 'last_id',
|
||||
|
||||
|
||||
class FeedsAppConfigForm(ConfigForm):
|
||||
|
@ -28,6 +28,15 @@
|
||||
<textarea class="form-control" placeholder="Last id" id="id_feed-last_id" disabled>{{ feed.last_id }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 col-form-label" for="id_feed-locked"> </label>
|
||||
<div class="col-md-9">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" name="feed-locked" class="form-check-input" id="id_feed-locked" {% if feed.locked %}checked{% endif %}>
|
||||
<label class="form-check-label" for="id_feed-locked">Locked</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<hr>
|
||||
<h4>Module options</h4>
|
||||
|
Loading…
Reference in New Issue
Block a user