Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Can now edit current
site
within LifeFlow Editor.
Cannot edit other sites, however.
- Loading branch information
Showing
3 changed files
with
40 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% extends "lifeflow/editor/admin_base.html" %} | ||
|
||
{% block body2 %} | ||
<script> | ||
var update = function() { | ||
var data = { name:$("#name").val(), domain:$("#domain").val()}; | ||
update_model("site", {{ site.pk }}, data); | ||
} | ||
|
||
$(document).ready(function() { | ||
$("#name").hover(function(){},function(){ update(); }); | ||
$("#domain").hover(function(){},function(){ update(); }); | ||
}); | ||
</script> | ||
|
||
<div class="editing"> | ||
<ul> | ||
<li> | ||
<p> The name of site used for this blog. (This can be anything.) </p> | ||
<input id="name" name="name" value="{{ site.name }}"> | ||
<p> The URL of the site this blog is hosted at. (For example | ||
'example.com', no http:// or trailing slash.) | ||
<input id="domain" name="domain" value="{{ site.domain }}"> | ||
</p> | ||
</li> | ||
</div> | ||
|
||
|
||
|
||
{% endblock %} |