Перенесено из репозитария SpecialistOff.NET
This commit is contained in:
26
myapp/templates/edit.html
Normal file
26
myapp/templates/edit.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "skeleton.html" %}
|
||||
{% block body %}
|
||||
|
||||
<script type="text/javascript" src="/static/ckeditor/ckeditor.js"></script>
|
||||
|
||||
<form method="post" action="/edit">
|
||||
|
||||
<div class="form-group">
|
||||
{{ pagedata['form'].title.label }}
|
||||
{{ pagedata['form'].title(class="form-control") }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ pagedata['form'].text.label }}
|
||||
{{ pagedata['form'].text(class="form-control") }}
|
||||
<script>
|
||||
CKEDITOR.replace( 'text', {
|
||||
customConfig: '/static/js/ckeditor-conf.js'
|
||||
} );
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-outline-success float-right"><i class="fa fa-save-o"></i> Сохранить</button>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user