- Added database validation

- Added valid date for posts
- Fix passing data to htmls conflicts
This commit is contained in:
2017-09-06 10:40:05 +07:00
parent 57dc4ca0b9
commit 71fb5e4933
8 changed files with 126 additions and 46 deletions

View File

@@ -35,9 +35,7 @@
<label>Dibuat oleh: </label>
<span>
{% if post.creator == user.id %}
{{ user.name }}
{% endif %}
{{ creator.name }}
</span>
<br>
@@ -66,12 +64,10 @@
{% if post.editor == "0" %}
-
{% else %}
{% if post.editor == user.id %}
{{ user.name }}
{% endif %}
{{ editor.name }}
{% endif %}
</span>
<input type="hidden" name="editor" value="3"><!-- User -->
<input type="hidden" name="editor" value="{{ editor_now }}">
<br>