mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 01:55:40 +00:00
refactor captcha.rs and levels.rs and rm duration routes
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<. include!("../help-banner/index.html"); .>
|
||||
<!-- Main content container -->
|
||||
<div class="inner-container">
|
||||
<div class="sitekey-form" action="<.= crate::V1_API_ROUTES.levels.add .>" method="post">
|
||||
<div class="sitekey-form" action="<.= crate::V1_API_ROUTES.captcha.create .>" method="post">
|
||||
<h1 class="form__title">
|
||||
<.= PAGE .>
|
||||
</h1>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<form class="sitekey-form" action="<.= crate::V1_API_ROUTES.levels.add .>" method="post">
|
||||
<form class="sitekey-form" action="<.= crate::V1_API_ROUTES.captcha.create .>" method="post">
|
||||
<h1 class="form__title">
|
||||
<.= form_title .>
|
||||
</h1>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<. const URL: &str = crate::V1_API_ROUTES.levels.update; .>
|
||||
<. const URL: &str = crate::V1_API_ROUTES.captcha.update; .>
|
||||
<. const READONLY: bool = false; .>
|
||||
<. include!("../view/__form-top.html"); .>
|
||||
<. for (count, level) in levels.iter().enumerate() { .>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<. const URL: &str = crate::V1_API_ROUTES.levels.add; .>
|
||||
<. const URL: &str = crate::V1_API_ROUTES.captcha.create; .>
|
||||
<. const READONLY: bool = true; .>
|
||||
<. include!("./__form-top.html"); .>
|
||||
<. for (count, level) in levels.iter().enumerate() { .>
|
||||
|
||||
Reference in New Issue
Block a user