2015-09-05 16:11:04 +00:00
|
|
|
{% extends 'global/master.tpl' %}
|
|
|
|
|
2015-09-07 20:53:47 +00:00
|
|
|
{% block title %}Posting{% endblock %}
|
|
|
|
|
2015-09-05 16:11:04 +00:00
|
|
|
{% block content %}
|
2015-07-30 18:51:24 +00:00
|
|
|
<div class="content">
|
|
|
|
<div class="content-column forum posting">
|
2015-10-18 16:48:05 +00:00
|
|
|
<form id="forumPostingForm" method="post" action="{{ sakura.currentPage }}">
|
2015-07-30 18:51:24 +00:00
|
|
|
<div class="head">Forum / Posting</div>
|
|
|
|
<div class="posting-subject">
|
2015-10-19 21:25:20 +00:00
|
|
|
<input type="text" class="inputStyling" name="subject" placeholder="Subject" value="{{ posting.subject }}" />
|
2015-07-30 18:51:24 +00:00
|
|
|
</div>
|
|
|
|
<hr class="default" />
|
|
|
|
<div class="posting-bbcodes">
|
|
|
|
{% for bbcode in posting.bbcodes %}
|
2015-10-10 21:17:50 +00:00
|
|
|
{% if bbcode.bbcode_display %}
|
|
|
|
<button type="button" class="inputStyling small">{{ bbcode.bbcode_title }}</button>
|
2015-07-30 18:51:24 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<hr class="default" />
|
|
|
|
<div class="posting-bbcode-description" id="bbcodedescr">
|
|
|
|
Hover over a styling button to view a short description of what it does.
|
|
|
|
</div>
|
|
|
|
<hr class="default" />
|
|
|
|
<div class="posting-text">
|
2015-10-19 21:25:20 +00:00
|
|
|
<textarea class="inputStyling" name="text" id="postingText">{{ posting.text }}</textarea>
|
2015-07-30 18:51:24 +00:00
|
|
|
</div>
|
|
|
|
<hr class="default" />
|
|
|
|
<div class="posting-emotes">
|
|
|
|
{% for emoticon in posting.emoticons %}
|
2015-08-09 20:27:03 +00:00
|
|
|
<img src="{{ emoticon.emote_path }}" alt="{{ emoticon.emote_string }}" title="{{ emoticon.emote_string }}" />
|
2015-07-30 18:51:24 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<hr class="default" />
|
|
|
|
<div class="posting-options">
|
|
|
|
<div>
|
|
|
|
<div>
|
2015-10-19 21:25:20 +00:00
|
|
|
<input type="checkbox" id="enableSig" {% if posting.enabledSig %}checked="checked"{% endif %}/> <label for="enableSig">Attach Signature</label>
|
2015-07-30 18:51:24 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input type="checkbox" id="enableEmotes" checked="checked" /> <label for="enableEmotes">Parse emoticons</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="parseMode">Parsing Mode:</label>
|
2015-10-18 16:48:05 +00:00
|
|
|
<select id="parseMode" name="parseMode">
|
|
|
|
<option value="0">None</option>
|
2015-10-18 19:06:30 +00:00
|
|
|
<option value="1" selected="selected">BBCode</option>
|
2015-10-18 16:48:05 +00:00
|
|
|
<option value="2">Markdown</option>
|
2015-07-30 18:51:24 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<hr class="default" />
|
|
|
|
<div class="posting-buttons">
|
2015-10-18 16:48:05 +00:00
|
|
|
<input class="inputStyling" type="submit" name="preview" value="Preview" disabled="disabled" />
|
2015-07-30 18:51:24 +00:00
|
|
|
<input class="inputStyling" type="submit" name="post" value="Post" />
|
2015-10-18 16:48:05 +00:00
|
|
|
<input class="inputStyling" type="button" onclick="history.go(-1);" value="Cancel" />
|
2015-07-30 18:51:24 +00:00
|
|
|
</div>
|
2015-10-22 14:24:18 +00:00
|
|
|
{% if posting.id %}
|
|
|
|
<input type="hidden" name="id" value="posting.id" />
|
|
|
|
{% endif %}
|
|
|
|
<input type="hidden" name="sessionid" value="{{ php.sessionid }}" />
|
|
|
|
<input type="hidden" name="timestamp" value="{{ php.time }}" />
|
2015-07-30 18:51:24 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-18 16:48:05 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
window.addEventListener("load", function() {
|
|
|
|
prepareAjaxForm('forumPostingForm', 'Making post...');
|
|
|
|
});
|
|
|
|
</script>
|
2015-09-05 16:11:04 +00:00
|
|
|
{% endblock %}
|