generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 15 additions & 14 deletions
29
...c/main/resources/org/jetbrains/research/tasktracker/ui/main/panel/template/agreement.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
<div class="container"> | ||
<div class="form-group"> | ||
<label for="name">Please put your name: </label> | ||
<input type="text" name="name" id="name" placeholder="Name" required> | ||
</div> | ||
<br> | ||
<div class="form-group"> | ||
<label for="email">Please put your email: </label> | ||
<input type="email" name="email" id="email" placeholder="[email protected]" required> | ||
</div> | ||
<div class="agreement-container"> | ||
<p>I agree to the terms and conditions:</p> | ||
%s | ||
<p><span style="color: red">*</span> - Required field</p> | ||
<div class="box"> | ||
<p class="big-font">Register in study</p> | ||
<div class="form-group"> | ||
<input class="input" type="text" name="name" id="name" placeholder="Name" required> | ||
</div> | ||
<br> | ||
<div class="form-group"> | ||
<input class="input" type="email" name="email" id="email" placeholder="Email" required> | ||
</div> | ||
<div class="agreement-container"> | ||
<p>I agree to the terms and conditions:</p> | ||
%s | ||
<p><span style="color: red">*</span> - Required field</p> | ||
</div> | ||
</div> | ||
</div> | ||
<script> | ||
let requiredFields = document.querySelectorAll('input[required]') | ||
|
||
// Loop through each required input element and add the 'required' class to its parent label | ||
requiredFields.forEach(function(inputElement) { | ||
requiredFields.forEach(function (inputElement) { | ||
const parentLabel = inputElement.parentElement.querySelector('label'); | ||
if (parentLabel) { | ||
parentLabel.classList.add('required'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...src/main/resources/org/jetbrains/research/tasktracker/ui/main/panel/template/css/base.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
-webkit-font-smoothing: antialiased; | ||
|