show locked status in feed form

This commit is contained in:
bakatrouble 2019-11-24 17:18:05 +03:00
parent f52621a267
commit 42b7697001
2 changed files with 10 additions and 1 deletions

View File

@ -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):

View File

@ -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>