blob: ee462e5ab1fdae3aa2e17725002c7b3e001fb4e9 (
plain)
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
|
{{template "header.html" .}}
<body>
{{template "navbar.html" .}}
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<ul class="nav nav-sidebar">
<li class="grey-shadow"><a href="{{.VirtualRoot}}/"> <span class="number">N</span>Create a new scribble</a></li>
</ul>
<ul class="nav nav-sidebar" id="history">
{{if .Title}}
<li class="active"><a href="{{.VirtualRoot}}/{{.Title}}" data-url="{{.VirtualRoot}}/{{.Title}}" data-title="{{.Title}}" id="root-anchor"> <span class="number">!</span>{{.Title}}</a></li>
{{end}}
</ul>
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header"><span class="fa fa-pencil"></span> {{if .NotFound}}Not Found - Create it{{else}}Share your Notes online!{{end}}</h1>
<div class="row">
<form action="/api/new" id="memo" method="POST">
<div class="col-md-10">
<div class="form-group">
<input id="Title" name="Title" placeholder="Enter a title for your new notice. Later you will use the title as keyphrase to reference and search." class="form-control input-md" required="" type="text" value="{{.Title}}">
</div>
<!--Last updated on: <span id="time">{{.}}</span>-->
<div class="form-group">
<textarea name="Post" id="post" class="form-control" rows="8" placeholder="Type anything in here. If you visit later, it will be still here.">{{.Post}}</textarea>
</div>
<div class="form-group">
<button id="save" name="save" class="btn btn-primary btn-disabled"><span class="glyphicon glyphicon-floppy-disk"></span> Manually Save</button>
<button id="autosave" class="btn btn-success btn-disabled" data-toggle="collapse" data-target="#collapsible"><span class="glyphicon glyphicon-floppy-open"></span> Enable Autosave</button>
<span class="pull-right">
<button id="view" name="view" class="text-right btn btn-primary btn-disabled"><span class="fa fa-eye fa-lg"></span> View</button>
</span>
</div>
</div>
<!--div class="col-md-2">
<div class="form-group">
<h4>Options:</h4>
<div class="checkbox">
<label for="options-0">
<input name="options" id="options-0" value="1" type="checkbox">
Render as Markdown
</label>
</div>
</div>
</div-->
</form>
</div>
<div class="row">
<div class="col-md-8">
<p>To access the same scribble later just search for the title. <strong>Markdown supported!</strong>
<!--strong>It's important that you don't forget it.</strong-->
</p>
</div>
</div>
</div>
</div>
</div>
{{template "footer.html" .}}
|