24 lines
967 B
HTML
24 lines
967 B
HTML
{% extends "base.html" %}
|
|
{% block title %}Import hostów z CSV - /etc/hosts Manager{% endblock %}
|
|
{% block content %}
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h2>Import serwerów z CSV</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="POST" action="{{ url_for('import_servers') }}" enctype="multipart/form-data">
|
|
<div class="mb-3">
|
|
<label for="file" class="form-label">Wybierz plik CSV</label>
|
|
<input type="file" name="file" id="file" class="form-control" accept=".csv" required>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Importuj</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="mt-3 text-center">
|
|
<a href="{{ url_for('add_server') }}" class="btn btn-secondary">Dodaj nowy serwer</a>
|
|
<a href="{{ url_for('server_list') }}" class="btn btn-secondary">Lista serwerów</a>
|
|
<a href="{{ url_for('export_servers_to_csv') }}" class="btn btn-secondary">Eksportuj serwery do CSV</a>
|
|
</div>
|
|
{% endblock %}
|