[webpages] Actually add the forms file

This commit is contained in:
2024-08-04 00:11:48 -04:00
parent f29a039562
commit f30e416e8d
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,6 @@
from django import forms
from django.urls import reverse_lazy
class WebPageReadForm(forms.Form):
notes = forms.CharField(widget=forms.Textarea, required=False)
success_url = reverse_lazy("vrobbler-home")

View File

@ -0,0 +1,16 @@
<html>
<style>label { display:none; } textarea {height:8em; width:100%}</style>
<body>
<form method=post>{% csrf_token %}
{{form.as_p}}
<input type="hidden" id="object_id" value="object.uuid">
<input type="submit" value="Finish" />
</form>
<a href="{{object.url}}" target="_blank">Open in new window</a>
<iframe style="height:78%; width:100%" src="{{object.url}}" title="{{object.url}}" allowfullscreen sandbox>
<p>
Page could not be opened, use link above to read.
</p>
</iframe>
</body>
</html>