-
Notifications
You must be signed in to change notification settings - Fork 0
/
add-article.html~
99 lines (87 loc) · 4.55 KB
/
add-article.html~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>New Article</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="./css/main.css" rel="stylesheet">
<link rel="stylesheet" href="./node_modules/bootstrap/bootstrap.min.css" />
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-4 mt-4 border border-dark rounded">
<form class="pt-2 py-2 hiring-form" name="mentor-hiring">
<h2 >New Article Info</h2>
<hr>
<div class="row mb-4">
<div class="col d-flex align-items-center">
<label class="mr-3 w-25" for="select-type">Type of article</label>
<select class="form-control custom-select" name="type" id="select-type" placeholder="Choose type" required >
<option value="0">Video</option>
<option value="1">Audio</option>
<option value="2">Text</option>
</select>
</div>
</div>
<div class="row mb-4">
<div class="col d-flex align-items-center">
<label class="mr-3 w-25" for="url">Image(url)</label>
<input class="form-control input-group-sm" type="text" name="url" id="url" placeholder="Add image" required>
</div>
</div>
<div class="row mb-4">
<div class="col d-flex align-items-center">
<label class="mr-3 w-25" for="title">Title</label>
<input class="form-control input-group-sm" type="text" name="title" id="title" placeholder="Add title " required>
</div>
</div>
<div class="row mb-4">
<div class="col d-flex align-items-center">
<label class="mr-3 w-25" for="author">Author</label>
<input class="form-control input-group-sm" type="text" name="author" id="author" placeholder="Add author" required>
</div>
</div>
<div class="row mb-4">
<div class="col d-flex align-items-center">
<label class="mr-3 w-25" for="date">Date</label>
<input class="form-control input-group-sm" type="date" name="date" id="date" placeholder="Add date" required>
</div>
</div>
<div class="row mb-4 info" >
</div>
<div class="row mb-4" onclick="textArea()">
<div class="col d-flex align-items-center">
<label class="mr-3 w-25" for="author">Description</label>
<input class="form-control input-group-sm" type="text" name="author" id="author" placeholder="Write post" required>
</div>
</div>
<div class="row mb-4">
<div class="col d-flex align-items-center">
<label class="mr-4" for="courses">Courses</label>
<select class="form-control" id="courses" name="courses-id" multiple>
${courses.map((course) => `<option value="${course.id}">${course.name}</option>`)}
</select>
</div>
</div>
<div class="row justify-content-end my-3 pr-3">
<input type="submit" name="submit-btn" class="btn btn-dark w-25" value="Save">
</div>
</form>
</div>
</div>
</div>
<script src="./node_modules/bootstrap/bootstrap.min.js"></script>
<script>
function textArea(){
let info = document.querySelector('.info');
info.innerHTML =`<ul class="list-group mx-3 ml-10 text-warning">
<li class="list-group-item ">To do a paragraph use symbol '*' before</li>
<li class="list-group-item ">To do a paragraph title use symbol '!' before</li>
</ul>`;
}
</script>
</body>
</html>