This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/_sakura/templates/yuuno/forum/posting.tpl

70 lines
3.1 KiB
Smarty
Raw Normal View History

{% extends 'global/master.tpl' %}
{% block title %}Posting{% endblock %}
{% 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">
<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 %}
{% 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">
<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 %}
<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>
<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>
<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>
</form>
</div>
</div>
2015-10-18 16:48:05 +00:00
<script type="text/javascript">
window.addEventListener("load", function() {
prepareAjaxForm('forumPostingForm', 'Making post...');
});
</script>
{% endblock %}