replace name of methods and funtions
This commit is contained in:
@@ -32,12 +32,15 @@
|
||||
</div>
|
||||
<hr />
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<div class="newItemMenu" id="newItem">
|
||||
<form class="form-container">
|
||||
<h3>Nouvelle entrée</h3><br>
|
||||
|
||||
<label for="nom"><b>Nom</b></label>
|
||||
<input type="text" placeholder="Nom" id="newEntry_name" required="">
|
||||
<input type="text" placeholder="Nom" id="newEntry_name" required>
|
||||
<br/>
|
||||
<label> Cette entré est un sous menu </label>
|
||||
<input type="checkbox" id="submenu" onclick="disableLink()" value="Cette entré est un sous-menu"><br>
|
||||
@@ -45,14 +48,15 @@
|
||||
<input type="text" placeholder="un lien ou nom d'un bloc" id="newEntry_link">
|
||||
<br>
|
||||
<button type="button" onclick="addEntry()" class="btn btn-outline-success">+</button>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<hr>
|
||||
<button class="btn btn-success" type="submit" form="menuEdit"> Enregistrer </button>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
@@ -120,71 +124,6 @@
|
||||
|
||||
</script>
|
||||
|
||||
<!-- Add entry to menu-->
|
||||
<style>
|
||||
|
||||
.entry {
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
/* The popup form - hidden by default */
|
||||
.form-popup {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 20%;
|
||||
right: 50%;
|
||||
opacity: 1;
|
||||
background-color: white;
|
||||
border: 3px solid #f1f1f1;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
/* Add styles to the form container */
|
||||
.form-container {
|
||||
max-width: 300px;
|
||||
padding:0;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
/* Full-width input fields */
|
||||
.form-container input[type=text], .form-container{
|
||||
width: 100%;
|
||||
padding: 15px;
|
||||
margin: 5px 0 22px 0;
|
||||
border: none;
|
||||
background: #fff;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
/* When the inputs get focus, do something */
|
||||
.form-container input[type=text]:focus, .form-container input[type=password]:focus {
|
||||
background-color: #ddd;
|
||||
outline: 1px;
|
||||
}
|
||||
|
||||
/* Set a style for the submit/login button */
|
||||
.form-container .btn {
|
||||
background-color: #04AA6D;
|
||||
color: white;
|
||||
padding: 20px 20px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
text-align :center;
|
||||
width: 40%;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* Add a red background color to the cancel button */
|
||||
.form-container .cancel {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
/* Add some hover effects to buttons */
|
||||
.form-container .btn:hover, .open-button:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
function disableLink() {
|
||||
|
||||
Reference in New Issue
Block a user