-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit.html
More file actions
25 lines (25 loc) · 1.03 KB
/
submit.html
File metadata and controls
25 lines (25 loc) · 1.03 KB
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
<!DOCTYPE html>
<html ng-app="news">
<head>
<meta author="Alex Goddijn"\>
<link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
<script type="text/javascript" src="angular/angular.min.js"></script>
<script type="text/javascript" src="app.js"></script>
<title>Alex News</title>
</head>
<body>
<div class="navdiv">
<h1 class="navbar">Alex News</h1>
<a class="navbar" href="main.html">News</a>
<a class="navbar active" href="submit.html">Submit</a>
</div>
<div ng-controller="NewsController as newsCtrl" >
<p>Still figuring out how to store data in browser, page does not yet work</p>
<form name="articleSubmission" action="main.html" novalidate>
<input type="text" autofocus="autofocus" placeholder="Article title" ng-model="newsCtrl.toSubmit.articleTitle" required><br>
<input type="url" placeholder="Article url" ng-model="newsCtrl.toSubmit.url" required><br>
<input style="width:10%" type="submit" value="submit article" ng-click="newsCtrl.saveArticle()">
</form>
</div>
</body>
</html>