0001-workflows-allow-specifying-body-data-for-PATCH-PUT-w.patch
wcs/qommon/templates/qommon/forms/widget.html | ||
---|---|---|
16 | 16 |
{% if "data-dynamic-display-value" in widget.attrs %} |
17 | 17 |
data-dynamic-display-value="{{widget.attrs|get:"data-dynamic-display-value"}}" |
18 | 18 |
{% endif %} |
19 |
{% if "data-dynamic-display-value-in" in widget.attrs %} |
|
20 |
data-dynamic-display-value-in="{{widget.attrs|get:"data-dynamic-display-value-in"}}" |
|
21 |
{% endif %} |
|
19 | 22 |
{% if widget.live_condition_source %}data-live-source="true"{% endif %} |
20 | 23 |
> |
21 | 24 |
{% block widget-title %} |
wcs/wf/wscall.py | ||
---|---|---|
193 | 193 |
value=self.post, |
194 | 194 |
attrs={ |
195 | 195 |
'data-dynamic-display-child-of': '%smethod' % prefix, |
196 |
'data-dynamic-display-value': methods.get('POST'), |
|
196 |
'data-dynamic-display-value-in': '|'.join( |
|
197 |
[_(methods['POST']), |
|
198 |
_(methods['PUT']), |
|
199 |
_(methods['PATCH'])]) |
|
197 | 200 |
}) |
198 | 201 |
if 'post_data' in parameters: |
199 | 202 |
form.add(WidgetDict, '%spost_data' % prefix, |
... | ... | |
202 | 205 |
element_value_type=ComputedExpressionWidget, |
203 | 206 |
attrs={ |
204 | 207 |
'data-dynamic-display-child-of': '%smethod' % prefix, |
205 |
'data-dynamic-display-value': methods.get('POST'), |
|
208 |
'data-dynamic-display-value-in': '|'.join( |
|
209 |
[_(methods['POST']), |
|
210 |
_(methods['PUT']), |
|
211 |
_(methods['PATCH'])]) |
|
206 | 212 |
}) |
207 | 213 | |
208 | 214 |
response_types = collections.OrderedDict( |
209 |
- |