Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
358 lines (322 sloc) 12.5 KB
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<title> {{pagetitle}} </title>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta name='description' content='MuContent Default theme'>
<meta name='author' content='Andrea Di Mario'>
<!-- Le styles -->
<link href='/css/bootstrap.css' rel='stylesheet'>
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href='/css/bootstrap-responsive.css' rel='stylesheet'>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src='http://html5shim.googlecode.com/svn/trunk/html5.js'></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel='shortcut icon' href='/ico/favicon.ico'>
<link rel='apple-touch-icon-precomposed' sizes='144x144' href='/ico/apple-touch-icon-144-precomposed.png'>
<link rel='apple-touch-icon-precomposed' sizes='114x114' href='/ico/apple-touch-icon-114-precomposed.png'>
<link rel='apple-touch-icon-precomposed' sizes='72x72' href='/ico/apple-touch-icon-72-precomposed.png'>
<link rel='apple-touch-icon-precomposed' href='/ico/apple-touch-icon-57-precomposed.png'>
</head>
<body>
{{#header}}
<div class='navbar navbar-fixed-top'>
<div class='navbar-inner'>
<div class='container' style='width: auto;'>
<a class='btn btn-navbar' data-toggle='collapse' data-target='.nav-collapse'>
<span class='icon-bar'></span>
<span class='icon-bar'></span>
<span class='icon-bar'></span>
</a>
<a class='brand' href='/'>MuContent</a>
<!-- MENU -->
<ul class='nav'>
{{#menu}}
<!-- ATTENTION AT SUBMENU DEFINITION -->
{{^is_parent}}
<li><a href='{{path}}'> {{item}} </a></li>
{{/is_parent}}
{{#is_parent}}
<li class='dropdown'><a class='dropdown-toggle' data-toggle='dropdown' data-target='#' href='{{path}}'> {{item}} <b class='caret'></b></a>
<ul class='dropdown-menu'>
{{#submenu}}
<li><a href='{{submenu_path}}'> {{submenu_item}} </a></li>
{{/submenu}}
</ul>
</li>
{{/is_parent}}
{{/menu}}
</ul>
{{#more_language}}
<ul class='nav pull-right'>
<li class='dropdown'><a href='#' class='dropdown-toggle' data-toggle='dropdown' data-target='#'>Language <b class='caret'></b></a>
<ul class='dropdown-menu'>
{{#languages}}
<li><a href='/locales/{{lang_id}}'>{{lang_name}}</a></li>
{{/languages}}
</ul>
</li>
</ul>
{{/more_language}}
</div>
</div>
</div>
{{/header}}
<div class='row'>
<!-- LEFT COLUMNS -->
<div class='span8'>
<h1>{{pagetitle}}</h1>
{{#message}}
<!-- THE MESSAGE -->
<div class='alert fade in {{action}}'>{{message}} <a class='close' data-dismiss='alert' href='#'>&times;</a></div>
{{/message}}
<!-- THE MUCONTENT NOTIFICATION -->
<div id='notification' class='alert fade in'></div>
{{#staticcontent}}
<!-- THE PAGE CONTENT -->
{{#content_index}}
{{/content_index}}
{{#content_login}}
{{/content_login}}
{{#content_registration}}
{{/content_registration}}
{{#content_user}}
{{/content_user}}
{{#content_module}}
{{/content_module}}
{{#content_page}}
{{/content_page}}
{{#content_menu}}
{{/content_menu}}
{{#content_submenu}}
{{/content_submenu}}
{{#content_themes}}
{{/content_themes}}
{{#content_language}}
{{/content_language}}
{{#content_content}}
{{/content_content}}
{{#content_maintenance}}
{{/content_maintenance}}
{{#content_domains}}
{{/content_domains}}
{{#content_information}}
{{/content_information}}
{{#content_search}}
{{/content_search}}
{{#content_404}}
{{/content_404}}
{{/staticcontent}}
{{#form}}
<!-- THE FORMS -->
{{#form_user}}
<form method='post' action='/{{type}}' class='well form-horizontal'>
<input type='text' name='email'' placeholder='{{langformemail}}' value='{{email}}'/>
{{#registration}}
<input type='text' name='firstname' placeholder='{{langformfirstname}}' value='{{firstname}}'/>
<input type='text' name='surname' placeholder='{{langformsurname}}' value='{{surname}}'/>
{{/registration}}
{{#restricted}}
<input type='text' name='role' placeholder='{{langformrole}}' value='{{role}}'/>
{{/restricted}}
<input type='password' name='password' placeholder='{{langformpassword}}'/>
{{{captcha}}}
<button type='submit' class='btn btn-primary'>{{langformsubmit}}</button>
</form>
{{/form_user}}
{{#form_page}}
<form method='post' action='/page' class='well form-horizontal'>
<input type='hidden' name='type' value='{{type}}'/>
<input type='text' name='method' placeholder='{{langformmethod}}' value='{{method}}'/>
<input type='text' name='pathtitle' placeholder='{{langformpagetitle}}' value='{{pathtitle}}'/>
<input type='text' name='formoption' placeholder='{{langformformoption}}' value='{{formoption}}'/>
<input type='text' name='contentoption' placeholder='{{langformcontentoption}}' value='{{contentoption}}'/>
<input type='text' name='miscoption' placeholder='{{langformmiscoption}}' value='{{miscoption}}'/>
<button type='submit' class='btn btn-primary'>{{langformsubmit}}</button>
</form>
{{/form_page}}
{{#form_menulist}}
<form method='post' action='/menu' class='well form-horizontal'>
<input type='hidden' name='type' value='{{type}}'/>
<input type='text' name='pathvalue' placeholder='{{langformpath}}' value='{{pathvalue}}'/>
<input type='text' name='itemvalue' placeholder='{{langformitem}}' value='{{itemvalue}}'/>
<input type='text' name='position' placeholder='{{langformposition}}' value='{{position}}'/>
<input type='text' name='acl' placeholder='{{langformacl}}' value='{{acl}}'/>
<button type='submit' class='btn btn-primary'>{{langformsubmit}}</button>
</form>
{{/form_menulist}}
{{#form_submenulist}}
<form method='post' action='/submenu' class='well form-horizontal'>
<input type='hidden' name='type' value='{{type}}'/>
<input type='text' name='pathvalue' placeholder='{{langformpath}}' value='{{pathvalue}}'/>
<input type='text' name='itemvalue' placeholder='{{langformitem}}' value='{{itemvalue}}'/>
<input type='text' name='position' placeholder='{{langformposition}}' value='{{position}}'/>
<input type='text' name='parent_position' placeholder='{{langformparentposition}}' value='{{parent_position}}'/>
<input type='text' name='acl' placeholder='{{langformacl}}' value='{{acl}}'/>
<button type='submit' class='btn btn-primary'>{{langformsubmit}}</button>
</form>
{{/form_submenulist}}
{{#form_language}}
<form method='post' action='/language' class='well form-horizontal'>
<input type='text' name='lang_id' placeholder='{{langformlangid}}' value='{{lang_id}}'/>
<input type='text' name='lang_name' placeholder='{{langformlangname}}' value='{{lang_name}}'/>
<button type='submit' class='btn btn-primary'>{{langformsubmit}}</button>
</form>
{{/form_language}}
{{#form_information}}
<form method='post' action='/information' class='well form-horizontal'>
<input type='text' name='captcha_public_key' placeholder='{{langformrecaptchapublic}}' value='{{captcha_public_key}}'/>
<input type='text' name='captcha_private_key' placeholder='{{langformrecaptchaprivate}}' value='{{captcha_private_key}}'/>
<button type='submit' class='btn btn-primary'>{{langformsubmit}}</button>
</form>
{{/form_information}}
{{#form_content}}
<form method='post' action='/content' class='well form-horizontal'>
<input type='hidden' name='operation' value='{{operation}}'/>
<input type='text' name='type' placeholder='{{langformcontenttype}}' value='{{type}}'/>
<input type='text' name='tag' placeholder='{{langformcontenttag}}' value='{{tag}}'/>
<input type='text' name='lang_id' placeholder='{{langformlangid}}' value='{{lang_id}}'/>
<input type='text' name='keyword' placeholder='{{langformkeyword}}' value='{{_keyword}}'/>
<input type='text' name='reference' placeholder='{{langformreference}}' value='{{reference}}'/>
<textarea name='text' placeholder='{{langformcontent}}'/></textarea>
<button type='submit' class='btn btn-primary'>{{langformsubmit}}</button>
</form>
{{/form_content}}
{{#form_maintenance}}
<form method='post' action='/maintenance' class='well form-horizontal'>
<input type='checkbox' name='maintenance' value='{{value}}' {{checked}} />
<button type='submit' class='btn btn-primary'>{{langformsubmit}}</button>
</form>
{{/form_maintenance}}
{{#form_themes}}
<form method='post' action='/themes' class='well form-horizontal'>
<textarea name='content' rows='100' class='span8' placeholder='{{langformcontent}}' />{{content}}</textarea>
<button type='submit' class='btn btn-primary'>{{langformsubmit}}</button>
</form>
{{/form_themes}}
{{#form_domains}}
<form method='post' action='/domains' class='well form-horizontal'>
<textarea name='content' placeholder='{{langformcontent}}' />{{content}}</textarea>
<button type='submit' class='btn btn-primary'>{{langformsubmit}}</button>
</form>
{{/form_domains}}
{{/form}}
<!-- DATA -->
{{#data_user_new}}
{{#restricted}}
<a href='/registration'>New User</a><br><br>
{{/restricted}}
{{/data_user_new}}
{{#data_user}}
{{email}} -
{{firstname}} -
{{surname}} -
{{password}}
{{#user_edit}}
<a href='/user/edit/{{_id}}'>edit</a>
{{/user_edit}}
{{#restricted}}
<a href='/user/delete/{{_id}}'>delete</a><br>
{{/restricted}}
{{/data_user}}
{{#data_page_new}}
<a href='/page/new'>New Page</a><br><br>
{{/data_page_new}}
{{#data_page}}
{{method}} -
{{pagetitle}} -
{{form}}
<a href='/page/edit/{{method}}'>edit</a><br>
{{/data_page}}
{{#data_menulist_new}}
<a href='/menu/new'>New Menu Item</a><br><br>
{{/data_menulist_new}}
{{#data_menulist}}
{{path}} -
{{item}} -
{{position}} -
{{acl}}
<a href='/menu/edit/{{tag}}'>edit</a><br>
{{/data_menulist}}
{{#data_submenulist_new}}
<a href='/submenu/new'>New SubMenu Item</a><br><br>
{{/data_submenulist_new}}
{{#data_submenulist}}
{{submenu_path}} -
{{submenu_item}} -
{{position}} -
{{parent_position}} -
{{acl}}
<a href='/submenu/edit/{{tag}}'>edit</a><br>
{{/data_submenulist}}
{{#data_themes}}
{{field}} : {{value}}
{{/data_themes}}
{{#data_language_new}}
<a href='/language/new'>New Language</a><br><br>
{{/data_language_new}}
{{#data_language}}
{{lang_id}} -
{{lang_name}}
<a href='/language/delete/{{lang_id}}'>delete</a><br>
{{/data_language}}
{{#data_content_new}}
<a href='/content/new'>New content</a><br><br>
{{/data_content_new}}
{{#data_content}}
{{type}} -
{{tag}} -
{{lang_id}} -
{{_keyword}} -
{{reference}} -
{{text}}
<a href='/content/edit/{{type}}/{{tag}}/{{lang_id}}'>edit</a>
<a href='/content/delete/{{type}}/{{tag}}/{{lang_id}}'>delete</a><br>
{{/data_content}}
{{#data_modules}}
{{value}} - <a href='/{{value}}/install/{{status}}'>{{status}}</a> <br>
{{/data_modules}}
{{#data_search}}
{{tag}} - {{text}} - <a href='{{reference}}'>Go to page</a> <br>
{{/data_search}}
</div>
<!-- RIGHT COLOUMS / SIDEBAR -->
{{#sidebar}}
<div class='span4'>
<form method='post' action='/search' class='well form-search'>
<input type='text' name='search_value' class='input-medium search-query'>
<button type='submit' class='btn'>{{langformsubmit}}</button>
</form>
</div>
{{/sidebar}}
</div>
<!-- FOOTER -->
{{#footer}}
<div class='row'>
<div class='span12'>
<center>MuContent - <a href='https://github.com/anddimario/mucontent'>project page</a></center>
</div>
</div>
{{/footer}}
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script src='/js/bootstrap-dropdown.js'></script>
<script src='/js/bootstrap-alert.js'></script>
<!-- MuContent notification script -->
<script src="/socket.io/socket.io.js"></script>
<script>
$('#notification').hide(); // Hide div by default
var client = io.connect();
client.on('message', function (msg) { $('#notification').toggle().text(msg).append('<a class=close data-dismiss=alert href=#>&times;</a>'); });
</script>
</body>
</html>
Something went wrong with that request. Please try again.