{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %}
{% import "macro_functions.phtml" as mf %}
{% set active_menu = 'support' %}
{% block meta_title %}Forum{% endblock %}

{% block content %}
<div class="widget nomargin">
    <div class="head">
        <h5>{% trans 'Forum details' %}</h5>
    </div>

    <form method="post" action="admin/forum/update" class="mainForm save api-form" data-api-redirect="forum">
        <fieldset>
            <div class="rowElem noborder">
                <label>{% trans 'Title' %}:</label>
                <div class="formRight">
                    <input type="text" name="title" value="{{forum.title}}" required="required" placeholder=""/>
                </div>
                <div class="fix"></div>
            </div>
            <div class="rowElem">
                <label>{% trans 'Slug' %}:</label>
                <div class="formRight">
                    <input type="text" name="slug" value="{{forum.slug}}" required="required" placeholder=""/>
                </div>
                <div class="fix"></div>
            </div>
            <div class="rowElem">
                <label>{% trans 'Status' %}:</label>
                <div class="formRight">
                    <input type="radio" name="status" value="active"{% if forum.status == 'active' %} checked="checked"{% endif %}/><label>{% trans 'Active' %}</label>
                    <input type="radio" name="status" value="locked"{% if forum.status == 'locked' %} checked="checked"{% endif %}/><label>{% trans 'Locked' %}</label>
                </div>
                <div class="fix"></div>
            </div>
            <div class="rowElem">
                <label>{% trans 'Description' %}</label>
                <div class="formRight">
                    <textarea name="description" cols="5" rows="4">{{ forum.description }}</textarea>
                </div>
                <div class="fix"></div>
            </div>
            <input type="submit" value="{% trans 'Update' %}" class="greyishBtn submitForm" />
            <input type="hidden" name="id" value="{{ forum.id }}" />
        </fieldset>
    </form>
</div>


{% endblock %}
