<%! from django.utils.translation import ugettext as _ %>
<article class="new-post-article">
    <div class="inner-wrapper">
      <div class="new-post-form-errors">
        </div>
        <form class="new-post-form">
            <div class="left-column">
                <div class="options">
                    <input type="checkbox" name="follow" class="discussion-follow" class="discussion-follow" id="new-post-follow" checked><label for="new-post-follow">${_("follow this post")}</label>
                    <br>
                    % if course.allow_anonymous:
                        <input type="checkbox" name="anonymous" class="discussion-anonymous" id="new-post-anonymous"><label for="new-post-anonymous">${_("post anonymously")}</label>
                    %elif course.allow_anonymous_to_peers:
                        <input type="checkbox" name="anonymous_to_peers" class="discussion-anonymous-to-peers" id="new-post-anonymous-to-peers"><label for="new-post-anonymous-to-peers">${_("post anonymously to classmates")}</label>
                    %endif
                    %if is_course_cohorted:
                    <div class="form-group-label choose-cohort">
                        ## Translators: This labels the selector for which group of students can view a post
                        ${_("Make visible to:")}
                        <select class="group-filter-select new-post-group" name = "group_id">
                            <option value="">${_("All Groups")}</option>
                            %if is_moderator:
                              %for c in cohorts:
                                <option value="${c.id}">${c.name}</option>
                              %endfor
                            %else:
                                %if user_cohort:
                                    <option value="${user_cohort}">${_("My Cohort")}</option>
                                %endif
                            %endif

                        </select>
                    </div>
                    %endif
                </div>
            </div>
            <div class="right-column">
                <div class="form-row">
                    <label class="sr" for="new-inline-post-title">${_("new post title")}</label>
                    <input type="text" id="new-inline-post-title" class="new-post-title" name="title" placeholder="${_('Title')}">
                </div>
                <div class="form-row">
                    <div class="new-post-body" name="body" placeholder="${_(u'Enter your question or comment…')}"></div>
                    <!---<div class="new-post-preview"><span class="new-post-preview-label">Preview</span></div>-->
                </div>
                <input type="submit" id="new-inline-post-submit" class="submit" value="${_("Add post")}">
                <a href="#" class="new-post-cancel">${_("Cancel")}</a>
            </div>
        </form>
    </div>
</article>
