This commit is contained in:
ziggi
2017-12-11 18:55:12 +00:00
parent dd17acb51f
commit 961731d379
3 changed files with 35 additions and 9 deletions

View File

@@ -352,13 +352,29 @@ nobase_dist_pkgdata_DATA = \
templs/alias-rename-form.html.ep \
templs/alias-rename-handler.html.ep \
\
templs/forward-list.html.ep \
templs/forward-add-form.html.ep \
templs/forward-add-handler.html.ep \
templs/forward-update-form.html.ep \
templs/forward-update-handler.html.ep \
templs/forward-delete-form.html.ep \
templs/forward-delete-handler.html.ep \
templs/forwarded-list.html.ep \
templs/forwarded-add-form.html.ep \
templs/forwarded-add-handler.html.ep \
templs/forwarded-update-form.html.ep \
templs/forwarded-update-handler.html.ep \
templs/forwarded-delete-form.html.ep \
templs/forwarded-delete-handler.html.ep \
\
templs/unwanted-list.html.ep \
templs/unwanted-add-form.html.ep \
templs/unwanted-add-handler.html.ep \
templs/unwanted-update-form.html.ep \
templs/unwanted-update-handler.html.ep \
templs/unwanted-delete-form.html.ep \
templs/unwanted-delete-handler.html.ep \
\
templs/trusted-list.html.ep \
templs/trusted-add-form.html.ep \
templs/trusted-add-handler.html.ep \
templs/trusted-update-form.html.ep \
templs/trusted-update-handler.html.ep \
templs/trusted-delete-form.html.ep \
templs/trusted-delete-handler.html.ep \
\
templs/exception.development.html.ep \
templs/exception.production.html.ep \

View File

@@ -20,9 +20,19 @@ CREATE TABLE aliases (
domain_id int,
list text
);
CREATE TABLE forwards (
CREATE TABLE forwarded (
id int unique NOT NULL PRIMARY KEY,
name text unique
);
CREATE TABLE unwanted (
id int unique NOT NULL PRIMARY KEY,
name text unique
);
CREATE TABLE trusted (
id int unique NOT NULL PRIMARY KEY,
name text unique
);
COMMIT;

View File

@@ -13,7 +13,7 @@
<div class="medium-6 medium-centered cell">
<form accept-charset="UTF-8" action="/trusted/add/handler" method="get" data-abide novalidate>
<h5 class="text-center">Add trusteded host</h5>
<h5 class="text-center">Add trusted host</h5>
<label>Host name
<input type="text" name="trusted_name" placeholder="host.org" required pattern="[_.-zA-Z0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{5,42}"/>
<span class="form-error">Mandatory, 5 or more letter</span>