[webpages] Actually add the forms file
This commit is contained in:
6
vrobbler/apps/webpages/forms.py
Normal file
6
vrobbler/apps/webpages/forms.py
Normal 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")
|
||||
16
vrobbler/templates/webpages/webpage_read.html
Normal file
16
vrobbler/templates/webpages/webpage_read.html
Normal 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>
|
||||
Reference in New Issue
Block a user