Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial implementation of an author editing view for LFE.
- Loading branch information
Showing
6 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="author-picture"> | ||
|
||
</div> | ||
<div class="author-details"> | ||
<ul> | ||
<li> | ||
<table> | ||
<tr> | ||
<td>Name</td><td> {{ author.name}} </td> | ||
</tr> | ||
<tr> | ||
<td>Slug</td><td> {{ author.slug }}</td> | ||
</tr> | ||
</table> | ||
|
||
<li> | ||
<p> A brief biography, written in Markdown. </p> | ||
<textarea id="author-bio">{{ author.bio }}</textarea> | ||
</li> | ||
|
||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends "lifeflow/editor/base.html" %} | ||
|
||
|
||
{% block body %} | ||
|
||
<div class="authors"> | ||
<div class="selections" id="authors-list"> | ||
<a class="button positive" id="add-author"> Create </a> | ||
<a class="button negative" id="delete-author"> Delete </a> | ||
<select id="authors" size="20"> | ||
{% for author in authors %} | ||
<option value="{{ author.pk }}"> {{ author.name }}</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="author"> | ||
{% with authors.0 as author %} | ||
{% include "lifeflow/editor/author.html" %} | ||
{% endwith %} | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters