Files
OSINT/templates/osint/seed_website_form.html
Iliyan Angelov ed94dd22dd update
2025-11-26 22:32:20 +02:00

101 lines
4.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends 'base.html' %}
{% block title %}{% if object %}Редактиране{% else %}Добавяне{% endif %} на Seed Website{% endblock %}
{% block content %}
<div class="form-container">
<h2>{% if object %}Редактиране{% else %}Добавяне{% endif %} на Seed Website</h2>
<form method="post">
{% csrf_token %}
<div class="form-group">
<label for="{{ form.name.id_for_label }}">Име *</label>
{{ form.name }}
{% if form.name.errors %}
<div class="error-message">{{ form.name.errors }}</div>
{% endif %}
</div>
<div class="form-group">
<label for="{{ form.url.id_for_label }}">URL *</label>
{{ form.url }}
{% if form.url.errors %}
<div class="error-message">{{ form.url.errors }}</div>
{% endif %}
<small class="form-text">Основният URL адрес за crawling</small>
</div>
<div class="form-group">
<label for="{{ form.description.id_for_label }}">Описание</label>
{{ form.description }}
{% if form.description.errors %}
<div class="error-message">{{ form.description.errors }}</div>
{% endif %}
</div>
<div class="form-row">
<div class="form-group">
<label for="{{ form.is_active.id_for_label }}">
{{ form.is_active }} Активен
</label>
{% if form.is_active.errors %}
<div class="error-message">{{ form.is_active.errors }}</div>
{% endif %}
</div>
<div class="form-group">
<label for="{{ form.priority.id_for_label }}">Приоритет *</label>
{{ form.priority }}
{% if form.priority.errors %}
<div class="error-message">{{ form.priority.errors }}</div>
{% endif %}
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="{{ form.crawl_depth.id_for_label }}">Crawl Depth *</label>
{{ form.crawl_depth }}
{% if form.crawl_depth.errors %}
<div class="error-message">{{ form.crawl_depth.errors }}</div>
{% endif %}
<small class="form-text">0 = само тази страница, 1 = + директни линкове, 2 = + 2 нива</small>
</div>
<div class="form-group">
<label for="{{ form.crawl_interval_hours.id_for_label }}">Интервал (часове) *</label>
{{ form.crawl_interval_hours }}
{% if form.crawl_interval_hours.errors %}
<div class="error-message">{{ form.crawl_interval_hours.errors }}</div>
{% endif %}
<small class="form-text">Колко често да се crawl-ва</small>
</div>
</div>
<div class="form-group">
<label for="{{ form.allowed_domains_text.id_for_label }}">Разрешени Домейни</label>
{{ form.allowed_domains_text }}
{% if form.allowed_domains_text.errors %}
<div class="error-message">{{ form.allowed_domains_text.errors }}</div>
{% endif %}
<small class="form-text">{{ form.allowed_domains_text.help_text }}</small>
</div>
<div class="form-group">
<label for="{{ form.user_agent.id_for_label }}">User Agent</label>
{{ form.user_agent }}
{% if form.user_agent.errors %}
<div class="error-message">{{ form.user_agent.errors }}</div>
{% endif %}
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Запази</button>
<a href="{% url 'osint:admin_dashboard' %}" class="btn btn-secondary">Отказ</a>
</div>
</form>
</div>
{% endblock %}