Added in ability to add a new project with and without an image

Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
2023-02-06 01:26:35 +00:00
parent db7c12857e
commit fd64eb92b0
10 changed files with 413 additions and 91 deletions
+11 -7
View File
@@ -121,26 +121,30 @@
</div>
<div class="formControl">
<label class="checkContainer" for="isMainProject">Is It The Main Project
<input type="checkbox" id="isMainProject" name="isMainProject" required>
<input type="checkbox" id="isMainProject" name="isMainProject">
<span class="checkmark"></span>
</label>
</div>
<div class="formControl">
<label for="img">Image</label>
<input type="file" name="img" id="img">
<label for="projImg">Image</label>
<input type="file" name="projImg" id="projImg">
</div>
<div class="formControl">
<label for="projectInfo">Description</label>
<textarea name="projectInfo" id="projectInfo"></textarea>
<label for="projInfo">Description</label>
<textarea name="projInfo" id="projInfo" required></textarea>
</div>
<div class="formControl">
<label for="projectLink">Project Link</label>
<input type="text" name="projectLink" id="projectLink" pattern="https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)">
<label for="projLink">Project Link</label>
<input type="text" name="projLink" id="projLink" pattern="https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)">
</div>
<div class="formControl">
<label for="gitLink">Git Link</label>
<input type="text" name="gitLink" id="gitLink" pattern="https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)" required>
</div>
<div class="error hidden" id="projError">
<button class="close" type="button">&times;</button>
<div></div>
</div>
<input type="submit" value="Add new Project" class="btn btnPrimary boxShadowIn boxShadowOut">
</form>
<div id="projList">