sitekey view

This commit is contained in:
realaravinth 2021-05-09 19:54:10 +05:30
parent 95bc1feef7
commit bd20b4238b
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
3 changed files with 7 additions and 1 deletions

View file

@ -54,6 +54,7 @@ impl IndexPage {
}
}
/// route handler that renders individual views for sitekeys
pub async fn view_sitekey(
path: web::Path<String>,
data: web::Data<Data>,

View file

@ -6,6 +6,7 @@
<label class="sitekey-form__level-label" for="visitor<.= num .>"
>Visitor
<input
readonly="readonly"
class="sitekey-form__level-input"
type="number"
name="visitor<.= num .>"
@ -18,6 +19,7 @@
<label class="sitekey-form__level-label" for="difficulty<.= num .>">
Difficulty
<input
readonly="readonly"
type="number"
id="difficulty<.= num .>"
class="sitekey-form__level-input"

View file

@ -1,8 +1,9 @@
<. include!("../../../components/headers.html"); .>
<. include!("../../navbar/index.html"); .>
<div class="tmp-layout">
<. include!("../../header/index.html"); .>
<main class="panel-main">
include!("../../help-banner/index.html"); .>
<. include!("../../help-banner/index.html"); .>
<!-- Main content container -->
<div class="inner-container">
<!-- Main menu/ important actions roaster -->
@ -14,6 +15,7 @@
<label class="sitekey-form__label" for="description">
Description
<input
readonly="readonly"
class="sitekey-form__input"
type="text"
name="description"
@ -28,6 +30,7 @@
<label class="sitekey-form__label" for="duration">
Cooldown Duratoin(in seconds)
<input
readonly="readonly"
class="sitekey-form__input"
type="number"
name="duration"