Show More
@@ -25,6 +25,17 b' from webhelpers.text import chop_at, col' | |||
|
25 | 25 | replace_whitespace, urlify, truncate, wrap_paragraphs |
|
26 | 26 | from webhelpers.date import time_ago_in_words |
|
27 | 27 | |
|
28 | from webhelpers.html.tags import _set_input_attrs, _set_id_attr, \ | |
|
29 | convert_boolean_attrs, NotGiven | |
|
30 | ||
|
31 | def _reset(name, value=None, id=NotGiven, type="reset", **attrs): | |
|
32 | _set_input_attrs(attrs, type, name, value) | |
|
33 | _set_id_attr(attrs, id, name) | |
|
34 | convert_boolean_attrs(attrs, ["disabled"]) | |
|
35 | return HTML.input(**attrs) | |
|
36 | ||
|
37 | reset = _reset | |
|
38 | ||
|
28 | 39 | #Custom helpers here :) |
|
29 | 40 | class _Link(object): |
|
30 | 41 | ''' |
@@ -149,7 +149,8 b'' | |||
|
149 | 149 | </div> |
|
150 | 150 | |
|
151 | 151 | <div class="buttons"> |
|
152 |
${h.submit('save',' |
|
|
152 | ${h.submit('save','Save',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
153 | ${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
153 | 154 | </div> |
|
154 | 155 | </div> |
|
155 | 156 | </div> |
@@ -42,7 +42,7 b'' | |||
|
42 | 42 | </div> |
|
43 | 43 | |
|
44 | 44 | <div class="buttons"> |
|
45 |
${h.submit('rescan',' |
|
|
45 | ${h.submit('rescan','Rescan repositories',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
46 | 46 | </div> |
|
47 | 47 | </div> |
|
48 | 48 | </div> |
@@ -67,7 +67,7 b'' | |||
|
67 | 67 | </div> |
|
68 | 68 | |
|
69 | 69 | <div class="buttons"> |
|
70 |
${h.submit('reindex',' |
|
|
70 | ${h.submit('reindex','Reindex',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
71 | 71 | </div> |
|
72 | 72 | </div> |
|
73 | 73 | </div> |
@@ -99,7 +99,8 b'' | |||
|
99 | 99 | </div> |
|
100 | 100 | |
|
101 | 101 | <div class="buttons"> |
|
102 |
${h.submit('save',' |
|
|
102 | ${h.submit('save','Save settings',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
103 | ${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
103 | 104 | </div> |
|
104 | 105 | </div> |
|
105 | 106 | </div> |
@@ -161,7 +162,8 b'' | |||
|
161 | 162 | </div> |
|
162 | 163 | |
|
163 | 164 | <div class="buttons"> |
|
164 |
${h.submit('save',' |
|
|
165 | ${h.submit('save','Save settings',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
166 | ${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
165 | 167 | </div> |
|
166 | 168 | </div> |
|
167 | 169 | </div> |
@@ -101,7 +101,8 b'' | |||
|
101 | 101 | </div> |
|
102 | 102 | </div> |
|
103 | 103 | <div class="buttons"> |
|
104 |
${h.submit('save',' |
|
|
104 | ${h.submit('save','Save',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
105 | ${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
105 | 106 | </div> |
|
106 | 107 | </div> |
|
107 | 108 | </div> |
@@ -71,7 +71,11 b'' | |||
|
71 | 71 | </div> |
|
72 | 72 | |
|
73 | 73 | <div class="buttons"> |
|
74 |
${h.submit('save',' |
|
|
74 | ${h.submit('save','Save',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
75 | ${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
76 | ||
|
77 | ||
|
78 | ||
|
75 | 79 | </div> |
|
76 | 80 | </div> |
|
77 | 81 | </div> |
@@ -128,7 +128,8 b'' | |||
|
128 | 128 | </div> |
|
129 | 129 | |
|
130 | 130 | <div class="buttons"> |
|
131 |
${h.submit('update',' |
|
|
131 | ${h.submit('update','Update',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
132 | ${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
132 | 133 | </div> |
|
133 | 134 | </div> |
|
134 | 135 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now