Files
vrobbler/vrobbler/templates/profiles/settings_form.html

99 lines
2.3 KiB
HTML

{% extends "base_detail.html" %}
{% load mathfilters %}
{% load static %}
{% load naturalduration %}
{% block head_extra %}
<style>
.container {
max-width: 500px;
float:left;
}
p {
margin-bottom: 15px;
}
label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
input[type="text"] {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
}
input[type="checkbox"] {
margin-left: 5px;
transform: scale(1.2);
}
input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}
.widget-links {
margin: 10px 0 20px 20px;
padding: 10px;
background: #f8f9fa;
border-radius: 4px;
}
.widget-links ul {
margin: 5px 0 0 0;
padding-left: 20px;
}
.widget-links li {
margin-bottom: 5px;
}
</style>
{% endblock %}
{% block title %}Settings{% endblock %}
{% block details %}
<form method="post">{% csrf_token %}
{% for field in form %}
{% if field.name == "enable_public_widgets" %}
<p>
{{ field }}
{{ field.label_tag }}
{% if field.errors %}
<span class="error">{{ field.errors }}</span>
{% endif %}
</p>
{% if user_id %}
<div class="widget-links">
<p><strong>Available Widgets:</strong></p>
<ul>
<li><a href="{% url 'scrobbles:embeddable-top-artists' user_id %}">Top Artists</a></li>
<li><a href="{% url 'scrobbles:embeddable-top-board-games-week' user_id %}">Top Board Games (Week)</a></li>
<li><a href="{% url 'scrobbles:embeddable-top-board-games-month' user_id %}">Top Board Games (Month)</a></li>
<li><a href="{% url 'scrobbles:embeddable-top-board-games-year' user_id %}">Top Board Games (Year)</a></li>
</ul>
</div>
{% endif %}
{% else %}
<p>
{{ field.label_tag }}
{{ field }}
{% if field.errors %}
<span class="error">{{ field.errors }}</span>
{% endif %}
</p>
{% endif %}
{% endfor %}
<input type="submit" value="Save">
</form>
{% endblock %}