Permalink
Browse files

remove obsolete move template

  • Loading branch information...
1 parent cad2468 commit da80bb8557c171a7705a14c7062b616f3443a3c3 @j23d committed Mar 5, 2012
Showing with 0 additions and 122 deletions.
  1. +0 −122 kotti/templates/edit/move.pt
@@ -1,122 +0,0 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:i18n="http://xml.zope.org/namespaces/i18n"
- i18n:domain="Kotti"
- metal:use-macro="api.macro('kotti:templates/edit/master.pt')">
-
- <div metal:fill-slot="content">
- <h1 i18n:translate="">Move <em i18n:name="title">${context.title}</em></h1>
-
- <ul class="nav nav-tabs">
- <li class="active">
- <a href="#copyandpaste" data-toggle="tab" i18n:translate="">Copy and Paste</a>
- </li>
- <li tal:condition="context is not api.root">
- <a href="#delete" data-toggle="tab" i18n:translate="">Delete</a>
- </li>
- <li tal:condition="context is not api.root">
- <a href="#rename" data-toggle="tab" i18n:translate="">Rename</a>
- </li>
- <li tal:define="children api.list_children()"
- tal:condition="len(children) &gt; 1">
- <a href="#order" data-toggle="tab" i18n:translate="">Order</a>
- </li>
- </ul>
-
- <div class="tab-content">
-
- <!-- Copy and paste starts here -->
- <div class="tab-pane active" id="copyandpaste">
- <form action="${request.url}" method="post"
- class="ajax ${('copy' in request.POST or 'cut' in request.POST or 'paste' in request.POST) and 'ajax-replace' or ''}" id="form-move-1">
- <div class="form-actions">
- <button type="submit" name="copy" value="${context.id}"
- class="btn" i18n:translate="">Copy <span tal:omit-tag="" i18n:name="title">${context.title}</span></button>
- <button type="submit" name="cut" value="${context.id}"
- class="btn" i18n:translate="">Cut <span tal:omit-tag="" i18n:name="title">${context.title}</span></button>
- <button type="submit" name="paste" value="${paste_item.id}"
- class="btn btn-success"
- tal:define="paste_item api.get_paste_item()"
- tal:condition="paste_item is not None"
- i18n:translate="">Paste <span tal:omit-tag="" i18n:name="from_title">${paste_item.title}</span> into <span tal:omit-tag="" i18n:name="to_title">${context.title}</span>
- </button>
- </div>
- </form>
- </div>
-
- <!-- Delete starts here -->
- <div class="tab-pane" id="delete" tal:condition="context is not api.root">
- <form action="${request.url}" method="post" id="form-move-2">
- <fieldset>
- <legend i18n:translate="">
- Are you sure you want to delete <em i18n:name="title">${context.title}</em>?
- </legend>
- <div class="control-group">
- <label class="control-label" for="delete-checkbox" i18n:translate="">Yes</label>
- <div class="controls">
- <input id="delete-checkbox" type="checkbox"
- name="delete-confirm" value="Yes" i18n:attributes="value" />
- </div>
- </div>
- <div class="form-actions">
- <button type="submit" name="delete" value="delete"
- class="btn btn-danger" i18n:translate="">Delete</button>
- </div>
- </fieldset>
- </form>
- </div>
-
- <!-- Rename starts here -->
- <div class="tab-pane" id="rename" tal:condition="context is not api.root">
- <form action="${request.url}" method="post" id="form-move-3">
- <div class="control-group">
- <label class="control-label desc" for="move-new-name" i18n:translate="">New name</label>
- <div class="controls">
- <input type="text" name="name" id="move-new-name"
- value="${request.POST.get('name') or context.name}" />
- </div>
- </div>
- <div class="control-group">
- <label class="control-label desc" for="move-new-title" i18n:translate="">New title</label>
- <div class="controls">
- <input type="text" name="title" id="move-new-title"
- value="${request.POST.get('title') or context.title}" />
- </div>
- </div>
- <div class="form-actions">
- <button type="submit" name="rename" value="rename"
- class="btn btn-warning" i18n:translate="">Rename</button>
- </div>
- </form>
- </div>
-
- <!-- Order starts here -->
- <div class="tab-pane" id="order" tal:define="children api.list_children()"
- tal:condition="len(children) &gt; 1">
- <form action="${request.url}" method="post"
- class="ajax ${('order-up' in request.POST or 'order-down' in request.POST) and 'ajax-replace' or ''}" id="form-move-4">
- <div class="form-actions" tal:repeat="item children">
- <button type="submit" name="order-up" value="${item.id}"
- title="Move ${item.title} up"
- id="order-up-${item.id}"
- disabled="${item.position==0 and 'disabled' or None}"
- class="btn">
- ↑
- </button>
- <button type="submit" name="order-down" value="${item.id}"
- title="Move ${item.title} down"
- id="order-down-${item.id}"
- disabled="${item.position+1 == len(children) and 'disabled' or None}"
- class="btn">
- ↓
- </button>
- <label for="order-down-${item.id}">
- ${item.title}
- </label>
- </div>
- </form>
- </div>
-
- </div>
- </div>
-</html>

0 comments on commit da80bb8

Please sign in to comment.