2015-04-27 22:07:18 +02:00
< html xmlns = "http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
< xi:include href = "layout.html" / >
< head >
< title > Admin Ticker< / title >
< link href = "../admin.css" type = "text/css" rel = "stylesheet" / >
< link href = "../bootstrap/css/bootstrap.min.css" type = "text/css" rel = "stylesheet" media = "all" / >
< link href = "../bootstrap/css/bootstrap-theme.min.css" type = "text/css" rel = "stylesheet" media = "all" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< / head >
< body >
< div class = "container theme-showcase" role = "main" >
< ?python
import datetime
now = datetime.datetime.now()
?>
2015-04-27 22:36:01 +02:00
< div class = "page-header" > < h1 > Tycker Administration< / h1 > < / div >
2015-04-27 22:07:18 +02:00
< ul class = "nav nav-tabs" >
< li role = "presentation" class = "active" > < a href = "#" > New entry< / a > < / li >
< li role = "presentation" > < a href = "edit" > All entries< / a > < / li >
< li role = "presentation" > < a href = "../../${static_url}" title = "static website" target = "_blank" > Ticker< / a > < / li >
< / ul >
< div class = "row" >
2015-04-27 22:36:01 +02:00
< div class = "col-xs-12 col-sm-8" >
2015-04-27 22:07:18 +02:00
< p > < / p >
< div id = "timestamp" >
< form action = "generate" method = "GET" >
< button type = "submit" class = "btn btn-default" > Generate current timestamp< / button >
< / form >
< / div >
< form action = "submit" method = "GET" >
< div class = "form-group" >
< label for = "Timestamp" > Timestamp< / label >
2015-04-27 22:43:43 +02:00
< input type = "text" class = "form-control" id = "Timestamp" name = "date" value = "${now.strftime(date_format)}" placeholder = "required, press button to insert current timestamp" / >
2015-04-27 22:07:18 +02:00
< / div >
< div class = "form-group" >
< label for = "Title" > Title< / label >
2015-04-27 22:43:43 +02:00
< input type = "text" class = "form-control" id = "Titel" name = "title" value = "" autofocus = "autofocus" placeholder = "optional" / >
2015-04-27 22:07:18 +02:00
< / div >
< div class = "form-group" >
< label for = "Content" > Content< / label >
2015-04-27 23:19:18 +02:00
< textarea class = "form-control" name = "content" rows = "8" placeholder = "required" / >
2015-04-27 22:07:18 +02:00
< / div >
< button type = "submit" class = "btn btn-default" > Create< / button >
< / form >
< p > < / p >
< / div >
2015-04-27 22:36:01 +02:00
< div class = "col-xs-12 col-sm-4" >
2015-04-27 22:07:18 +02:00
< xi:include href = "help.html" / >
< / div >
< / div >
< / div >
< / body >
< / html >