parent
158fe3bc66
commit
cfb803cda6
8 changed files with 206 additions and 23 deletions
@ -0,0 +1,52 @@ |
|||||||
|
% layout 'standard', title => 'Dashboard', sb_active => 'dashboard'; |
||||||
|
|
||||||
|
<nav aria-label="breadcrumb" class="mt-3 mb-3"> |
||||||
|
<ol class="breadcrumb"> |
||||||
|
<li class="breadcrumb-item"><a href="<%= $c->url_for( 'show_dashboard' ) %>">Dashboard</a></li> |
||||||
|
<li class="breadcrumb-item active" aria-current="page"><%= $blog->domain->name %></li> |
||||||
|
</ol> |
||||||
|
</nav> |
||||||
|
|
||||||
|
<h3 class="h3 mt-4 mb-4"><a target="_blank" style="text-decoration: none" href="https://<%= $blog->domain->name %>"><%= $blog->domain->name %></h3> |
||||||
|
|
||||||
|
<ul class="nav nav-tabs"> |
||||||
|
<li class="nav-item"> |
||||||
|
<a class="nav-link" aria-current="page" href="<%= $c->url_for( 'show_dashboard_blog' ) %>">Info</a> |
||||||
|
</li> |
||||||
|
<li class="nav-item"> |
||||||
|
<a class="nav-link" href="<%= $c->url_for( 'show_dashboard_blog_posts' ) %>">Posts</a> |
||||||
|
</li> |
||||||
|
<li class="nav-item"> |
||||||
|
<a class="nav-link active" href="#">Post Editor</a> |
||||||
|
</li> |
||||||
|
<li class="nav-item"> |
||||||
|
<a class="nav-link" href="<%= $c->url_for( 'show_dashboard_blog_settings' ) %>">Settings</a> |
||||||
|
</li> |
||||||
|
<li class="nav-item"> |
||||||
|
<a class="nav-link" href="<%= $c->url_for( 'show_dashboard_blog_hooks' ) %>">Hooks</a> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
|
||||||
|
|
||||||
|
<form> |
||||||
|
<div class="mt-3 mb-3"> |
||||||
|
<label for="postTitle" class="col-sm-2 col-form-label">Title</label> |
||||||
|
<input type="text" class="form-control" id="postTitle" name="postTitle" value="<%= $post->headers->{title} %>"> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mb-3"> |
||||||
|
<label for="postDate" class="col-sm-2 col-form-label">Date</label> |
||||||
|
<input type="text" class="form-control" id="postDate" name="postDate" value="<%= $post->headers->{date} %>"> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mb-3"> |
||||||
|
<label for="postContent" class="form-label">Post Content</label> |
||||||
|
<textarea class="form-control" id="postContent" name="postContent" rows="25"><%= $post->markdown %></textarea> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mb-3"> |
||||||
|
<input type="submit" class="btn btn-primary btn-sm float-end" width="100%" value="Update Post"> |
||||||
|
</div> |
||||||
|
|
||||||
|
</form> |
||||||
|
|
||||||
@ -0,0 +1,52 @@ |
|||||||
|
% layout 'standard', title => 'Dashboard', sb_active => 'dashboard'; |
||||||
|
|
||||||
|
<nav aria-label="breadcrumb" class="mt-3 mb-3"> |
||||||
|
<ol class="breadcrumb"> |
||||||
|
<li class="breadcrumb-item"><a href="<%= $c->url_for( 'show_dashboard' ) %>">Dashboard</a></li> |
||||||
|
<li class="breadcrumb-item active" aria-current="page"><%= $blog->domain->name %></li> |
||||||
|
</ol> |
||||||
|
</nav> |
||||||
|
|
||||||
|
<h3 class="h3 mt-4 mb-4"><a target="_blank" style="text-decoration: none" href="https://<%= $blog->domain->name %>"><%= $blog->domain->name %></h3> |
||||||
|
|
||||||
|
<ul class="nav nav-tabs"> |
||||||
|
<li class="nav-item"> |
||||||
|
<a class="nav-link" aria-current="page" href="<%= $c->url_for( 'show_dashboard_blog' ) %>">Info</a> |
||||||
|
</li> |
||||||
|
<li class="nav-item"> |
||||||
|
<a class="nav-link" href="<%= $c->url_for( 'show_dashboard_blog_posts' ) %>">Posts</a> |
||||||
|
</li> |
||||||
|
<li class="nav-item"> |
||||||
|
<a class="nav-link active" href="#">Post Creator</a> |
||||||
|
</li> |
||||||
|
<li class="nav-item"> |
||||||
|
<a class="nav-link" href="<%= $c->url_for( 'show_dashboard_blog_settings' ) %>">Settings</a> |
||||||
|
</li> |
||||||
|
<li class="nav-item"> |
||||||
|
<a class="nav-link" href="<%= $c->url_for( 'show_dashboard_blog_hooks' ) %>">Hooks</a> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
|
||||||
|
|
||||||
|
<form> |
||||||
|
<div class="mt-3 mb-3"> |
||||||
|
<label for="postTitle" class="col-sm-2 col-form-label">Title</label> |
||||||
|
<input type="text" class="form-control" id="postTitle" name="postTitle" value="<%= $c->stash->{form_title} %>"> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mb-3"> |
||||||
|
<label for="postDate" class="col-sm-2 col-form-label">Date</label> |
||||||
|
<input type="text" class="form-control" id="postDate" name="postDate" value="<%= $c->stash->{form_date} %>"> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mb-3"> |
||||||
|
<label for="postContent" class="form-label">Post Content</label> |
||||||
|
<textarea class="form-control" id="postContent" name="postContent" rows="25"><%= $c->stash->{form_content} %></textarea> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mb-3"> |
||||||
|
<input type="submit" class="btn btn-primary btn-sm float-end" width="100%" value="Update Post"> |
||||||
|
</div> |
||||||
|
|
||||||
|
</form> |
||||||
|
|
||||||
Loading…
Reference in new issue