<!-- BEGIN: MAIN -->
  <!-- BEGIN: COMMENTS_TITLE -->
		<h2><a href="{COMMENTS_TITLE_URL}">{COMMENTS_TITLE}</a></h2>
  <!-- END: COMMENTS_TITLE -->
	{FILE "{PHP.cfg.themes_dir}/{PHP.usr.theme}/warnings.tpl"}
  <!-- BEGIN: COMMENTS_FORM_EDIT -->
		<form id="comments" name="comments" action="{COMMENTS_FORM_POST}" method="post">
      <div class="mb10">
        {COMMENTS_FORM_TEXT|cot_rc_modify($this, 'class="form-control" placeholder="Сообщение"')}
      </div>
      <input type="submit" class="green-btn pull-reset m-wMax w250" value="{COMMENTS_FORM_UPDATE_BUTTON}">
		</form>
  <!-- END: COMMENTS_FORM_EDIT -->

<!-- END: MAIN -->

<!-- BEGIN: COMMENTS -->
<div class="comments-container">
  <h2>
    Отчеты
    <p class="pull-right fs14 pt10">{COMMENTS_PAGES_INFO}</p>
  </h2>
  <ul id="comments-list" class="comments-list mt10">
    <!-- BEGIN: COMMENTS_NEWCOMMENT -->
    <li id="comrow{COMMENTS_ROW_ID}">
      <div class="comment-main-level">
        <div class="comment-avatar">
          <img src="<!-- IF {PHP.usr.profile.user_avatar} -->{PHP.usr.profile.user_avatar}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF -->" alt="">
        </div>
        <div class="comment-box">
          <div class="comment-content">
            {FILE "{PHP.cfg.themes_dir}/{PHP.usr.theme}/warnings.tpl"}
            <form action="{COMMENTS_FORM_SEND}" method="post" name="newcomment">
              <div class="mb10">
                {COMMENTS_FORM_TEXT|cot_rc_modify($this, 'class="w100p" style="height:auto;" placeholder="Сообщение" rows="3"')}
              </div>
              <button type="submit" class="green-btn m-wMax w200">{PHP.L.Submit}</button>
            </form>
          </div>
        </div>
      </div>
    </li>
    <!-- END: COMMENTS_NEWCOMMENT -->

    <!-- BEGIN: COMMENTS_EMPTY -->
			<div class="m-b-lg">{COMMENTS_EMPTYTEXT}</div>
      <script>$('#comments-list').removeClass('comments-list');</script>
    <!-- END: COMMENTS_EMPTY -->

    <!-- BEGIN: COMMENTS_ROW -->
    <li id="comrow{COMMENTS_ROW_ID}">
      <div class="comment-main-level">
        <!-- Avatar -->
        <div class="comment-avatar">
          <img src="<!-- IF {COMMENTS_ROW_AUTHOR_AVATAR_SRC} -->{COMMENTS_ROW_AUTHOR_AVATAR_SRC}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF -->" alt="">
        </div>
        <div class="comment-box">
          <div class="comment-head">
            <h6 class="comment-name by-author"><a href="{COMMENTS_ROW_AUTHOR_DETAILSLINK}">{COMMENTS_ROW_AUTHOR_NICKNAME}</a></h6>
            <span>{COMMENTS_ROW_DATE_STAMP|cot_build_timeago()}</span>
            <i class="fa fa-reply hidden"></i>
            <!-- IF {PHP.usr.maingrp} == 5 OR {PHP.usr.id} == {COMMENTS_ROW_AUTHOR_ID} -->
            <p class="pull-right fs14">
              {COMMENTS_ROW_ADMIN}
              <!-- IF {COMMENTS_ROW_EDIT_URL} -->
                <a role="button" onclick="$.get('{COMMENTS_ROW_EDIT_URL}', function(data) { $('#comedit{COMMENTS_ROW_ID}').html(data); });">Правка</a>
              <!-- ENDIF -->
            </p>
            <!-- ENDIF -->
          </div>
          <div id="comedit{COMMENTS_ROW_ID}" class="comment-content">
            {COMMENTS_ROW_TEXT}
          </div>
        </div>
      </div>
    </li>
    <!-- END: COMMENTS_ROW -->
  </ul>
</div>

<!-- BEGIN: PAGNAVIGATOR -->
	<!-- IF {COMMENTS_PAGES_PAGNAV} -->
		<div class="paging">
      <div class="p1">
        <ul>
          {COMMENTS_PAGES_PAGESPREV}{COMMENTS_PAGES_PAGNAV}{COMMENTS_PAGES_PAGESNEXT}
        </ul>
      </div>
    </div>
	<!-- ENDIF -->
<!-- END: PAGNAVIGATOR -->

<!-- END: COMMENTS -->