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( pub async fn view_sitekey(
path: web::Path<String>, path: web::Path<String>,
data: web::Data<Data>, data: web::Data<Data>,

View file

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

View file

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