summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/pathrev_form.ezt')
-rw-r--r--include/pathrev_form.ezt53
1 files changed, 53 insertions, 0 deletions
diff --git a/include/pathrev_form.ezt b/include/pathrev_form.ezt
new file mode 100644
index 0000000..33ff961
--- /dev/null
+++ b/include/pathrev_form.ezt
@@ -0,0 +1,53 @@
+<form method="get" action="[pathrev_action]" style="display: inline">
+<div style="display: inline">
+[for pathrev_hidden_values]<input type="hidden" name="[pathrev_hidden_values.name]" value="[pathrev_hidden_values.value]"/>[end]
+[is roottype "cvs"]
+ [define pathrev_selected][pathrev][end]
+ <select name="pathrev" onchange="submit()">
+ <option value=""></option>
+ [if-any branch_tags]
+ <optgroup label="Branches">
+ [for branch_tags]
+ [is branch_tags pathrev]
+ <option selected>[branch_tags]</option>
+ [define pathrev_selected][end]
+ [else]
+ <option>[branch_tags]</option>
+ [end]
+ [end]
+ </optgroup>
+ [end]
+ <optgroup label="Non-branch tags">
+ [for plain_tags]
+ [is plain_tags pathrev]
+ <option selected>[plain_tags]</option>
+ [define pathrev_selected][end]
+ [else]
+ <option>[plain_tags]</option>
+ [end]
+ [end]
+ </optgroup>
+ [if-any pathrev_selected]
+ <option selected>[pathrev_selected]</option>
+ [end]
+ </select>
+[else]
+ <input type="text" name="pathrev" value="[pathrev]" size="6"/>
+[end]
+<input type="submit" value="Set" />
+</div>
+</form>
+
+[if-any pathrev]
+<form method="get" action="[pathrev_clear_action]" style="display: inline">
+<div style="display: inline">
+[for pathrev_clear_hidden_values]<input type="hidden" name="[pathrev_clear_hidden_values.name]" value="[pathrev_clear_hidden_values.value]"/>[end]
+[if-any lastrev]
+ [is pathrev lastrev][else]<input type="submit" value="Set to [lastrev]" />[end]
+ (<i>Current path doesn't exist after revision <strong>[lastrev]</strong></i>)
+[else]
+ <input type="submit" value="Clear" />
+[end]
+</div>
+</form>
+[end]