2022-01-14 18:11:01 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block main %}
|
2022-01-23 16:42:59 +01:00
|
|
|
<form method="POST" enctype="multipart/form-data" action="{{ url_for('editor') }}" class="editform">
|
2022-01-14 18:11:01 +01:00
|
|
|
<div class="editareas">
|
|
|
|
<div class="editarea editor">
|
|
|
|
<fieldset class="required">
|
2022-03-04 23:12:47 +01:00
|
|
|
<textarea id="html" placeholder="Write some test HTML here">
|
|
|
|
{{htmlplaceholder}}
|
|
|
|
</textarea>
|
2022-01-14 18:11:01 +01:00
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
{{ editorform.csrf_token }}
|
|
|
|
<div class="editarea editor">
|
|
|
|
<fieldset class="required">
|
|
|
|
{{ editorform.css(placeholder="Try out your CSS here") }}
|
|
|
|
{% for message in editorform.css.errors %}
|
|
|
|
<div class="error">{{ message }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
2022-03-21 20:53:53 +01:00
|
|
|
<div class="editarea" id="editorsubmitform">
|
2022-03-18 17:32:49 +01:00
|
|
|
{% if files_uploaded or distribusi_live %}
|
2022-01-23 15:21:33 +01:00
|
|
|
<fieldset class="required">
|
|
|
|
{{ editorform.cssname.label }}
|
|
|
|
{{ editorform.cssname }}
|
|
|
|
{% for message in editorform.cssname.errors %}
|
|
|
|
<div class="error">{{ message }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
</fieldset>
|
2022-03-08 22:58:05 +01:00
|
|
|
<fieldset class="required">
|
|
|
|
{{ editorform.cssfile.label }}
|
|
|
|
{{ editorform.cssfile }}
|
|
|
|
{% for message in editorform.cssfile.errors %}
|
|
|
|
<div class="error">{{ message }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
</fieldset>
|
2022-03-21 20:53:53 +01:00
|
|
|
<fieldset class="required">
|
2022-03-08 22:58:05 +01:00
|
|
|
{{ editorform.public.label }}
|
|
|
|
{{ editorform.public }}
|
|
|
|
{% for message in editorform.public.errors %}
|
|
|
|
<div class="error">{{ message }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
</fieldset>
|
2022-01-23 15:21:33 +01:00
|
|
|
<fieldset class="button required">
|
|
|
|
{{ editorform.submit }}
|
|
|
|
</fieldset>
|
|
|
|
{% else %}
|
|
|
|
<p>
|
|
|
|
You need to upload your files first before you can save a css file.
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2022-01-14 18:11:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<iframe id="code"></iframe>
|
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/editor.css')}}">
|
|
|
|
<script src="{{ url_for('static', filename='js/editorupdate.js')}}"></script>
|
|
|
|
{% endblock main %}
|