Created
July 12, 2012 04:13
-
-
Save rumidier/3095679 to your computer and use it in GitHub Desktop.
List-index.tt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[% IF messages %] | |
<div class="alert fade in"> | |
<button class="close" data-dismiss="alert">×</button> | |
[% messages %] | |
</div> | |
[% END %] | |
<div class="container-fluid"> | |
<div class="row-fluid"> | |
<div class="span2"> | |
<ul class="nav nav-tabs nav-stacked"> | |
<li class="active"><a href="/list">전체</a></li> | |
<li><a href="/list?status=1">대기</a></li> | |
<li><a href="/list?status=2">승인</a></li> | |
<li><a href="/list?status=3">거부</a></li> | |
</ul> | |
</div> | |
<div class="span10"> | |
<ul class="breadcrumb"> | |
<li>목록 | |
<span class="divider">/</span> | |
</li> | |
<li class="active"> | |
[% IF status == "1" %] | |
<b> 대기 </b> | |
[% ELSIF status == "2" %] | |
<b> 승인 </b> | |
[% ELSIF status == "3" %] | |
<b> 거부 </b> | |
[% ELSE %] | |
<b> 전체 </b> | |
[% END %] | |
</li> | |
</ul> | |
<!-- 게시물 리스트를 보이기 위한 테이블 --> | |
<table id="charge_list" class="table table-striped table-bordered"> | |
<thead> | |
<tr> | |
<th> <input type="checkbox" id="head_checkbox"> </th> | |
<th> 제목 </th> | |
<th> 글쓴이 </th> | |
<th> 날짜 </th> | |
<th> 금액 </th> | |
<th> 상태 </th> | |
</tr> | |
</thead> | |
<!-- 리스트 부분 시작 --> | |
<tbody> | |
[% FOREACH list IN lists %] | |
<tr id="[% list.id %]"> | |
<td><input type="checkbox"></td> | |
<td><a href="[% c.uri_for('view', list.id) %]">[% list.title %]</a></td> | |
<td>[% list.user.user_name %] </td> | |
<td>[% list.created_on.ymd %]</td> | |
<td>[% list.amount %]</td> | |
[% IF list.status == "1" %] | |
<td> 대기 </td> | |
[% ELSIF list.status == "2" %] | |
<td> 승인 </td> | |
[% ELSE %] | |
<td> 거부 </td> | |
[% END %] | |
</tr> | |
[% END %] | |
</tbody> | |
</table> | |
[% PROCESS 'inc/pagination.tt' %] | |
<a href="/list/write" class="btn btn-primary">글쓰기</a> | |
<a class="btn btn-primary" id="do_delete">삭제</a> | |
<a class="btn btn-primary" id="do_approval">승인</a> | |
<a class="btn btn-primary" id="do_refuse">거부</a> | |
</div> | |
</div> | |
</div> | |
<br/> | |
<script src="[% c.uri_for('/static/scripts/list.js') %]" type="text/javascript"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment