{intl l='ID' d='selection.bo.default'} | + | {intl l="Code" d='selection.bo.default'} | {intl l="Title" d='selection.bo.default'} | {admin_sortable_header @@ -40,12 +41,21 @@ {/loop} + | + {loop type="auth" name="can_change" role="ADMIN" resource="admin.selection"} + {$SELECTION_CONTAINER_CODE} + {/loop} + {elseloop rel="can_change"} + {$SELECTION_CONTAINER_CODE} + {/elseloop} + | +{loop type="auth" name="can_change" role="ADMIN" resource="admin.selection"} {$SELECTION_CONTAINER_TITLE} {/loop} {elseloop rel="can_change"} - {$SELECTION_CONTAINER_TITLE} + {$SELECTION_CONTAINER_TITLE} {/elseloop} |
@@ -100,33 +110,25 @@
{form name="admin.selection.container.create"}
{capture "selection_container_creation_dialog"}
- {form_hidden_fields form=$form}
+ {form_hidden_fields exclude='locale'}
{render_form_field form=$form field="success_url" value="{url path='/admin/selection/'}"}
- {render_form_field field="title"}
- {form_field form=$form field='chapo'}
-
-
-
- {/form_field}
- {form_field form=$form field='description'}
-
-
-
-
-
-
- {/form_field}
- {form_field form=$form field='postscriptum'}
-
-
-
-
-
-
-
-
+ {render_form_field field="code"}
+ {loop type="lang" name="default-lang" default_only=1}
+ {* Switch edition to the current locale *}
+
+
+ {render_form_field field="locale" value=$LOCALE}
+
+ {custom_render_form_field field="title"}
+
+
+
- {/form_field}
+ {/custom_render_form_field}
+ {/loop}
+ {render_form_field field='chapo'}
+ {render_form_field field='description' extra_class='wysiwyg'}
+ {render_form_field field='postscriptum'}
{/capture}
{include
file = "includes/generic-create-dialog.html"
diff --git a/templates/backOffice/default/selection-list-selections.html b/templates/backOffice/default/selection-list-selections.html
index c8a53bc..01db9af 100644
--- a/templates/backOffice/default/selection-list-selections.html
+++ b/templates/backOffice/default/selection-list-selections.html
@@ -27,6 +27,7 @@
{intl l='ID' d='selection.bo.default'} |
+ | {intl l="Code" d='selection.bo.default'} |
{intl l="Title" d='selection.bo.default'} |
{admin_sortable_header
@@ -51,12 +52,19 @@
{/loop}
+ |
+ {loop type="auth" name="can_change" role="ADMIN" resource="admin.selection"}
+ {$SELECTION_CODE}
+ {/loop}
+ {elseloop rel="can_change"}
+ {$SELECTION_CODE}
+ {/elseloop}
|
{loop type="auth" name="can_change" role="ADMIN" resource="admin.selection"}
{$SELECTION_TITLE}
{/loop}
{elseloop rel="can_change"}
- {$SELECTION_TITLE}
+ {$SELECTION_TITLE}
{/elseloop}
|
@@ -111,8 +119,21 @@
{form name="admin.selection.create"}
{capture "selection_creation_dialog"}
- {form_hidden_fields form=$form}
- {render_form_field field="title"}
+ {form_hidden_fields exclude="locale"}
+ {render_form_field field="code"}
+ {loop type="lang" name="default-lang" default_only=1}
+ {* Switch edition to the default locale *}
+
+
+ {render_form_field field="locale" value=$LOCALE}
+
+ {custom_render_form_field field="title"}
+ |
+
+
+
+ {/custom_render_form_field}
+ {/loop}
{render_form_field field="container_id" value=$selected_container_id}
{render_form_field field='chapo'}
{render_form_field field='description' extra_class='wysiwyg'}
diff --git a/templates/backOffice/default/selectionContentRelated.html b/templates/backOffice/default/selectionContentRelated.html
index f371fa6..3af21a9 100644
--- a/templates/backOffice/default/selectionContentRelated.html
+++ b/templates/backOffice/default/selectionContentRelated.html
@@ -29,7 +29,7 @@
@@ -73,4 +73,4 @@
|
---|