Permalink
Browse files

adding support for tribe delete, ad create

  • Loading branch information...
1 parent 9366a46 commit a66d96517c48ac8830251d490f8c7db1e5f15897 @josedasilva committed Nov 14, 2011
Showing with 50 additions and 0 deletions.
  1. +50 −0 app/templates/private/tribe/del.html
@@ -0,0 +1,50 @@
+{% include '/base/header.html' %}
+<div class="row">
+ <div class="span16">
+ <h2>Delete tribe {{tribe.tribe_name}}</h2><br/>
+ <div class='row'>
+ <div class='span2'>
+ {% if tribe.logo != '' %}
+ <img class="thumbnail" src="{{tribe.logo}}" alt="" style='width: 90px; height: 90px;'>
+ {% else %}
+ <img class="thumbnail" src="http://placehold.it/90x90" alt="">
+ {% endif %}
+ </div>
+ <div class='span7'>
+ <h2>{{tribe.tribe_name}}</h2>
+
+ <p>
+ <img src='http://graph.facebook.com/{{tribe.leader_id}}/picture' alt='' title='' width='40' height='40' style='float: left;margin-right: 3px;'/>
+ {{leader.name}}
+ </p>
+ </div>
+ </div>
+ <br/>
+
+ <div class="alert-message block-message error fade in" data-alert="alert">
+ <a class="close" href="#">×</a>
+ <p><strong>Delete this Tribe!</strong></p>
+ <p>Deleting the tribe will delete all data associated with it.</p>
+ <ul>
+ <li>Users in the tribe</li>
+ <li>Ads associated with this tribe</li>
+ </ul>
+ <div class="alert-actions">
+ <a class="btn small" href="/tribe/del/{{tribe.id}}" id='postdel'>Delete this tribe</a>
+ </div>
+ </div>
+
+ </div>
+</div>
+
+<script language='javascript'>
+$(document).ready(function() {
+ $("#postdel").bind("click",function(ev){
+ ev.preventDefault();
+ $.post($(this).href,null,function(){
+ history.go(-1);
+ });
+ });
+});
+</script>
+{% include '/base/footer.html' %}

0 comments on commit a66d965

Please sign in to comment.