summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorhorus_arch2015-05-08 01:46:18 +0200
committerhorus_arch2015-05-08 01:46:18 +0200
commitfb7050acf2545c9d222d2c014460e4fcad5cc462 (patch)
tree942e1afa24dca916d8c003fb0a763424a93a2110 /templates/index.html
downloadscribbled-fb7050acf2545c9d222d2c014460e4fcad5cc462.tar.gz
Initial commit.
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html62
1 files changed, 62 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..ee462e5
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,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" .}}