1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

rst output template tweak for 'required'

This commit is contained in:
Jan-Piet Mens 2012-09-30 14:21:30 +02:00
parent e756ee3741
commit f5e0fbf65b

View file

@ -32,7 +32,7 @@
{% for (k,v) in options.iteritems() %} {% for (k,v) in options.iteritems() %}
<tr> <tr>
<td>@{ k }@</td> <td>@{ k }@</td>
<td>@{ v.get('required',False) }@</td> <td>{% if v.get('required', False) %}yes{% else %}no{% endif %}</td>
<td>{% if v['default'] %}@{ v['default'] }@{% endif %}</td> <td>{% if v['default'] %}@{ v['default'] }@{% endif %}</td>
<td><ul>{% for choice in v.get('choices',[]) -%}<li>@{ choice }@</li>{% endfor -%}</ul></td> <td><ul>{% for choice in v.get('choices',[]) -%}<li>@{ choice }@</li>{% endfor -%}</ul></td>
<td>{% for desc in v.description -%}@{ desc | html_ify }@{% endfor -%}</td> <td>{% for desc in v.description -%}@{ desc | html_ify }@{% endfor -%}</td>