mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-02-20 15:36:52 +00:00
Completed first-found of updates for the zone template creation view.
This commit is contained in:
parent
f1d17c166a
commit
fe49651e81
@ -1,43 +1,37 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% set active_page = "admin_domain_template" %}
|
{% set active_page = "admin_domain_template" %}
|
||||||
|
{% block title %}<title>Create Zone Template - {{ SITE_NAME }}</title>{% endblock %}
|
||||||
{% block title %}
|
|
||||||
<title>
|
|
||||||
Create Template - {{ SITE_NAME }}
|
|
||||||
</title>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block dashboard_stat %}
|
{% block dashboard_stat %}
|
||||||
<div class="content-header">
|
<div class="content-header">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row mb-2">
|
<div class="row mb-2">
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<h1 class="m-0 text-dark">
|
<h1 class="m-0 text-dark">
|
||||||
Template
|
Create Zone Template
|
||||||
<small>Create</small>
|
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<ol class="breadcrumb float-sm-right">
|
<ol class="breadcrumb float-sm-right">
|
||||||
<li class="breadcrumb-item"><a href="{{ url_for('admin.templates') }}">Templates</a></li>
|
<li class="breadcrumb-item"><a href="{{ url_for('admin.templates') }}">Templates</a></li>
|
||||||
<li class="breadcrumb-item active">Create</li>
|
<li class="breadcrumb-item active">Create Zone Template</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
{% with errors = get_flashed_messages(category_filter=["error"]) %}
|
{% with errors = get_flashed_messages(category_filter=["error"]) %}
|
||||||
{% if errors %}
|
{% if errors %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="alert alert-danger alert-dismissible">
|
<div class="alert alert-danger alert-dismissible">
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×
|
||||||
|
</button>
|
||||||
<h4>
|
<h4>
|
||||||
<i class="fa-solid fa-ban"></i> Error!
|
<i class="fa-solid fa-ban"></i> Error!
|
||||||
</h4>
|
</h4>
|
||||||
@ -49,63 +43,86 @@
|
|||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.alert-message -->
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.alert -->
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.col -->
|
||||||
|
</div>
|
||||||
|
<!-- /.row -->
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-4">
|
<div class="col-12 col-sm-6 col-lg-4">
|
||||||
<div class="card">
|
|
||||||
<div class="card-header">
|
|
||||||
<h3 class="card-title">Create new template</h3>
|
|
||||||
</div>
|
|
||||||
<form role="form" method="post" action="{{ url_for('admin.create_template') }}">
|
<form role="form" method="post" action="{{ url_for('admin.create_template') }}">
|
||||||
<input type="hidden" name="_csrf_token" value="{{ csrf_token() }}">
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token() }}">
|
||||||
|
<div class="card card-outline card-primary shadow">
|
||||||
|
<div class="card-header">
|
||||||
|
<h3 class="card-title">Zone Template Editor</h3>
|
||||||
|
</div>
|
||||||
|
<!-- /.card-header -->
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<label for="name">Template Name</label>
|
||||||
<input type="text" class="form-control" name="name" id="name"
|
<input type="text" class="form-control" name="name" id="name"
|
||||||
placeholder="Enter a valid template name (required)">
|
placeholder="Enter a valid template name (required)">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<label for="description">Template Description</label>
|
||||||
<input type="text" class="form-control" name="description" id="description"
|
<input type="text" class="form-control" name="description" id="description"
|
||||||
placeholder="Enter a template description (optional)">
|
placeholder="Enter a template description (optional)">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.card-body -->
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<button type="button" class="btn btn-secondary float-left" onclick="window.location.href='{{ url_for('admin.templates') }}'">
|
<button type="button" class="btn btn-secondary float-left" title="Cancel"
|
||||||
|
onclick="window.location.href='{{ url_for('admin.templates') }}'">
|
||||||
Cancel
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
<button type="submit" class="btn btn-primary float-right">
|
<button type="submit" class="btn btn-primary float-right" title="Save Template">
|
||||||
<i class="fa-solid fa-save"></i> Save
|
<i class="fa-solid fa-save"></i> Save Template
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.card-footer -->
|
||||||
|
</div>
|
||||||
|
<!-- /.card -->
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!-- /.col -->
|
||||||
<div class="col-8">
|
|
||||||
<div class="card">
|
<div class="col-12 col-sm-6 col-lg-8">
|
||||||
|
<div class="card card-outline card-secondary shadow">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3 class="card-title">Help with creating a new template</h3>
|
<h3 class="card-title">Zone Template Editor Help</h3>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.card-header -->
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
<dt>Template name</dt>
|
<dt>Template Name</dt>
|
||||||
<dd>Enter your template name, this is the name of the template that
|
<dd>Enter your template name, this is the name of the template that
|
||||||
will be shown to users. The name should not have any spaces but
|
will be shown to users. The name should not have any spaces but
|
||||||
can have symbols.</dd>
|
can have symbols.
|
||||||
<dt>Template description</dt>
|
</dd>
|
||||||
|
<dt>Template Description</dt>
|
||||||
<dd>Enter your template description, this is to help better
|
<dd>Enter your template description, this is to help better
|
||||||
identify the template.</dd>
|
identify the template.
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.card-body -->
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.card -->
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.col -->
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.row -->
|
||||||
</div>
|
</div>
|
||||||
</section>
|
<!-- /.container-fluid -->
|
||||||
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block extrascripts %}
|
{% block extrascripts %}
|
||||||
<script>
|
<script>
|
||||||
$("input[name=radio_type]").change(function () {
|
$("input[name=radio_type]").change(function () {
|
||||||
var type = $(this).val();
|
var type = $(this).val();
|
||||||
if (type == "secondary") {
|
if (type == "secondary") {
|
||||||
@ -114,5 +131,5 @@
|
|||||||
$("#domain_primary_address_div").hide();
|
$("#domain_primary_address_div").hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user