PHRAS-1766 Add orderable checkbox for each subdef - Remove order option on groups

This commit is contained in:
Xavier Rousset
2017-12-18 18:02:48 +01:00
parent 3a6f2eb365
commit c7f6b325d8
3 changed files with 11 additions and 70 deletions

View File

@@ -373,24 +373,6 @@
<button type="submit" disabled="disabled" class="btn btn-primary subviews-submit">{{ 'boutton::valider' | trans }}</button>
{% for subdefgroup, subdeflist in subdefs %}
<div id="{{subdefgroup}}">
<div>
<table cellspacing="0" cellpadding="0" border="0" style="width:500px;">
<tbody>
<tr>
<td style="width:120px;">
<h2>{{ 'subdef.document' | trans }}</h2>
</td>
<td style="width:250px;"></td>
<td></td>
</tr>
<tr>
<td>{{ 'subdef.orderable' | trans }}</td>
<td><input type="checkbox" name="subdefsgroups[{{ subdefgroup }}][document_orderable]" {% if subdeflist.isDocumentOrderable() %}checked="checked" {% endif %}value="1"/></td>
<td></td>
</tr>
</tbody>
</table>
</div>
{% for subdefname , subdef in subdeflist %}
<div>
<input type="hidden" name="subdefs[]" value="{{subdefgroup}}_{{subdefname}}"/>
@@ -404,6 +386,11 @@
<td style="width:300px;"><input type="checkbox" name="{{subdefgroup}}_{{subdefname}}_downloadable" {% if subdef.isDownloadable() %}checked="checked"{% endif %} value="1" /></td>
<td></td>
</tr>
<tr>
<td>{{ 'subdef.orderable' | trans }}</td>
<td><input type="checkbox" name="{{subdefgroup}}_{{subdefname}}_orderable" {% if subdef.isOrderable() %}checked="checked"{% endif %} value="1" /></td>
<td></td>
</tr>
<tr>
<td>
{{ 'classe' | trans }}