Added MDE (issue #4)

This commit is contained in:
2017-09-15 13:56:24 +07:00
parent 0f011f2545
commit ec548a46b7
21 changed files with 4351 additions and 44 deletions

View File

@@ -5,11 +5,10 @@
{% block body %}
<main class="documentation">
<section>
<h2>Tambah Pengumuman</h2>
<form method="post">
<h2>Tambah Pengumuman</h2>
<div class="flex three grow">
<div class="full third-600">
<label for="category">Kategori</label>
<select name="category">
{% for cat in categories %}
@@ -32,24 +31,22 @@
<div class="full two-third-600">
<label for="content">Konten: </label>
<textarea name="content" rows="2" cols="30" maxlength="255"></textarea>
<textarea id="smde" name="content" maxlength="255"></textarea>
</div>
<input type="hidden" name="creator" value="{{ user }}">
<!-- Current Timestamp -->
<input type="hidden" name="_currts" value="{{ timestamp }}" disabled>
<!-- Method -->
<input type="hidden" name="_method" value="post">
<!-- Token -->
<input type="hidden" name="_token" value="{{ token }}">
<br>
<button type="submit">
<button type="submit" class="pseudo">
<i class="fa fa-check fa-fw"></i>
<span style="font-size:smaller;">Unggah</span>
</button>
</div>
</form>
@@ -65,5 +62,7 @@
dateValidator: rome.val.afterEq(left),
time: false
});
var simplemde = new SimpleMDE({ element: document.getElementById("smde") });
</script>
{% endblock %}