MAPG-180 standardize form submit with AJAX
This commit is contained in:
1 parent
e4a51c139f
commit
ec969167e4
12 files changed
+18
-148
No files matched your search
@@ -1,13 +1,8 @@
|
||||
<?php
|
||||
$jsFiles = [
|
||||
'js/account/account.js',
|
||||
];
|
||||
?>
|
||||
<?php require ROOT . '/views/templates/main_header.php'; ?>
|
||||
<?php require ROOT . '/views/templates/header.php'; ?>
|
||||
<h2>Account</h2>
|
||||
<div class="box">
|
||||
<form id="accountForm" action="/account" method="post">
|
||||
<form id="accountForm" action="/account" method="post" data-observe-inputs="password_new,password_new_confirm">
|
||||
<input class="big fullWidth" type="password" name="password" placeholder="Current password" required minlength="6" autofocus>
|
||||
<hr>
|
||||
<?php /* TODO: disabled for the time being, email modification should be implemented */ ?>
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
<?php
|
||||
$jsFiles = [
|
||||
'js/account/delete.js',
|
||||
];
|
||||
?>
|
||||
<?php require ROOT . '/views/templates/main_header.php'; ?>
|
||||
<?php require ROOT . '/views/templates/header.php'; ?>
|
||||
<h2>Delete account</h2>
|
||||
<div class="box">
|
||||
<form id="deleteAccountForm" action="/account/delete" method="post">
|
||||
<form id="deleteAccountForm" action="/account/delete" method="post" data-redirect-on-success="/">
|
||||
<p class="justify">Are you sure you want to delete your account? This cannot be undone!</p>
|
||||
<input class="big fullWidth marginTop" type="password" name="password" placeholder="Current password" required minlength="6" autofocus>
|
||||
<p id="deleteAccountFormError" class="formError justify marginTop"></p>
|
||||
|
||||
@@ -50,7 +50,7 @@ $jsFiles = [
|
||||
</header>
|
||||
<div id="metadata" class="modal">
|
||||
<h2>Edit map data</h2>
|
||||
<form id="metadataForm" class="marginTop">
|
||||
<form id="metadataForm" class="marginTop" data-no-submit="true">
|
||||
<input class="fullWidth" type="text" name="name" value="<?= $mapName ?>" placeholder="Name of the map">
|
||||
<textarea class="fullWidth marginTop" name="description" rows="4" placeholder="Description of the map"><?= $mapDescription ?></textarea>
|
||||
<div class="right">
|
||||
|
||||
@@ -7,7 +7,7 @@ $jsFiles = [
|
||||
<?php require ROOT . '/views/templates/header.php'; ?>
|
||||
<h2>Sign up</h2>
|
||||
<div class="box">
|
||||
<form id="googleSignupForm" action="/signup/google" method="post">
|
||||
<form id="googleSignupForm" action="/signup/google" method="post" data-redirect-on-success="/">
|
||||
<?php if ($found): ?>
|
||||
<p class="justify">Please confirm that you link your account to your Google account.</p>
|
||||
<?php else: ?>
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
<?php
|
||||
$jsFiles = [
|
||||
'js/login/login.js',
|
||||
];
|
||||
?>
|
||||
<?php require ROOT . '/views/templates/main_header.php'; ?>
|
||||
<?php require ROOT . '/views/templates/header.php'; ?>
|
||||
<h2>Login</h2>
|
||||
<div class="box">
|
||||
<form id="loginForm" action="/login" method="post">
|
||||
<form id="loginForm" action="/login" method="post" data-redirect-on-success="/">
|
||||
<input class="big fullWidth" type="email" name="email" placeholder="Email address" required autofocus>
|
||||
<input class="big fullWidth marginTop" type="password" name="password" placeholder="Password" required minlength="6">
|
||||
<p id="loginFormError" class="formError justify marginTop"></p>
|
||||
|
||||
@@ -7,7 +7,7 @@ $jsFiles = [
|
||||
<?php require ROOT . '/views/templates/header.php'; ?>
|
||||
<h2>Sign up</h2>
|
||||
<div class="box">
|
||||
<form id="signupForm" action="/signup" method="post">
|
||||
<form id="signupForm" action="/signup" method="post" data-redirect-on-success="/signup/success">
|
||||
<?php if (isset($email)): ?>
|
||||
<p class="justify">No user found with the given email address. Sign up with one click!</p>
|
||||
<input class="big fullWidth marginTop" type="email" name="email" placeholder="Email address" value="<?= $email ?>" required>
|
||||
|
||||
Reference in new issue
Block a user