diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-18 11:03:02 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-18 11:04:21 +0100 |
commit | c834b5b515f3abbd417c2d6beb39329b786a67ff (patch) | |
tree | 3931b118018ad67c2be28fec5c64fdaec6be9717 /templates | |
parent | affcd2b148e974c02a5f60e14cccd16257a53c0d (diff) |
Added option to remember syntax choice.
As a side effect the default syntax name in settings.py now uses the
syntax value instead of the displayed text.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/paste.tmpl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/paste.tmpl b/templates/paste.tmpl index e0fea2e..f9c9504 100644 --- a/templates/paste.tmpl +++ b/templates/paste.tmpl @@ -10,13 +10,19 @@ #for cat, ls in $lexers <optgroup label="$cat"> #for k, v in $ls - <option value="$v"#if $k == $default# selected="selected"#end if#>$k</option> + <option value="$v"#if $v == $syntax# selected="selected"#end if#>$k</option> #end for </optgroup> #end for </select> + <input type="checkbox" name="remember_syntax" id="remember_syntax" #if $remember_syntax#checked #end if#> + <label for="remember_syntax">Remember syntax</label> + </li> + <li> + <input type="text" name="nick" id="nick" value="$nick"> + <input type="checkbox" name="remember_me" id="remember_me" #if $remember_me#checked #end if#> + <label for="remember_me">Remember me</label> </li> - <li><input type="text" name="nick" id="nick" value="$nick"> <label for="remember_me"><input type="checkbox" name="remember_me" id="remember_me" #if $remembered#checked="true" #end if#/> Remember me</label></li> <li><input type="text" name="title" id="title" value="Untitled"></li> <li><textarea rows="15" cols="80" name="text" id="text"></textarea></li> <li> |