1
0
Fork 0
mirror of synced 2024-06-29 03:20:58 +12:00

hide footer on add page

This commit is contained in:
Nick Sweeting 2021-01-28 23:15:05 -05:00
parent 5c54bcc1f3
commit d7df9e58ea
3 changed files with 38 additions and 12 deletions

View file

@ -22,10 +22,32 @@ class AddLinkForm(forms.Form):
url = forms.RegexField(label="URLs (one per line)", regex=URL_REGEX, min_length='6', strip=True, widget=forms.Textarea, required=True) url = forms.RegexField(label="URLs (one per line)", regex=URL_REGEX, min_length='6', strip=True, widget=forms.Textarea, required=True)
depth = forms.ChoiceField(label="Archive depth", choices=CHOICES, widget=forms.RadioSelect, initial='0') depth = forms.ChoiceField(label="Archive depth", choices=CHOICES, widget=forms.RadioSelect, initial='0')
archive_methods = forms.MultipleChoiceField( archive_methods = forms.MultipleChoiceField(
label="Archive methods (select at least 1, otherwise all will be used by default)",
required=False, required=False,
widget=forms.SelectMultiple, widget=forms.SelectMultiple,
choices=ARCHIVE_METHODS, choices=ARCHIVE_METHODS,
) )
# TODO: hook these up to the view and put them
# in a collapsible UI section labeled "Advanced"
#
# exclude_patterns = forms.CharField(
# label="Exclude patterns",
# min_length='1',
# required=False,
# initial=URL_BLACKLIST,
# )
# timeout = forms.IntegerField(
# initial=TIMEOUT,
# )
# overwrite = forms.BooleanField(
# label="Overwrite any existing Snapshots",
# initial=False,
# )
# index_only = forms.BooleanField(
# label="Add URLs to index without Snapshotting",
# initial=False,
# )
class TagWidgetMixin: class TagWidgetMixin:
def format_value(self, value): def format_value(self, value):
if value is not None and not isinstance(value, str): if value is not None and not isinstance(value, str):

View file

@ -68,4 +68,6 @@
</div> </div>
{% endblock %} {% endblock %}
{% block footer %}{% endblock %}
{% block sidebar %}{% endblock %} {% block sidebar %}{% endblock %}

View file

@ -64,18 +64,20 @@
{% block body %} {% block body %}
{% endblock %} {% endblock %}
</div> </div>
<footer> {% block footer %}
<br /> <footer>
<center> <br />
<small> <center>
Archive created using <a href="https://github.com/ArchiveBox/ArchiveBox" title="Github">ArchiveBox</a> version <small>
<a href="https://github.com/ArchiveBox/ArchiveBox/releases" title="Releases">v{{VERSION}}</a>. Archive created using <a href="https://github.com/ArchiveBox/ArchiveBox" title="Github">ArchiveBox</a> version
<br/><br/> <a href="https://github.com/ArchiveBox/ArchiveBox/releases" title="Releases">v{{VERSION}}</a>.
{{FOOTER_INFO}} <br/><br/>
</small> {{FOOTER_INFO}}
</center> </small>
<br /> </center>
</footer> <br />
</footer>
{% endblock %}
</div> </div>
</body> </body>